Method and apparatus for updating data table in keyvalue database

US10467192B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10467192-B2
Application numberUS-201615054475-A
CountryUS
Kind codeB2
Filing dateFeb 26, 2016
Priority dateNov 12, 2014
Publication dateNov 5, 2019
Grant dateNov 5, 2019

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.

A method for updating a data table in a KeyValue database is provided. Raw data is received and formatted into a data updating file. An update timestamp is set for each column qualifier in each row of the data updating file. A data deleting file is generated. A delete timestamp is set for each row of the data deleting file. Each row of the data deleting file corresponds to one row of old data in the data table. Each row of the data deleting file includes a row key that is the same as the row key of the corresponding row of old data in the data table. The data updating file and the data deleting file are both imported into the data table. Consequently, timestamp is used to indicate the valid data in the data table. An apparatus configured to perform the method is also provided.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for updating a data table in a KeyValue database, comprising: receiving raw data for updating the data table; formatting the raw data into a data updating file, wherein the data updating file comprises P rows of data, each row comprises one row key and Q column qualifiers, and an update timestamp is set for each column qualifier in each row, wherein P is greater than or equal to 1, and Q is greater than or equal to 1; generating a data deleting file, wherein the data deleting file comprises M rows, each row of the data deleting file corresponds to one row of existing data in the data table, wherein each row of existing data in the data table comprises one row key and N column qualifiers, each column qualifier has an original timestamp, and wherein each row of the data deleting file comprises a row key that is the same as the row key of the corresponding row of existing data in the data table, and a delete timestamp is set for each row of the data deleting file, wherein M is greater than or equal to 1, and N is greater than or equal to 1; importing the data updating file into the data table; and importing the data deleting file into the data table; wherein a delete timestamp of an R th row of the data deleting file is greater than a maximum value of original timestamps of the column qualifiers in the row of existing data in the data table corresponding to the R th row of the data deleting file; wherein the delete timestamp of the R th row of the data deleting file is less than a minimum value of update timestamps of the column qualifiers in an S th row of the data updating file; and wherein the R th row of the data deleting file and the S th row of the data updating file have a same row key, 1≤R≤M, and 1≤S≤P. 2. The method according to claim 1 , wherein the step of generating the data deleting file is performed before the step of formatting the raw data into the data updating file; and wherein an update timestamp set for each column qualifier in the data updating file is a moment at which the data updating file is generated, and a delete timestamp set for each row of the data deleting file is a moment at which the data deleting file is generated. 3. The method according to claim 1 , wherein the step of importing the data updating file into the data table is performed before the step of importing the data deleting file into the data table. 4. The method according to claim 1 , wherein importing the data updating file into the data table comprises: changing a save path of the data updating file to a directory of the data table. 5. The method-according to claim 1 , wherein importing the data deleting file into the data table comprises: changing a save path of the data deleting file to a directory of the data table. 6. The method-according to claim 1 , wherein the steps of importing the data updating file into the data table and importing the data deleting file into the data table comprise: combining the data updating file and the data deleting file into a table data updating file; and importing the table data updating file into the data table. 7. The method according to claim 6 , wherein the importing the table data updating file into the data table comprises: changing a save path of the table data updating file to a directory of the data table. 8. An apparatus comprising a processor and a memory storing instructions for execution by the processor, wherein the instructions, when executed by the processor, cause the apparatus to: obtain raw data for updating a data table in a KeyValue database; format the raw data into a data updating file, wherein the data updating file comprises P rows of data, each row comprises one row key and Q column qualifiers, and an update timestamp is set for each column qualifier in each row, wherein P is greater than or equal to 1, and Q is equal to or greater than 1; generate a data deleting file, wherein the data deleting file comprises M rows, each row of the data deleting file corresponds to one row of existing data in the data table, the row of existing data in the data table comprises one row key and N column qualifiers, each column qualifier has an original timestamp, and wherein each row of the data deleting file comprises a row key that is the same as the row key of the corresponding row of data in the data table, and a delete timestamp is set for each row of the data deleting file, wherein M is greater than or equal to 1, and N is equal to or greater than 1; import the data updating file into the data table; and import the data deleting file into the data table; wherein a delete timestamp of an R th row of the data deleting file is greater than a maximum value of original timestamps of the row of data in the data table corresponding to the R th row; wherein the delete timestamp of the R th row of the data deleting file is less than a minimum value of the update timestamps of an S th row of the data updating file; and wherein the R th row of the data deleting file and the S th row of the data updating file have a same row key, 1≤R≤M, and 1≤S≤P. 9. The apparatus according to claim 8 , wherein the instructions cause the apparatus to generate the data deleting file, and then format the raw data into the data updating file; wherein an update timestamp set for each column qualifier in the data updating file is a moment at which the data updating file is generated, and a delete timestamp set for each row of the data deleting file is a moment at which the data deleting file is generated. 10. The apparatus according to claim 8 , wherein the instructions cause the apparatus to: import the data updating file into the data table, and then import the data deleting file into the data table. 11. The apparatus according to claim 8 , wherein in importing the data updating file into the data table, the instructions cause the apparatus to: change a save path of the data updating file to a directory of the data table. 12. The apparatus according to claim 8 , wherein in importing the data deleting file into the data table, the instructions cause the apparatus to: change a save path of the data deleting file to a directory of the data table. 13. The apparatus according to claim 8 , wherein in importing the data updating file into the data table and importing the data deleting file into the data table, the instructions cause the apparatus to: combine the data updating file and the data deleting file into a table data updating file; and import the table data updating file into the data table. 14. The apparatus according to claim 13 , wherein in importing to import the table data updating file into the data table, the instructions cause the apparatus to: change a save path of the table data updating file to a directory of the data table.

Assignees

Inventors

Classifications

  • G06F16/162Primary

    Delete operations (erasing in storage systems G06F3/0652) · CPC title

  • Updating · CPC title

  • Tablespace storage structures; Management thereof · 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 US10467192B2 cover?
A method for updating a data table in a KeyValue database is provided. Raw data is received and formatted into a data updating file. An update timestamp is set for each column qualifier in each row of the data updating file. A data deleting file is generated. A delete timestamp is set for each row of the data deleting file. Each row of the data deleting file corresponds to one row of old data i…
Who is the assignee on this patent?
Huawei Tech Co Ltd, Hauwei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F16/162. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Nov 05 2019 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).