A data conversion method and system

A conversion method and data technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve the problem of not being able to dynamically identify the format of upstream business data, and achieve the effect of enhancing scalability, flexibility, and improving efficiency

Active Publication Date: 2018-03-20
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF5 Cites 0 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 solving the technical problem in the prior art that downstream applications cannot dynamically identify upstream business data formats

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
  • A data conversion method and system
  • A data conversion method and system
  • A 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, which are used to solve the technical problem in the prior art that downstream applications cannot dynamically identify upstream business data formats. The present invention is based on the protobuf open source serialization framework, and simultaneously transmits business data files, business data description files, and structure description files in protobuf format to downstream applications, and the downstream applications dynamically compile and generate protobuf::message business data objects in memory according to the structure description files , and then find the corresponding data of each field in the message in the business data file according to the business data description file and load it into the message object, so as to build a system that can dynamically parse the data format. It solves the problem of dynamic identification of data formats in downstream applications, and enhances scalability and flexibility. Even if the data items required by the downstream often change, it is no longer necessary to re-modify the program code, saving time and effort, and greatly improving efficiency. .

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
Patent Type & Authority Patents(China)
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