IP Library › Granted Patent US 12,026,162
Granted Patent B2
US 12,026,162 · App. 17/702,479 · Granted Jul 2, 2024

Data query method and apparatus, computing device, and storage medium

Inventors: Weihua Shan (Xi'an, CN); Yixuan Dai (Changsha, CN)
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
G06F16/2455G06F16/283G06F16/285
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,026,162
App. No.
17/702,479
Granted
Jul 2, 2024
Kind
B2
Abstract

A data query method includes: receiving a data query request during a data query, where the data query request specifies data ranges in a plurality of dimensions; obtaining spatial distribution information of multi-dimensional data, where the spatial distribution information records data ranges, in each dimension, of a plurality of subspace objects associated with the multi-dimensional data; determining, from the multi-dimensional data based on the spatial distribution information of the multi-dimensional data, a block that meets the data ranges in the plurality of dimensions specified by the data query request; and searching the determined block for data that meets the data ranges in the plurality of dimensions specified by the data query request.

Claims (57)

1. A method comprising:

receiving a data query request specifying data ranges in a plurality of dimensions;

determining a plurality of subspace objects of each block of the multi-dimensional data based on a distribution feature and a constraint condition of multi-dimensional data in a multi-dimensional space to obtain spatial distribution information of the multi-dimensional data, wherein the spatial distribution information records data ranges in each dimension of the subspace objects associated with the multi-dimensional data, wherein the subspace objects are formed by performing spatial clustering on the multi-dimensional data;

determining, from the multi-dimensional data and based on the spatial distribution information, a block that meets the data ranges; and

searching the block for data that meet the data ranges.

2. The method of claim 1 , wherein determining the block comprises:

determining, from the subspace objects and based on the spatial distribution information, whether a first subspace object meets the data ranges; and

using, when the first subspace object meets the data ranges, a first block to which the first subspace object belongs as the block.

3. The method of claim 2 , further comprising feeding back, when none of the subspace objects meet the data ranges, that no data meet the data query request.

4. The method of claim 1 , wherein obtaining the spatial distribution information comprises:

obtaining first spatial distribution information of first-level blocks of the multi-dimensional data, wherein the first spatial distribution information records first data ranges in each dimension of a plurality of first subspace objects associated with first data of the first-level blocks; and

obtaining second spatial distribution information of second-level blocks of the multi-dimensional data, wherein the second spatial distribution information records second data ranges in each dimension of a plurality of second subspace objects associated with second data of the second-level blocks, and

wherein determining the block comprises:

determining, from the first-level blocks and based on the first spatial distribution information, a target first-level block that meets the data ranges; and

determining, from the target first-level block and based on the second spatial distribution information, a target second-level block that meets the data ranges.

5. The method of claim 1 , further comprising:

performing dimension reduction on the multi-dimensional data to obtain dimension-reduced data; and

determining the subspace objects of the dimension-reduced data in a low-dimensional space,

wherein the distribution feature and the constraint condition are of the dimension-reduced data.

6. The method of claim 1 , further comprising determining the subspace objects by performing volume increment clustering on the multi-dimensional data.

7. The method of claim 1 , further comprising determining the subspace objects by performing subspace division on the multi-dimensional data to obtain the subspace objects, wherein the distribution feature and the constraint condition are of a subspace resulting from the subspace division.

8. The method of claim 1 , wherein the data ranges form indexes of the subspace objects.

9. A computing device comprising:

a memory configured to store instructions; and

a processor coupled to the memory and configured to execute the instructions to cause the computing device to:

receive a data query request specifying data ranges in a plurality of dimensions;

determine a plurality of subspace objects of each block of multi-dimensional data based on a distribution feature and a constraint condition of multi-dimensional data in a multi-dimensional space to obtain spatial distribution information of the multi-dimensional data, wherein the spatial distribution information records data ranges in each dimension of the subspace objects associated with the multi-dimensional data, wherein the subspace objects are formed by performing spatial clustering on the multi-dimensional data;

determine, from the multi-dimensional data and based on the spatial distribution information, a block that meets the data ranges; and

search the block for data that meet the data ranges.

10. The computing device of claim 9 , wherein the processor is further configured to execute the instructions to cause the computing device to further determine the block by:

determining, from the subspace objects and based on the spatial distribution information, whether a first subspace object meets the data ranges; and

using, when the first subspace object meets the data ranges, a first block to which the first subspace object belongs as the block.

11. The computing device of claim 10 , wherein the processor is further configured to execute the instructions to cause the computing device to feed back, when none of the subspace objects meet the data ranges, that no data meet the data query request.

12. The computing device of claim 9 , wherein the processor is further configured to execute the instructions to cause the computing device to:

further obtain the spatial distribution information by:

obtaining first spatial distribution information of first-level blocks of the multi-dimensional data, wherein the first spatial distribution information records first data ranges in each dimension of a plurality of first subspace objects associated with first data of the first-level blocks; and

obtaining second spatial distribution information of second-level blocks of the multi-dimensional data, wherein the second spatial distribution information records second data ranges in each dimension of a plurality of second subspace objects associated with second data of the second-level blocks; and

further determine the block by:

determining, from the first-level blocks and based on the first spatial distribution information, a target first-level block that meets the data ranges; and

determining, from the target first-level block and based on the second spatial distribution information, a target second-level block that meets the data ranges.

13. The computing device of claim 9 , wherein the processor is further configured to execute the instructions to cause the computing device to:

perform dimension reduction on the multi-dimensional data to obtain dimension-reduced data; and

further determine the subspace objects of the dimension-reduced data in a low-dimensional space,

wherein the distribution feature and the constraint condition are of the dimension-reduced data.

14. The computing device of claim 9 , wherein the processor is further configured to execute the instructions to cause the computing device to determine the subspace objects by performing volume increment clustering on the multi-dimensional data.

15. The computing device of claim 9 , wherein the processor is further configured to execute the instructions to cause the computing device to perform subspace division on the multi-dimensional data to obtain the subspace objects, and wherein the distribution feature and the constraint condition are of a subspace resulting from the subspace division.

16. The computing device of claim 9 , wherein the data ranges form indexes of the subspace objects.

17. A computer program product comprising instructions that are stored on a computer-readable medium and that, when executed by a processor, cause a computing device to:

receive a data query request specifying data ranges in a plurality of dimensions;

determine a plurality of subspace objects of each block of multi-dimensional data based on a distribution feature and a constraint condition of multi-dimensional data in a multi-dimensional space to obtain spatial distribution information of the multi-dimensional data, wherein the spatial distribution information records data ranges in each dimension of the subspace objects associated with the multi-dimensional data, wherein the subspace objects are formed by performing spatial clustering on the multi-dimensional data;

determine, from the multi-dimensional data and based on the spatial distribution information, a block that meets the data ranges; and

search the block for data that meet the data ranges.

18. The computing device of claim 17 , wherein the instructions, when executed by the processor, further cause the computing device to further determine the block by:

determining, from the subspace objects and based on the spatial distribution information, whether a first subspace object meets the data ranges; and

using, when the first subspace object meets the data ranges, a first block to which the first subspace object belongs as the block.

19. The computing device of claim 17 , wherein the instructions, when executed by the processor, further cause the computing device to fed back, when none of the subspace objects meet the data ranges, that no data meet the data query request.

20. The computing device of claim 17 , wherein the data ranges form indexes of the subspace objects.

Assignments (2)
CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNEE'S NAME AND ADDRESS PREVIOUSLY RECORDED AT REEL: 059755 FRAME: 0362. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT . Recorded May 19, 2022
From: SHAN, WEIHUA; DAI, YIXUAN
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 060117/0935 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 27, 2022
From: SHAN, WEIHUA; DAI, YIXUAN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 059755/0362 →
Priority Claims (2)
CN 201910907480.2 · Sep 24, 2019 · national
CN 202010247340.X · Mar 31, 2020 · national
Continuity (2)
Continuation PCTCN2020117269 · Sep 24, 2020
Related Publication 20220215021A1 · Jul 7, 2022