Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2021-12-17
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the first query method has strict requirements on the naming of data field values ​​stored in the time series database, which not only increases the difficulty for users to input range query commands, but also easily misses field values ​​that do not conform to the naming rules
The second query method is only applicable to the scene of querying a small number of field values. It is difficult to implement coding for large-scale field value query or even continuously changing field value query.
Therefore, many time series databases do not implement the range query function for label data well.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A range query method, device, equipment and storage medium for label data
  • A range query method, device, equipment and storage medium for label data
  • A range query method, device, equipment and storage medium for label data

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application discloses a tag data range query method, device, equipment and storage medium. The range query data structure is established in advance according to the attribute value of the tag data, and the attribute value of the tag data and the tag data in the time series database are established. The corresponding relationship between the storage addresses in the time series index file, so that after querying 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, according to the corresponding relationship Determine the storage address of the target label data in the time series index file, and then obtain and output the target label data, thus filling the gap in the range query function of label data in some time series databases, and facilitating users to range label data in time series databases Query enriches the functions of time series database.

Description

technical field [0001] The present application relates to the technical field of databases, in particular to a range query method, device, equipment and storage medium for label data. Background technique [0002] The full name of time series database is time series database. Time series databases are mainly used to process data with time tags (changes in the order of time, that is, time serialization). Data with time tags is also called time series data. Tag data is used to identify the inherent attributes of data objects. In some time series databases, tag data is stored in string format and does not support range queries. [0003] There are currently two commonly used data range query methods for time series databases. One is to use the fuzzy condition method for matching query, and the other is to use the or command to splice the query conditions. However, the first query method has strict requirements on the naming of data field values ​​stored in the time series data...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/2455G06F16/28
CPCG06F16/2455G06F16/284
Inventor 曹文康
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD