Data conversion method and system

A conversion method and data technology, applied in the fields of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as the inability to dynamically identify upstream business data formats, and achieve the effect of enhancing scalability and flexibility and improving efficiency

Active Publication Date: 2013-09-11
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF5 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the main purpose of the present invention is to provide a data conversion method and system for solv...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data conversion method and system
  • Data conversion method and system
  • Data conversion method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The basic idea of ​​the present invention is: based on the data exchange and storage framework of protobuf, the upstream application describes the data structure of the business data required by the downstream application in memory through the structure description file (.proto file), and the downstream application adopts dynamic compilation technology, A memory object for storing business data is dynamically constructed in memory based on the received structure description file. The upstream application describes the data format of the business data file through the business data description file (.xml file). The upstream application sends the business data file, business data description file, and structure description file to the downstream application, and the downstream application constructs a business data object (message object) in memory based on the structure description file, and obtains the business data file by parsing the business data description file. Af...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data conversion method and system, and aims to solve the technical problem that a downstream application cannot dynamically identify upstream business data formats in the prior art. According to the method, an upstream application simultaneously transmits a business data file, a business data description file and a structure description file in a protobuf format to the downstream application on the basis of a protobuf open-source serializable frame; and the downstream application performs dynamic compiling according to the structure description file, generates a protobuf::message business data object in a memory, finds out data corresponding to fields in a message in the business data file according to the business data description file, and loads the data into the message object, so that a set of systems capable of dynamically analyzing the data formats are established. The problem that the downstream application cannot dynamically identify the data formats is well solved, the expansibility and the flexibility are enhanced, procedure codes are not required to be remodified any more even if data items required by the downstream change constantly, time and labor are saved, and the efficiency is improved substantially.

Description

technical field [0001] The invention relates to computer data processing technology, in particular to a data conversion method and system. Background technique [0002] In the data processing business, the following business situation is often encountered: the upstream business data collection module collects data according to a certain format and transmits it to the downstream data processing module. At this time, the downstream data processing module must be able to recognize the data format transmitted from the upstream, so as to further process, convert, and calculate the data. Then how the downstream module correctly identifies the transmitted data format becomes a key issue. The existing technical solutions mainly include: [0003] 1. A common data structure is shared between the upstream business module and the downstream data processing module, and the data format is hard-coded at the code level. The advantages of this technical solution are simplicity, quickness a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/22G06F17/30
Inventor 伍刘
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products