Supercharge Your Innovation With Domain-Expert AI Agents!

A method and device for serialization and deserialization of structured data

A structured data and deserialization technology, applied in the computer field, can solve problems such as inability to achieve serialization

Active Publication Date: 2020-10-20
ALIBABA GRP HLDG LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The technical problem solved by this application is to provide a method and device for serialization and deserialization of structured data to solve the problem that serialization cannot be realized due to the size limitation of message objects

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 method and device for serialization and deserialization of structured data
  • A method and device for serialization and deserialization of structured data
  • A method and device for serialization and deserialization of structured data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0089] A common serialization method is based on the protobuf protocol proposed by Google, which is described below.

[0090] The protobuf protocol is based on the structure of the message object, and the message object includes at least one field, such as figure 1 As shown, a field includes a tag and a value.

[0091]Among them, the length of tag is 4 bytes, including field identification (field_number) and value type (value_type), field_number is used to identify field, value_type is used to describe the data type in value, and value is used to store data.

[0092] When at least one structured data is serialized based on the protobuf protocol, all structured data is converted into a message object, and the attribute value set of the corresponding structured data is stored in each value of one of the message objects. For example, structured data order1 has a set of attribute values: a1, a2, and a3, and structured data order2 has an attribute value set: b1, b2, and b3. Accord...

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

Provided are a serialization and deserialization method and device for structured data. The method comprises: acquiring attribute value groups respectively corresponding to n pieces of structured data; and generating a group of serialization data according to the attribute value groups respectively corresponding to the n pieces of structured data, wherein the serialization data comprises n records, an ith record comprising (mi + 1) domains, value information about the previous mi domains storing an attribute value group corresponding to ith structured data, and tag information about an (mi + 1)th domain storing a first specific identifier for identifying the end of the ith record; and the serialization data further comprises a specific domain after the n records, tag information about the specific domain storing a second specific identifier for identifying the end of the serialization data. It can be seen that the structure of a message object is no longer used in the present application, thereby solving the problem that serialization cannot be achieved due to the size limit of the message object.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a serialization and deserialization method and device for structured data. Background technique [0002] With the advent of the big data era, more and more service providers have released structured data processing platforms, which can provide serialization and deserialization processing for structured data. The serialization of structured data refers to converting the original structured data into serialized data with a specific format, so as to facilitate operations such as transmission based on the serialized data. Deserialization is the reverse process of serialization, which can restore serialized data with a specific format to original structured data. [0003] At present, a commonly used serialization method is based on the protobuf protocol proposed by Google. When at least one structured data is serialized based on this protocol, the specific serialization p...

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): G06F16/25G06F16/21G06F16/22
CPCG06F16/21G06F16/22G06F16/258G06F16/00
Inventor 李勇勇蔡瀛王升功
Owner ALIBABA GRP HLDG LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More