Data storage method and apparatus

US2018074729A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2018074729-A1
Application numberUS-201715410953-A
CountryUS
Kind codeA1
Filing dateJan 20, 2017
Priority dateSep 14, 2016
Publication dateMar 15, 2018
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present application discloses a data storage method and apparatus. A specific implementation of the method includes: acquiring to-be-serialized data and a description file related to the to-be-serialized data, wherein the to-be-serialized data includes a data name and a data value, and the description file includes a file identifier and at least one data element, the data element includes at least one data item, and the data item includes a data item name and a data type; allocating a memory space to the data item according to the data type; finding, according to a preset matching relationship between the to-be-serialized data and the data item, a data item matched with the to-be-serialized data; and storing the data value into the memory space of the found data item as a data item value of the found data item. This implementation improves the data storage efficiency.

First claim

Opening claim text (preview).

What is claimed is: 1 . A data storage method, comprising: acquiring to-be-serialized data and a description file related to the to-be-serialized data, the to-be-serialized data comprising a data name and a data value, and the description file comprising a file identifier and at least one data element, the data element comprising at least one data item, and the data item comprising a data item name and a data type; allocating a memory space to the data item according to the data type; finding, according to a preset matching relationship between the to-be-serialized data and the data item, a data item matched with the data name; and storing the data value into the memory space for the found data item as a data item value of the found data item. 2 . The method according to claim 1 , wherein the allocating a memory space to the data item according to the data type comprises: generating a storage address according to a file identifier of a file to which the data item belongs, a data element identifier of a data element to which the data item belongs, and the data item name, the storage address pointing to the memory space allocated to the data item. 3 . The method according to claim 2 , wherein the storing the data value into the memory space of the found data item as a data item value of the found data item comprises: determining whether a type of the data value is consistent with the data type of the found data item; determining whether the data value falls within a predetermined data range of the data item value of the found data item, in response to the type of the data value being consistent with the data type of the found data item; and storing the data value into the memory space of the found data item as the data item value in response to the data value falling within the data range. 4 . The method according to claim 1 , wherein after the data value is stored into the memory space of the found data item as a data item value of the found data item, the method further comprises: encrypting the data item value; and transmitting the encrypted data item value. 5 . The method according to claim 4 , wherein the method further comprises: setting a reading mode identifier for the data item, the reading mode identifier comprising a mandatory reading identifier or an optional reading identifier, and the reading mode being used for indicating a mode in which a process that receives the transmitted data item value reads the transmitted data item value; and wherein the allocating a memory space to the data item according to the data type further comprises: allocating the memory space to the data item according to the data type and the reading mode identifier. 6 . A data storage apparatus, comprising: an acquiring unit, configured to acquire to-be-serialized data and a description file related to the to-be-serialized data, the to-be-serialized data comprising a data name and a data value, and the description file comprising a file identifier and at least one data element, the data element comprising at least one data item, and the data item comprising a data item name and a data type; an allocation unit, configured to allocate a memory space to the data item according to the data type; a search unit, configured to find, according to a preset matching relationship between the to-be-serialized data and the data items, a data item matched with the data name; and a storage unit, configured to store the data value into the memory space of the found data item as a data item value of the found data item. 7 . The apparatus according to claim 6 , wherein the allocation unit is further configured to: generate a storage address according to a file identifier of a file to which the data item belongs, a data element identifier of a data element to which the data item belongs, and the data item name, wherein the storage address points to the memory space allocated to the data item. 8 . The apparatus according to claim 7 , wherein the search unit is further configured to: determine whether a type of the data value is consistent with the data type of the found data item; determine whether the data value falls within a predetermined data range of the data item value of the found data item, in response to that the type of the data value being consistent with the data type of the found data item; and store the data value into the memory space of the found data item as the data item value in response to the data value falling within the data range. 9 . The apparatus according to claim 6 , wherein the apparatus further comprises: an encryption unit, configured to encrypt the data item value; and a transmission unit, configured to transmit the encrypted data item value. 10 . The apparatus according to claim 9 , wherein the apparatus further comprises: a setting unit, configured to set a reading mode identifier for the data item, the reading mode identifier comprising a mandatory reading identifier or an optional reading identifier, wherein the reading mode is used for indicating a mode in which a process that receives the transmitted data item value reads the transmitted data item value; and the allocation unit is further configured to: allocate the memory space to the data item according to the data type and the reading mode identifier. 11 . A non-transitory computer storage medium storing a computer program, which when executed by a computer, cause the computer to perform operations, the operations comprising: acquiring to-be-serialized data and a description file related to the to-be-serialized data, the to-be-serialized data comprising a data name and a data value, and the description file comprising a file identifier and at least one data element, the data element comprising at least one data item, and the data item comprising a data item name and a data type; allocating a memory space to the data item according to the data type; finding, according to a preset matching relationship between the to-be-serialized data and the data item, a data item matched with the data name; and storing the data value into the memory space for the found data item as a data item value of the found data item. 12 . The non-transitory computer storage medium according to claim 11 , wherein the allocating a memory space to the data item according to the data type comprises: generating a storage address according to a file identifier of a file to which the data item belongs, a data element identifier of a data element to which the data item belongs, and the data item name, the storage address pointing to the memory space allocated to the data item. 13 . The non-transitory computer storage medium according to claim 12 , wherein the storing the data value into the memory space of the found data item as a data item value of the found data item comprises: determining whether a type of the data value is consistent with the data type of the found data item; determining whether the data value falls within a predetermined data range of the data item value of the found data item, in response to the type of the data value being consistent with the data type of the found data item; and storing the data value into the memory space of the found data item as the data item value in response to the data value falling within the data range. 14 . The non-transitory computer storage medium according to claim 11 , wherein after the data value is stored into the memory space of the found data item as a data item value of the found data item, the operations further comprises: encrypting the data item value; and transmitting th

Assignees

Inventors

Classifications

  • by allocating resources to storage systems · CPC title

  • Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS] · CPC title

  • Replication mechanisms · CPC title

  • G06F3/0619Primary

    in relation to data integrity, e.g. data losses, bit errors · CPC title

  • Indexing; Data structures therefor; Storage structures · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2018074729A1 cover?
The present application discloses a data storage method and apparatus. A specific implementation of the method includes: acquiring to-be-serialized data and a description file related to the to-be-serialized data, wherein the to-be-serialized data includes a data name and a data value, and the description file includes a file identifier and at least one data element, the data element includes a…
Who is the assignee on this patent?
Beijing Baidu Netcom Sci & Tec
What technology area does this patent fall under?
Primary CPC classification G06F3/0619. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Mar 15 2018 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).