-
公开(公告)号:US20180107725A1
公开(公告)日:2018-04-19
申请号:US15845665
申请日:2017-12-18
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jieshan Bi , Yijun Guo , Qijun Wu
IPC: G06F17/30
CPC classification number: G06F16/258 , G06F3/06 , G06F3/0604 , G06F3/0608 , G06F3/0661 , G06F3/067 , G06F16/221 , G06F16/2308 , G06F16/2372
Abstract: A data storage method and apparatus, and a data read method and apparatus in order to resolve a technical problem that a data storage process is relatively complex. The data storage method includes receiving to-be-written first data in a first format from an application layer, obtaining a first mapping relationship between data in the first format and data in a second format, where the second format is a KeyValue format, and the first mapping relationship is used to indicate a row attribute and a column attribute corresponding to each value obtained by converting the data in the first format, converting the format of the first data into the second format according to the first mapping relationship in order to obtain second data, and storing the second data.
-
公开(公告)号:US11030178B2
公开(公告)日:2021-06-08
申请号:US15991845
申请日:2018-05-29
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jieshan Bi , Yijun Guo
IPC: G06F16/22
Abstract: A data storage method and apparatus, where the method includes obtaining a primary index of a data object, where a row identifier of the primary index includes at least one field, determining a row identifier of a secondary index of the data object, where the row identifier of the secondary index includes an index field and a field other than the index field in the at least one field of the row identifier of the primary index, and the index field is different from the first field in the at least one field of the row identifier of the primary index, generating the secondary index of the data object according to the row identifier of the secondary index, and storing the data object according to the primary index and the secondary index, thereby saving storage space.
-
公开(公告)号:US10467192B2
公开(公告)日:2019-11-05
申请号:US15054475
申请日:2016-02-26
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Yijun Guo , Jieshan Bi
Abstract: 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.
-
公开(公告)号:US20180276262A1
公开(公告)日:2018-09-27
申请号:US15991845
申请日:2018-05-29
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jieshan Bi , Yijun Guo
IPC: G06F17/30
CPC classification number: G06F16/2264 , G06F16/221 , G06F16/2272
Abstract: A data storage method and apparatus, where the method includes obtaining a primary index of a data object, where a row identifier of the primary index includes at least one field, determining a row identifier of a secondary index of the data object, where the row identifier of the secondary index includes an index field and a field other than the index field in the at least one field of the row identifier of the primary index, and the index field is different from the first field in the at least one field of the row identifier of the primary index, generating the secondary index of the data object according to the row identifier of the secondary index, and storing the data object according to the primary index and the secondary index, thereby saving storage space.
-
公开(公告)号:US20180239800A1
公开(公告)日:2018-08-23
申请号:US15958267
申请日:2018-04-20
Applicant: HUAWEI TECHNOLOGIES CO.,LTD.
Inventor: Yijun Guo , Jieshan Bi
IPC: G06F17/30
CPC classification number: G06F16/2455 , G06F16/22 , G06F16/2272 , G06F16/248
Abstract: The present disclosure relates to the field of databases, and provides a data query method and apparatus. The method includes: receiving a query request sent by a client device, where the query request includes query data; querying a target secondary index of a primary index according to the query request, to obtain a target row primary key corresponding to the query data; obtaining, from the primary index, index data in a target index row corresponding to the target row primary key; and providing the index data in the target index row for the client device. According to the present disclosure, the target secondary index is queried by using the query data. A row primary key corresponding to the query data is obtained, then index data corresponding to the row primary key is obtained, thereby resolving a problem that in a related technology, when query is performed, query efficiency is relatively low.
-
公开(公告)号:US20180239780A1
公开(公告)日:2018-08-23
申请号:US15960167
申请日:2018-04-23
Applicant: Huawei Technologies Co., Ltd.
Inventor: Jieshan Bi , Hao Fang , Chaoqiang Zhong , Yijun Guo
CPC classification number: G06F16/173 , G06F3/061 , G06F16/23 , G06F16/28 , G06F16/901
Abstract: In an embodiment, a first region is set according to a preset condition, the first region is a blank region reserved for storing new data of a key-value type. An embodiment method includes: when the new data of the key-value type is to be stored in the first region, receiving a region split command; updating, according to the region split command, a state identifier of the first region and in a state table to an identifier indicating that a read/write service is no longer provided, splitting the first region into at least two second regions, updating state identifiers of the second regions in the state table to identifiers indicating that a read/write service can be provided; and recording, in a metadata table, storage location information of the second regions.
-
-
-
-
-