Communication data query method and terminal based on distributed network
By using dictionary indexes and data formulas to reduce data in distributed networks and establishing dictionary templates, the problem of traditional file data query methods being long-term query in large file systems is solved, and data search efficiency and integrity are improved.
Patent Information
- Application Number
- CN202411165028.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-08-23
AI Technical Summary
When traditional file data query methods deal with large file systems or complex directory structures, the query time is long, which affects the user experience, and consumes a lot of computing resources and time when the data volume is large.
The communication data query method based on a distributed network is adopted. By matching data formulas in the preset dictionary index, the data is reduced to obtain abbreviated data, and a dictionary template is established to find and restore the original data in response to the query request.
It improves the efficiency of fully searching data in distributed networks, and reduces the consumption of computing resources and query latency.
Smart Images

Figure CN119202326A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data query, and in particular to a communication data query method and terminal based on a distributed network. Background Art
[0002] With the rapid development of information technology, file data management and query have become one of the indispensable functions of computer systems, especially in the fields of enterprise applications, personal data management and cloud storage services. Efficient and accurate query of file data is particularly important. The traditional file data query method, taking the file query mechanism in Microsoft Windows operating system as an example, provides an intuitive and convenient query function in the user interface, but there are still some significant limitations in the technical implementation.
[0003] In the Windows file query process, the system usually needs to start from the specified starting directory, traverse each file and folder in the directory tree, read the file data (such as file name, attributes, etc.) one by one, and compare them with the query conditions entered by the user. This data search method based on linear scanning will significantly increase the query time and affect the user experience when processing large file systems or complex directory structures.
[0004] Because it is necessary to ensure the integrity of the query results, that is, not to miss any files that meet the query conditions, the system must perform comprehensive data reading and comparison operations. This comprehensive integrity search consumes a lot of computing resources and time when the data volume is large, especially in an environment with limited disk I / O performance, where query delays are particularly obvious. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a communication data query method and terminal based on a distributed network, which can improve the efficiency of completely searching for data in the distributed network.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] A communication data query method based on a distributed network comprises the following steps:
[0008] Acquire data in a distributed network, match a data formula in a preset dictionary index, and use the data formula to reduce and summarize the data to obtain abbreviated data;
[0009] Establish a dictionary template corresponding to each data according to the dictionary index corresponding to each data, the abbreviated data, the data formula and the position number of the dictionary index in the dictionary data cluster;
[0010] In response to a data query request, a corresponding dictionary template is searched according to the query conditions in the data query request, and original data in the distributed network is calculated according to the query conditions and the dictionary template, and the calculated original data is used as the return result of the data query request.
[0011] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0012] A communication data query terminal based on a distributed network comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the above-mentioned communication data query method based on a distributed network is implemented.
[0013] The beneficial effects of the present invention are as follows: after acquiring the data in the distributed network, a data formula is matched to the data, the data is reduced and summarized using the data formula to obtain abbreviated data, and a dictionary template corresponding to each data is established based on the dictionary index corresponding to the data, the abbreviated data, the data formula and the position number of the dictionary index in the dictionary data cluster. After that, the corresponding dictionary template can be found according to the data query request, and the data to be found can be restored according to the dictionary template, thereby improving the efficiency of complete data search in the distributed network. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flow chart of a communication data query method based on a distributed network according to an embodiment of the present invention;
[0015] Figure 2 A schematic diagram of a communication data query terminal based on a distributed network according to an embodiment of the present invention;
[0016] Figure 3 The figure is a flowchart of a dictionary template generating method according to an embodiment of the present invention.
[0017] Description of labels:
[0018] 1. A communication data query terminal based on a distributed network; 2. A memory; 3. A processor. DETAILED DESCRIPTION
[0019] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0020] Please refer to Figure 1 The embodiment of the present invention provides a communication data query method based on a distributed network, comprising the steps of:
[0021] Acquire data in a distributed network, match a data formula in a preset dictionary index, and use the data formula to reduce and summarize the data to obtain abbreviated data;
[0022] Establish a dictionary template corresponding to each data according to the dictionary index corresponding to each data, the abbreviated data, the data formula and the position number of the dictionary index in the dictionary data cluster;
[0023] In response to a data query request, a corresponding dictionary template is searched according to the query conditions in the data query request, and original data in the distributed network is calculated according to the query conditions and the dictionary template, and the calculated original data is used as the return result of the data query request.
[0024] From the above description, it can be seen that the beneficial effects of the present invention are: after acquiring the data in the distributed network, the data formula is matched to the data, the data is reduced and summarized using the data formula to obtain abbreviated data, and a dictionary template corresponding to each data is established based on the dictionary index corresponding to the data, the abbreviated data, the data formula and the position number of the dictionary index in the dictionary data cluster. After that, the corresponding dictionary template can be found according to the data query request, and the data to be found can be restored according to the dictionary template, thereby improving the efficiency of complete data search in the distributed network.
[0025] Further, the data is reduced using the data formula to obtain abbreviated data, including:
[0026] Determine whether the acquired data can extract the data outline. If so, obtain the reduced data, convert the reduced data into corresponding hexadecimal data, and page the hexadecimal data. Use the paired data formula to calculate the data for each page, and combine the calculation results of each page to obtain the abbreviated data.
[0027] From the above description, it can be seen that after the outline of the thumbnail data is extracted, the data outline is divided and summarized according to the data formula, which can further dictionary the data and improve the efficiency of subsequent data queries.
[0028] Further, searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, including:
[0029] When the query condition in the data query request includes abbreviated data, a dictionary template including the corresponding abbreviated data is searched, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.
[0030] From the above description, it can be seen that according to the data search dictionary, the formula corresponding to the data can be directly determined and the data can be expanded, thereby ensuring the efficiency of data query.
[0031] Further, searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, further comprising:
[0032] When the query condition in the data query request includes a data formula, a dictionary template including the corresponding data formula is searched, and the abbreviated data in the dictionary template is expanded according to the data formula to calculate the original data in the distributed network.
[0033] From the above description, it can be seen that by searching the dictionary according to the formula, each dictionary corresponding to the formula can be determined, and data can be expanded, thereby ensuring the integrity of the data query.
[0034] Further, searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, further comprising:
[0035] When the query condition in the data query request does not contain abbreviated data and a data formula, a dictionary template whose abbreviated data is not empty is searched, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.
[0036] From the above description, it can be seen that when the query conditions in the data query request do not contain abbreviated data and data formula, a dictionary template whose abbreviated data is not empty can be searched, so that the abbreviated data therein can be expanded, further ensuring the integrity of the data query.
[0037] Please refer to Figure 2 Another embodiment of the present invention provides a communication data query terminal based on a distributed network, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the above-mentioned communication data query method based on a distributed network is implemented.
[0038] The above-mentioned communication data query method and terminal based on a distributed network of the present invention are suitable for improving the efficiency of completely searching for data in a distributed network, and are described below through specific implementation methods:
[0039] Embodiment 1
[0040] Please refer to Figure 1 and Figure 3 , a communication data query method based on a distributed network, comprising the steps of:
[0041] S1. Acquire data in a distributed network, match a data formula in a preset dictionary index, and use the data formula to reduce and summarize the data to obtain abbreviated data.
[0042] Specifically, determine whether the acquired data can extract the data outline. If so, obtain the reduced data, convert the reduced data into corresponding hexadecimal data, and paginate the hexadecimal data. Use the paired data formula to calculate the data for each page, and combine the calculation results of each page to obtain the abbreviated data.
[0043] Among them, data formulas are selected from the formula library and calculated for each page of data. Specifically, the formula is generated based on data features or is a general formula template. In this embodiment, a type of data can specify a general formula template. In this way, when searching for formulas, expanding the general formula template will result in all dictionary data and abbreviated data corresponding to this type of data.
[0044] In this embodiment, it is first determined whether the data in the distributed network can be reduced by AI and the data outline is extracted. If so, the data outline is used as the reduced data, and then the reduced data is summarized to obtain abbreviated data; if not, the data in the distributed network is directly summarized to obtain abbreviated data.
[0045] Among them, the steps of generating summary data are: converting the data into corresponding hexadecimal codes, calculating the memory size of the data, and paging the data. In this embodiment, paging can be performed by memory size / 0x1000, and each paging corresponds to a formula for data summary calculation to obtain abbreviated data, and the abbreviated data can be used as a storage code.
[0046] Furthermore, the abbreviated data is stored in bytecode format, for example: 0A 13 0E 09.
[0047] S2. Establish a dictionary template corresponding to each data according to the dictionary index corresponding to each data, the abbreviated data, the data formula and the position number of the dictionary index in the dictionary data cluster.
[0048] In this embodiment, the dictionary template has four attributes: dictionary index Index, abbreviated data redata, data formula formula and dictionary data cluster number: cluster. Among them, the set formed by storing each dictionary in a binary tree manner is a dictionary data cluster.
[0049] For example: dictionary template A1-0E 98 41 06-X^2+XY+(X+Y)^2 -01, where A1 represents the dictionary index; 0E98 41 06 represents the abbreviated data; X^2+XY+(X+Y)^2 represents the formula in the A1 index; and 01 represents the dictionary data cluster number, which is equivalent to the position of the dictionary in the dictionary data cluster.
[0050] S3. In response to a data query request, a corresponding dictionary template is searched according to the query conditions in the data query request, and original data in the distributed network is calculated according to the query conditions and the dictionary template, and the calculated original data is used as the return result of the data query request.
[0051] When the query condition in the data query request includes abbreviated data, a dictionary template including the corresponding abbreviated data is searched, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.
[0052] Specifically, if the storage code (i.e. abbreviated data) in the dictionary is known, the dictionary template is searched through the storage code and the formula is expanded. Since the formula may not be unique, but the storage code is unique, the expanded data is unique data. Therefore, after expansion, the AI reduced data can be obtained, and then the original data can be obtained.
[0053] When the query condition in the data query request includes a data formula, a dictionary template including the corresponding data formula is searched, and the abbreviated data in the dictionary template is expanded according to the data formula to calculate the original data in the distributed network.
[0054] Specifically, if the data formula in the dictionary is known, similarly, the dictionary template that satisfies the data formula is traversed according to the index, and the data is expanded in combination with the storage code in the dictionary template.
[0055] When the query condition in the data query request does not contain abbreviated data and a data formula, a dictionary template whose abbreviated data is not empty is searched, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.
[0056] Specifically, if both the data formula and the abbreviated data are unknown, a dictionary template whose storage code (ie abbreviated data) is not empty is searched, and then the abbreviated data is expanded according to the data formula corresponding to the dictionary template.
[0057] In this embodiment, the data formula is used to expand the abbreviated data, and the process is as follows:
[0058] Take the abbreviated data as: X=0E, Y=2A, the data formula is: X^2+XY+(X+Y)^2 as an example, since 0E*2=1C, 0E*2A=24C, X^2=C4, Y^2=6E4, 2XY=498, the expanded data is: "1C 24 0C C4 49 086E 04"
[0059] Therefore, the data search method of this embodiment can ensure the integrity and efficiency of data search.
[0060] Embodiment 2
[0061] Please refer to Figure 2 A communication data query terminal 1 based on a distributed network includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, each step of a communication data query method based on a distributed network in embodiment 1 is implemented.
[0062] In summary, the present invention provides a communication data query method and terminal based on a distributed network. After acquiring the data in the distributed network, the data formula is matched to the data, and the data is reduced and summarized using the data formula to obtain abbreviated data. A dictionary template corresponding to each data is established based on the dictionary index corresponding to the data, the abbreviated data, the data formula, and the position number of the dictionary index in the dictionary data cluster. After that, the corresponding dictionary template can be found according to the data query request, and the data to be found can be restored according to the dictionary template, thereby improving the efficiency of complete data search in the distributed network.
[0063] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A communication data query method based on a distributed network, characterized in that: Includes steps: Acquire data in a distributed network, match a data formula in a preset dictionary index, and use the data formula to reduce and summarize the data to obtain abbreviated data; Establish a dictionary template corresponding to each data according to the dictionary index corresponding to each data, the abbreviated data, the data formula and the position number of the dictionary index in the dictionary data cluster; In response to a data query request, a corresponding dictionary template is searched according to the query conditions in the data query request, and original data in the distributed network is calculated according to the query conditions and the dictionary template, and the calculated original data is used as the return result of the data query request.
2. A communication data query method based on a distributed network according to claim 1, characterized in that: The data is reduced using the data formula to obtain abbreviated data, including: Determine whether the acquired data can extract the data outline. If so, obtain the reduced data, convert the reduced data into corresponding hexadecimal data, and page the hexadecimal data. Use the paired data formula to calculate the data for each page, and combine the calculation results of each page to obtain the abbreviated data.
3. A communication data query method based on a distributed network according to claim 1, characterized in that: Searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, including: When the query condition in the data query request includes abbreviated data, a dictionary template including the corresponding abbreviated data is searched, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.
4. A communication data query method based on a distributed network according to claim 3, characterized in that: Searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, further comprising: When the query condition in the data query request includes a data formula, a dictionary template including the corresponding data formula is searched, and the abbreviated data in the dictionary template is expanded according to the data formula to calculate the original data in the distributed network.
5. A communication data query method based on a distributed network according to claim 4, characterized in that: Searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, further comprising: When the query condition in the data query request does not contain abbreviated data and a data formula, a dictionary template whose abbreviated data is not empty is searched, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.
6. A communication data query terminal based on a distributed network, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: Acquire data in a distributed network, match a data formula in a preset dictionary index, and use the data formula to reduce and summarize the data to obtain abbreviated data; Establish a dictionary template corresponding to each data according to the dictionary index corresponding to each data, the abbreviated data, the data formula and the position number of the dictionary index in the dictionary data cluster; In response to a data query request, a corresponding dictionary template is searched according to the query conditions in the data query request, and original data in the distributed network is calculated according to the query conditions and the dictionary template, and the calculated original data is used as the return result of the data query request.
7. A communication data query terminal based on a distributed network according to claim 6, characterized in that: The data is reduced using the data formula to obtain abbreviated data, including: Determine whether the acquired data can extract the data outline. If so, obtain the reduced data, convert the reduced data into corresponding hexadecimal data, and page the hexadecimal data. Use the paired data formula to calculate the data for each page, and combine the calculation results of each page to obtain the abbreviated data.
8. A communication data query terminal based on a distributed network according to claim 6, characterized in that: Searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, including: When the query condition in the data query request includes abbreviated data, a dictionary template including the corresponding abbreviated data is searched, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.
9. A communication data query terminal based on a distributed network according to claim 8, characterized in that: Searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, further comprising: When the query condition in the data query request includes a data formula, a dictionary template including the corresponding data formula is searched, and the abbreviated data in the dictionary template is expanded according to the data formula to calculate the original data in the distributed network.
10. A communication data query terminal based on a distributed network according to claim 9, characterized in that: Searching for a corresponding dictionary template according to the query condition in the data query request, and calculating and obtaining the original data in the distributed network according to the query condition and the dictionary template, further comprising: When the query condition in the data query request does not contain abbreviated data and a data formula, a dictionary template whose abbreviated data is not empty is searched, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.
Citation Information
Patent Citations
Data query method and device, storage medium and electronic equipment
CN112905600A
Elastic search paging query method and device based on cache
CN116049103A
Log query method and device, terminal equipment and storage medium
CN117574891A
Method for parsing query based on artificial intelligence and computer device
US20180373692A1
