A range query method, device, equipment and storage medium for label data
A technology of label data and query method, applied in the field of database, can solve the problems of easy to miss field value, difficult to implement coding, increase the difficulty of user input range query command, etc., and achieve the effect of convenient range query and rich functions.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 2
[0080] In the above embodiments, the addition and deletion of tag data in the range query data structure can be performed along with the creation and deletion of tag data in the time series index file, or along with the "hotness" of the tag data.
[0081] On the basis of the above-mentioned embodiments, in the tag data range query method provided in the embodiment of the present application, step S102: according to the query range of the attribute value in the input tag data range query request, query in the range query data structure to obtain The attribute values of the target label data, including:
[0082] According to the query range in the tag data range query request, determine whether the range query data structure has an attribute value of the target tag data;
[0083] If yes, then record the query time of the target tag data, and execute the step of querying the target tag data in the range query data structure according to the query range of the attribute value in...
Embodiment 3
[0099] Figure 4 A schematic diagram of a B+ tree structure provided by the embodiment of the present application; Figure 5 A schematic diagram of a B+ tree query method provided by the embodiment of the present application; Figure 6 A schematic diagram of a HashSet structure provided by the embodiment of the present application; Figure 7 It is a schematic diagram of the calculation method of the HashSet structure; Figure 8 A functional topology diagram of label data range query in a time series database provided by the embodiment of this application; Figure 9 A schematic diagram of the elimination process of non-hot label data provided by the embodiment of this application; Figure 10 It is a schematic diagram of the structure of a label data range query method provided by the embodiment of this application.
[0100] On the basis of the above embodiments, in the range query method for tag data provided in the embodiment of the present application, the range query data ...
Embodiment 4
[0139] Figure 11 It is a schematic structural diagram of an apparatus for querying the range of tag data provided in the embodiment of the present application.
[0140] Such as Figure 11 As shown, the tag data scope query device provided by the embodiment of the present application includes:
[0141] The creation unit 301 is used to predetermine the corresponding relationship between the attribute value of the tag data and the storage address of the tag data in the time series index file of the time series database, and establish a range query data structure according to the attribute value of each tag data;
[0142] The query unit 302 is used to query the attribute value of the target tag data in the range query data structure according to the query range of the attribute value in the input tag data range query request;
[0143] A determining unit 303, configured to determine the storage address of the target tag data in the time series index file according to the correspon...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


