Unlock instant, AI-driven research and patent intelligence for your innovation.

Any version compatible data structure access method and device based on metadata

A technology of data structure and access method, applied in file access structure, electronic digital data processing, special data processing applications, etc., can solve problems such as abnormal complexity, large data file information, increased program execution burden, etc., to ensure efficiency, Reduce workload and achieve compatibility between new and old versions

Inactive Publication Date: 2016-08-24
YITANG CHUANGYUAN CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage is that once the data structure changes, because the storage file does not contain the data structure information of different versions, only the data content, so the new version of the program will be extremely complicated when reading the old version of the data, and a large amount of code needs to be written for version compatibility
[0003] The text format belongs to the file organization mode. For example, the advantage of the annotation storage format such as xml is that the file contains a large amount of data object description information, and the application program can read the necessary data based on this information, so that it is relatively easy to achieve a small amount of code. Complete the compatibility of the old version of the file format. The disadvantage is that text parsing and conversion are required when using it, and the efficiency is very low. Moreover, due to the existence of a large amount of data structure information, the size of the data file will increase several times or even dozens of times, thereby increasing the Execution burden while the program is running
[0004] Therefore, the disadvantages of the existing data content access are: using the binary mode for high access efficiency and no redundant data, but when dealing with data compatibility issues, a large amount of code needs to be written for processing; using the text format xml mode file format compatibility issues It is easy to solve and does not require a lot of code, but the stored data file information is too large, resulting in low access efficiency and increasing the burden of program execution

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
  • Any version compatible data structure access method and device based on metadata
  • Any version compatible data structure access method and device based on metadata
  • Any version compatible data structure access method and device based on metadata

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 A flow chart of a method for accessing any version-compatible data structure based on metadata provided by the first embodiment of the present invention is shown. Such as figure 1 As shown, a metadata-based access method for any version-compatible data structure according to the first embodiment of the present invention includes:

[0029] S1. Receive the changed data structure information, compare the changed data structure information with the pre-stored data structure information, and obtain the changed data structure information;

[0030] S2, according to the changed data structure information, calculate the version number corresponding to the changed data structure information, and store the version number in the data structure information file;

[0031] S3, in the data structure information file, search for the corresponding data structure information according to the version number, if the data structure information corresponding to the version number i...

Embodiment 2

[0047] see figure 2 , the embodiment of the present invention also provides an arbitrary version compatible data structure access device 100 based on metadata, including:

[0048] The preprocessing module 1 is used to receive the changed data structure information, compare the changed data structure information with the pre-stored data structure information, and obtain the changed data structure information;

[0049] The version number acquisition module 2 is used to calculate the version number corresponding to the changed data structure information according to the changed data structure information, and store the version number in the data structure information file;

[0050] The read-write module 3 is used to search the corresponding data structure information according to the version number in the data structure information file. If the data structure information corresponding to the version number is found, the data is read and written according to the data structure in...

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 an any version compatible data structure access method and device based on metadata. The method comprises the steps that changed data structure information is received, the changed data structure information is compared with prestored data structure information, and changed data structure information is obtained; a version number corresponding to the changed data structure information is calculated according to the changed data structure information, and the version number is stored in a data structure information file; data structure information corresponding to the version number is found in the data structure information file, if the data structure information corresponding to the version number is found, data reading and writing are conducted according to the data structure information, otherwise, data reading and writing are skipped without being conducted. According to the any version compatible data structure access method and device based on the metadata, when the data is accessed, no text analysis and conversion performance loss exists, the reading and writing efficiency is high, and compatibility of new and old versions can be completed automatically.

Description

technical field [0001] The invention relates to the field of computer software data processing, especially the field of game data structure storage and processing. Background technique [0002] In software development, especially in game development, the commonly used modes for accessing data content are mainly divided into binary and text formats. The advantage of the binary mode is that it does not need to convert text data, has no redundant data, and has high storage efficiency. The disadvantage is that once the data structure changes, since the storage file does not contain the data structure information of different versions, only the data content, it will be extremely complicated for the new version of the program to read the old version of the data, and a large amount of code needs to be written for version compatibility. [0003] The text format belongs to the file organization mode. For example, the advantage of the annotation storage format such as xml is that the...

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 Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/164G06F16/13
Inventor 宋忆疆杨智任晓宇郭鑫
Owner YITANG CHUANGYUAN CO LTD