Disclosure of Invention
The invention provides a method for searching data, which aims to solve the problems of high limitation of data searching, complex data searching process, low intelligence and low user viscosity in the prior art.
According to a first aspect of embodiments of the present invention, there is provided a data query method, including:
acquiring query conditions of a user, wherein the query conditions at least comprise one or more of block height, block address, transaction information, transaction amount and transaction time of a block to be queried;
generating a query index based on the query condition, wherein the query index is used for querying the storage position of the block to be queried;
and inquiring the block to be inquired according to the inquiry index to obtain the block data of the block to be inquired.
In another embodiment, before obtaining the query condition of the user, the method further includes:
acquiring block data of at least one block, wherein the block data at least comprises block height, block characteristic value, transaction information, transaction amount, transaction time and father block information;
for any block in the at least one block, generating a storage index of the block based on block data of the block, wherein the storage index is used for indicating a storage position of the block data;
and storing the block data of the block to the storage position indicated by the storage index.
In another embodiment, the obtaining block data of at least one block includes:
downloading the at least one block;
and analyzing the at least one block based on a block analysis tool to obtain block data of the at least one block.
In another embodiment, the generating a query index based on the query condition comprises:
determining a preset analysis algorithm, wherein the preset analysis algorithm at least comprises a word segmentation algorithm;
and analyzing the query condition based on the preset analysis algorithm to generate the query index.
In another embodiment, the querying the block to be queried according to the query index, and the obtaining block data of the block to be queried includes:
acquiring at least one storage index of at least one block;
querying a specified storage index in the at least one storage index based on the query index, wherein the specified storage index is matched with the query index;
and acquiring the block data of the block to be queried at the storage position indicated by the specified storage index.
According to a second aspect of the embodiments of the present invention, there is provided a data query apparatus, including:
the system comprises a condition acquisition module, a condition acquisition module and a condition acquisition module, wherein the condition acquisition module is used for acquiring query conditions of a user, and the query conditions at least comprise one or more of block height, block address, transaction information, transaction amount and transaction time of a block to be queried;
a first generating module, configured to generate a query index based on the query condition, where the query index is used to query a storage location of the block to be queried;
and the query module is used for querying the block to be queried according to the query index and acquiring the block data of the block to be queried.
In another embodiment, the apparatus further comprises:
the data acquisition module is used for acquiring block data of at least one block, wherein the block data at least comprises block height, block characteristic values, transaction information, transaction amount, transaction time and father block information;
a second generating module, configured to, for any block in the at least one block, generate a storage index of the block based on block data of the block, where the storage index is used to indicate a storage location of the block data;
and the storage module is used for storing the block data of the block to the storage position indicated by the storage index.
In another embodiment, the data acquisition module comprises:
a download sub-module for downloading the at least one block;
and the analysis submodule is used for analyzing the at least one block based on a block analysis tool to obtain block data of the at least one block.
In another embodiment, the first generating module comprises:
the determining submodule is used for determining a preset analysis algorithm, and the preset analysis algorithm at least comprises a word segmentation algorithm;
and the analysis submodule is used for analyzing the query condition based on the preset analysis algorithm to generate the query index.
In another embodiment, the query module comprises:
the index acquisition submodule is used for acquiring at least one storage index of at least one block;
the query submodule is used for querying a specified storage index in the at least one storage index based on the query index, and the specified storage index is matched with the query index;
and the data acquisition submodule is used for acquiring the block data of the block to be queried at the storage position indicated by the specified storage index.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device, including the data query apparatus according to the second aspect.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: a memory for storing executable instructions; and a processor, for communicating with the memory to execute the executable instructions to perform the operations of the data query method of the first aspect.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
by acquiring one or more query conditions at least comprising the block height, the block address, the transaction information, the transaction amount and the transaction time of the block to be queried, generating a query index based on the query conditions, querying the block to be queried according to the query index, and acquiring the block data of the block to be queried, the block data of the block can be queried according to various query conditions, the data query limitation is small, the data query process is simplified, the intelligence is excellent, and the user viscosity is high.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a data query method according to an exemplary embodiment, and the method includes the following steps, as shown in fig. 1.
In step 101, a query condition of a user is obtained, where the query condition at least includes one or more of a block height of a block to be queried, a block address, transaction information, a transaction amount, and a transaction time.
In step 102, based on the query condition, a query index is generated, and the query index is used for querying the storage location of the block to be queried.
In step 103, the block to be queried is queried according to the query index, and block data of the block to be queried is obtained.
According to the method provided by the embodiment of the invention, the block data of the block to be inquired is acquired by acquiring the inquiry condition at least comprising one or more of the block height, the block address, the transaction information, the transaction amount and the transaction time of the block to be inquired, generating the inquiry index based on the inquiry condition, and inquiring the block to be inquired according to the inquiry index, so that the block data of the block to be inquired can be inquired according to various inquiry conditions, the data inquiry limitation is small, the data inquiry process is simplified, the intelligence is excellent, and the user viscosity is high.
In another embodiment, before obtaining the query condition of the user, the method further includes:
acquiring block data of at least one block, wherein the block data at least comprises block height, block characteristic value, transaction information, transaction amount, transaction time and father block information;
for any block in the at least one block, generating a storage index of the block based on block data of the block, wherein the storage index is used for indicating a storage position of the block data;
and storing the block data of the block to the storage position indicated by the storage index.
In another embodiment, the obtaining block data of at least one block includes:
downloading the at least one block;
and analyzing the at least one block based on a block analysis tool to obtain block data of the at least one block.
In another embodiment, the generating a query index based on the query condition comprises:
determining a preset analysis algorithm, wherein the preset analysis algorithm at least comprises a word segmentation algorithm;
and analyzing the query condition based on the preset analysis algorithm to generate the query index.
In another embodiment, the querying the block to be queried according to the query index, and the obtaining block data of the block to be queried includes:
acquiring at least one storage index of at least one block;
querying a specified storage index in the at least one storage index based on the query index, wherein the specified storage index is matched with the query index;
and acquiring the block data of the block to be queried at the storage position indicated by the specified storage index.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 2 is a flow chart illustrating a method of data acquisition, as shown in fig. 2, according to an exemplary embodiment, including the following steps.
In step 201, at least one block is downloaded, and the at least one block is analyzed based on the block analysis tool to obtain block data of the at least one block, wherein the block data at least includes block height, block characteristic value, transaction information, transaction amount, transaction time, and parent block information.
The inventor realizes that when a block data query is performed, a user is usually required to input a certain fixed block data in a block, such as a block height, a block characteristic value and the like, and further determine the block according to the data input by the user to acquire all block data in the block.
In order to query the block to be queried according to any query condition input by a user when querying the block data of the block, the block data in at least one block needs to be stored, so that at least one block needs to be downloaded. Since the block data stored in the block is data related to virtual currencies of different currencies and the blocks of the virtual currencies of different currencies are isolated, that is, the blocks of the virtual currencies of different currencies are stored in different all-node servers, when downloading at least one block, the terminal needs to be connected to the plurality of all-node servers to further download all the blocks stored in the plurality of all-node servers. When the terminal is connected with the full-node servers, the server addresses of the full-node servers can be obtained, the server addresses of the full-node servers are accessed, data connection is further established with the full-node servers, and all blocks are downloaded in the full-node servers based on the data connection.
After downloading the blocks in the multiple full-node servers successfully, in order to acquire the block data in each block, each block needs to be analyzed, and then the block data in each block is acquired. When the block is analyzed, the acquired at least one block may be analyzed based on a block analysis tool to obtain block data of the at least one block. When the block is analyzed, a block analysis tool such as a block crawler may be used for analyzing the block, and the method for analyzing the block is not particularly limited in the embodiments of the present invention.
In step 202, for any block in the at least one block, a storage index of the block is generated based on the block data of the block, and the block data of the block is stored to the storage location indicated by the storage index, where the storage index is used to indicate the storage location of the block data.
In the embodiment of the present invention, after acquiring the block data of at least one block, in order to enable subsequent query of the block data in the block according to a query condition including the block data input by a user, for any block in the at least one block, a storage index of the block may be generated based on the block data of the block, so as to store the block data of the block to a storage location indicated by the storage index. The generated storage index may be an inverted index, and since the inverted index can search the storage location of the data according to the attribute value of the data in practical application, the inverted index may be generated based on the block data, and the inverted index is used as the storage index of the block data.
After the storage index of at least one block is generated, the block identifier of the block can be acquired, and the block identifier of the block and the storage index are correspondingly stored, so that the correct corresponding relation between the block and the storage index is ensured, and the confusion between the at least one block and the at least one storage index is avoided. When the correspondence between the block and the storage index is stored, the first index list shown in table 1 may be generated. In the practical application process, if the storage index generated by the terminal is the inverted index, the terminal may generate the second index list shown in table 2 when storing the storage index, list each piece of data in the block data, store the data corresponding to the storage index, and ensure that the storage index can be determined according to any piece of data in the block data, so that the query condition input by the user is not limited, and the block data can be queried according to the query condition as long as the user inputs the query condition related to the block data. Since the contents of the block data stored in different blocks are different, it is necessary to generate table 2 based on the actual block data stored in the blocks. In the actual application process, the terminal may further generate an index library, and store the storage indexes of all the blocks into the index library.
TABLE 1
Block identification
|
Storage index
|
Block A
|
(3;1)
|
Block B
|
(5;1)
|
…
|
… |
TABLE 2
In step 203, query conditions of the user are obtained, where the query conditions at least include one or more of block height of the block to be queried, block address, transaction information, transaction amount, and transaction time.
In the embodiment of the present invention, since all the block data in each block is stored in the terminal, when querying the block data in the block, the user only needs to input one or more block data of the block, that is, the query condition input by the user at least includes one or more of the block height, the block address, the transaction information, the transaction amount, and the transaction time of the block to be queried.
The terminal can provide a data query entry on the screen, and when the data query entry is detected to be triggered by a user, a data query page is displayed, wherein the data query page at least comprises a condition type selection box and a condition input box. The condition type selection box comprises a plurality of selectable query condition types such as block height, block address, transaction information, transaction amount and transaction time, and after any query condition type selected by the user in the condition type selection box is detected, the query condition input by the user in the condition input box is obtained. It should be noted that, in the process of practical application, a condition type selection box may not be provided on the query page, a condition input box is directly provided, the query condition input by the user in the condition input box is acquired, and the acquired query condition is identified. The embodiment of the present invention does not specifically limit the manner of obtaining the query condition input by the user.
In step 204, a preset analysis algorithm is determined, the query condition is analyzed based on the preset analysis algorithm, and a query index is generated, wherein the preset analysis algorithm at least comprises a word segmentation algorithm, and the query index is used for querying a storage location of the block to be queried.
In the embodiment of the present invention, since the block data of the block is stored according to the indication of the storage index, after the query condition of the user is obtained, in order to determine the storage location of the block based on the query condition, the query condition needs to be analyzed, a query index matched with the form of the storage index is generated, the storage index of the block is determined according to the query index, the storage location of the block is determined according to the storage index, and the block data of the block is obtained. When the query condition is analyzed, a preset analysis algorithm may be determined, and the query condition is analyzed based on the preset analysis algorithm. The preset analysis algorithm can be a word segmentation algorithm, if the preset analysis algorithm is the word segmentation algorithm, when a query index is generated based on the preset analysis algorithm, word segmentation is carried out on the query condition of the user to obtain a plurality of words; subsequently, the obtained multiple words are connected by using connecting words such as "and", "or", and the like, and a query index matching the form of the stored index is generated.
In step 205, at least one storage index of the at least one block is obtained, based on the query index, a designated storage index is queried in the at least one storage index, block data of the block to be queried is obtained at a storage location indicated by the designated storage index, and the designated storage index is matched with the query index.
In the embodiment of the invention, after the query index is generated according to the query condition of the user, the specified storage index matched with the query index can be determined according to the query index, and then the storage position of the block to be queried is determined according to the specified storage index, so that the block data in the block to be queried is acquired. Since the storage indexes of all blocks are stored in the terminal, when the specified storage index is determined, all the storage indexes are compared with the query index, and the specified storage index matched with the query index is determined in all the storage indexes. It should be noted that, when all the storage indexes are compared with the query indexes, because the number of the storage indexes stored in the terminal is large, the comparison can be performed according to the storage sequence of the terminal for the storage indexes, when it is determined that a certain storage index is matched with the query index, the comparison process between the storage index and the query index can be stopped, it is not necessary to compare the remaining storage indexes which are not compared with the query index, and the storage index matched with the query index is directly determined as the designated storage index. The embodiment of the present invention does not specifically limit the manner of determining the storage index matching the query index.
In the embodiment of the invention, the block data of the block to be inquired is acquired by acquiring the inquiry condition at least comprising one or more of the block height, the block address, the transaction information, the transaction amount and the transaction time of the block to be inquired, generating the inquiry index based on the inquiry condition, and inquiring the block to be inquired according to the inquiry index, so that the block data of the block to be inquired can be inquired according to various inquiry conditions, the data inquiry limitation is small, the data inquiry process is simplified, the intelligence is excellent, and the user viscosity is high.
FIG. 3A is a block diagram illustrating a data query device in accordance with an exemplary embodiment. Referring to fig. 3A, the apparatus includes a condition acquisition module 301, a first generation module 302, and a query module 303.
The condition obtaining module 301 is configured to obtain a query condition of a user, where the query condition at least includes one or more of a block height of a block to be queried, a block address, transaction information, a transaction amount, and a transaction time;
the first generating module 302 is configured to generate a query index based on the query condition, where the query index is used to query a storage location of a block to be queried;
the query module 303 is configured to query the block to be queried according to the query index, and obtain block data of the block to be queried.
According to the device provided by the embodiment of the invention, the query condition at least comprising one or more of the block height, the block address, the transaction information, the transaction amount and the transaction time of the block to be queried is obtained, the query index is generated based on the query condition, the block to be queried is queried according to the query index, and the block data of the block to be queried is obtained, so that the block data of the block can be queried according to various query conditions, the data query limitation is small, the data query process is simplified, the intelligence is good, and the user viscosity is high.
In another embodiment, referring to fig. 3B, the apparatus further comprises a data acquisition module 304, a second generation module 305, and a storage module 306.
The data obtaining module 304 is configured to obtain block data of at least one block, where the block data at least includes block height, block characteristic value, transaction information, transaction amount, transaction time, and parent block information;
the second generating module 305 is configured to, for any block in the at least one block, generate a storage index of the block based on the block data of the block, where the storage index is used to indicate a storage location of the block data;
the storage module 306 is configured to store the block data of the block to the storage location indicated by the storage index.
In another embodiment, referring to fig. 3C, the data obtaining module 304 includes a downloading submodule 3041 and a parsing submodule 3042.
The download submodule 3041 is configured to download at least one block;
the parsing sub-module 3042 is configured to parse at least one block based on a block parsing tool to obtain block data of the at least one block.
In another embodiment, referring to fig. 3D, the first generation module 302 includes a determination submodule 3021 and a parsing submodule 3022.
The determining submodule 3021 is configured to determine a preset parsing algorithm, where the preset parsing algorithm at least includes a word segmentation algorithm;
the parsing submodule 3022 is configured to parse the query condition based on a preset parsing algorithm to generate a query index.
In another embodiment, referring to fig. 3E, the query module 303 includes an index acquisition sub-module 3031, a query sub-module 3032 and a data acquisition sub-module 3033.
The index obtaining submodule 3031 is configured to obtain at least one storage index of at least one block;
the query submodule 3032 is configured to query, based on the query index, a specified storage index from the at least one storage index, where the specified storage index is matched with the query index;
the data obtaining sub-module 3033 is configured to obtain the block data of the block to be queried at the storage location indicated by the specified storage index.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 4 is a block diagram illustrating a data querying device 400, according to an example embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing component 402, memory 404, power component 406, multimedia component 408, audio component 410, interface to I/O (Input/Output) 412, sensor component 414, and communication component 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The Memory 404 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as an SRAM (Static Random Access Memory), an EEPROM (Electrically-Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a PROM (Programmable Read-Only Memory), a ROM (Read-Only Memory), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 may include a Microphone (MIC) configured to receive external audio signals when the device 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as a display and keypad of the apparatus 400, the sensor component 414 can also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the Communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on an RFID (Radio Frequency Identification) technology, an IrDA (infrared-Data Association) technology, an UWB (Ultra Wideband) technology, a BT (Bluetooth) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more ASICs (Application Specific Integrated circuits), DSPs (Digital signal processors), DSPDs (Digital signal processing devices), PLDs (Programmable Logic devices), FPGAs (Field Programmable Gate arrays), controllers, microcontrollers, microprocessors or other electronic components for performing the above-described data query method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a data query device, enable the data query device to perform the above data query method.
A1, a data query method, comprising:
acquiring query conditions of a user, wherein the query conditions at least comprise one or more of block height, block address, transaction information, transaction amount and transaction time of a block to be queried;
generating a query index based on the query condition, wherein the query index is used for querying the storage position of the block to be queried;
and inquiring the block to be inquired according to the inquiry index to obtain the block data of the block to be inquired.
A2, the method as claimed in claim 1, wherein before the obtaining the query condition of the user, the method further comprises:
acquiring block data of at least one block, wherein the block data at least comprises block height, block characteristic value, transaction information, transaction amount, transaction time and father block information;
for any block in the at least one block, generating a storage index of the block based on block data of the block, wherein the storage index is used for indicating a storage position of the block data;
and storing the block data of the block to the storage position indicated by the storage index.
The method of claim 2, wherein said obtaining block data of at least one block comprises:
downloading the at least one block;
and analyzing the at least one block based on a block analysis tool to obtain block data of the at least one block.
The method of claim 1, wherein generating a query index based on the query condition comprises:
determining a preset analysis algorithm, wherein the preset analysis algorithm at least comprises a word segmentation algorithm;
and analyzing the query condition based on the preset analysis algorithm to generate the query index.
A5 the method as claimed in claim 1, wherein the querying the block to be queried according to the query index, and the obtaining block data of the block to be queried includes:
acquiring at least one storage index of at least one block;
querying a specified storage index in the at least one storage index based on the query index, wherein the specified storage index is matched with the query index;
and acquiring the block data of the block to be queried at the storage position indicated by the specified storage index.
A6, a data inquiry apparatus, comprising:
the system comprises a condition acquisition module, a condition acquisition module and a condition acquisition module, wherein the condition acquisition module is used for acquiring query conditions of a user, and the query conditions at least comprise one or more of block height, block address, transaction information, transaction amount and transaction time of a block to be queried;
a first generating module, configured to generate a query index based on the query condition, where the query index is used to query a storage location of the block to be queried;
and the query module is used for querying the block to be queried according to the query index and acquiring the block data of the block to be queried.
A7, the device of claim 6, wherein the device further comprises:
the data acquisition module is used for acquiring block data of at least one block, wherein the block data at least comprises block height, block characteristic values, transaction information, transaction amount, transaction time and father block information;
a second generating module, configured to, for any block in the at least one block, generate a storage index of the block based on block data of the block, where the storage index is used to indicate a storage location of the block data;
and the storage module is used for storing the block data of the block to the storage position indicated by the storage index.
A8, the device of claim 7, wherein the data acquisition module comprises:
a download sub-module for downloading the at least one block;
and the analysis submodule is used for analyzing the at least one block based on a block analysis tool to obtain block data of the at least one block.
A9, the device as claimed in claim 6, wherein the first generating module comprises:
the determining submodule is used for determining a preset analysis algorithm, and the preset analysis algorithm at least comprises a word segmentation algorithm;
and the analysis submodule is used for analyzing the query condition based on the preset analysis algorithm to generate the query index.
A10, the apparatus of claim 6, wherein the query module comprises:
the index acquisition submodule is used for acquiring at least one storage index of at least one block;
the query submodule is used for querying a specified storage index in the at least one storage index based on the query index, and the specified storage index is matched with the query index;
and the data acquisition submodule is used for acquiring the block data of the block to be queried at the storage position indicated by the specified storage index.
A11, an electronic device, comprising the data query device of any one of claims 6 to 10.
A12, an electronic device, comprising: a memory for storing executable instructions;
and a processor in communication with the memory to execute the executable instructions to perform the operations of the data query method of any one of claims 1 to 5.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.