A communication data query method and terminal based on a distributed network

By using data formulas to reduce and summarize data and establish dictionary templates in a distributed network, the inefficiency of traditional query methods is solved, enabling efficient and fast data querying.

CN119202326BActive Publication Date: 2025-11-28福建天晴在线互动科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411165028.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2025-11-28
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

Traditional file data query methods are inefficient in large file systems or complex directory structures, resulting in longer query times and impacting user experience, especially in environments with limited computing resources.

Method used

A distributed network-based communication data query method is adopted. By acquiring data and matching data formulas in the dictionary index, the data is reduced and summarized into abbreviated data, a dictionary template is established, and the original data is retrieved and restored in response to query requests.

Benefits of technology

It improves the efficiency and integrity of data querying in distributed networks, reduces the consumption of computing resources, and increases query speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119202326B_ABST
    Figure CN119202326B_ABST
Patent Text Reader

Abstract

The application discloses a communication data query method and terminal based on a distributed network, and after data in the distributed network is acquired, a data formula is matched for the data, the data is summarized by using the data formula to obtain abbreviated data, and a dictionary template corresponding to each data is established based on a dictionary index corresponding to the data, the abbreviated data, the data formula and a position number of the dictionary index in a dictionary data cluster, then the corresponding dictionary template can be found according to a data query request, and the data to be found can be restored according to the dictionary template, so that the efficiency of completely finding data in the distributed network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data query, in particular to a communication data query method and terminal based on a distributed network. BACKGROUND

[0002] In today's rapid development of information technology, file data management and query has become one of the indispensable functions of computer systems, especially in enterprise-level applications, personal data management and cloud storage services, etc. Efficient and accurate query of file data is particularly important. The traditional file data query method, for example, the file query mechanism in Microsoft Windows operating system, although it provides an intuitive and convenient query function in the user interface, there are still some significant limitations in the technical implementation level.

[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 data of the file (such as file name, attributes, etc.) one by one, and compare it with the query condition input by the user. This linear scanning-based data search method will significantly increase the query time when dealing with large file systems or complex directory structures, affecting user experience.

[0004] In order to ensure the integrity of the query results, that is, not to miss any file that meets the query condition, the system must perform comprehensive data reading and comparison operations. This comprehensive integrity search will consume a lot of computing resources and time in the case of large amount of data, especially in the environment where the disk I / O performance is limited, the query delay is particularly obvious. SUMMARY

[0005] The technical problem to be solved by the present application is to provide a communication data query method and terminal based on a distributed network, which can improve the efficiency of complete data search in a distributed network.

[0006] In order to solve the above technical problems, the technical scheme adopted by the present application is:

[0007] A communication data query method based on a distributed network, comprising the steps of:

[0008] Obtaining data in a distributed network, matching data formula in a preset dictionary index, using the data formula to reduce and summarize the data to obtain abbreviated data;

[0009] 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, a dictionary template corresponding to each data is established;

[0010] In response to the data query request, a corresponding dictionary template is found according to a query condition in the data query request, and original data in the distributed network is calculated according to the query condition and the dictionary template, and the calculated original data is taken as a return result of the data query request.

[0011] To solve the above technical problems, another technical solution adopted by the present application 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, and the processor implements each step of the communication data query method based on the distributed network.

[0013] The present application has the beneficial effect that after the data in the distributed network is obtained, the data formula is matched for the data, the data is summarized using the data formula to obtain the abbreviated data, and the 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, and then the corresponding dictionary template can be found according to the data query request, and the data to be found is restored according to the dictionary template, so that the efficiency of complete data searching in the distributed network is improved. BRIEF DESCRIPTION OF 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 application;

[0015] Figure 2 A schematic diagram of a communication data query terminal based on a distributed network according to an embodiment of the present application;

[0016] Figure 3 A flow chart of a dictionary template generation method according to an embodiment of the present application.

[0017] REFERENCE NUMERALS

[0018] 1. A communication data query terminal based on a distributed network; 2. a memory; 3. a processor. DETAILED DESCRIPTION

[0019] To explain the technical content, purposes and effects of the present application in detail, the following will be described in combination with the embodiments and the accompanying drawings.

[0020] Please refer to Figure 1 The embodiment of the present application provides a communication data query method based on a distributed network, which comprises the following steps:

[0021] Obtaining data in a distributed network, matching a data formula in a preset dictionary index, and using the data formula to reduce and summarize the data to obtain abbreviated data;

[0022] 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, a dictionary template corresponding to each data is established.

[0023] In response to a data query request, a corresponding dictionary template is found according to a query condition in the data query request, and original data in the distributed network is calculated according to the query condition and the dictionary template, and the calculated original data is taken as a return result of the data query request.

[0024] From the above description, the beneficial effects of the present application are that after obtaining data in a distributed network, a data formula is matched for 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. Then, according to the data query request, the corresponding dictionary template is found, and the data to be searched is restored according to the dictionary template, so as to improve the efficiency of searching for data in the distributed network.

[0025] Further, the data is reduced using the data formula to obtain abbreviated data, including:

[0026] It is judged whether the obtained data can extract a data outline, if yes, the reduced data is obtained, the reduced data is converted into corresponding hexadecimal data, and the hexadecimal data is paginated, each paginated data is calculated using a matched data formula, and the abbreviated data is obtained by combining the calculation results of each page.

[0027] From the above description, after the abbreviated data is extracted, the data outline is divided and summarized according to the data formula, which can further dictionary the data and improve the subsequent data query efficiency.

[0028] Further, according to the query condition in the data query request, a corresponding dictionary template is found, and original data in the distributed network is calculated according to the query condition and the dictionary template, including:

[0029] When the query condition in the data query request contains abbreviated data, a dictionary template containing the corresponding abbreviated data is found, 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, according to the data lookup dictionary, the corresponding formula of the data can be directly determined, and data expansion is performed, thereby ensuring the efficiency of data query.

[0031] Further, the corresponding dictionary template is found according to the query condition in the data query request, and the original data in the distributed network is calculated according to the query condition and the dictionary template, and the method further comprises the following steps.

[0032] When the query condition in the data query request contains a data formula, the dictionary template containing the corresponding data formula is found, and the abbreviated data in the dictionary template is expanded according to the data formula, so as to calculate the original data in the distributed network.

[0033] From the above description, according to the formula to find the dictionary, the corresponding dictionary of the formula can be determined, and data expansion is performed, thereby ensuring the integrity of data query.

[0034] Further, the corresponding dictionary template is found according to the query condition in the data query request, and the original data in the distributed network is calculated according to the query condition and the dictionary template, and the method further comprises the following steps.

[0035] When the query condition in the data query request does not contain abbreviated data and data formula, the dictionary template with non-empty abbreviated data is found, and the abbreviated data is expanded according to the data formula in the dictionary template, so as to calculate the original data in the distributed network.

[0036] From the above description, when the query condition in the data query request does not contain abbreviated data and data formula, the dictionary template with non-empty abbreviated data can be found, so that the abbreviated data therein is expanded, thereby further ensuring the integrity of data query.

[0037] Please refer to Figure 2 Another embodiment of the application provides 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, wherein the processor implements each step of the above-mentioned communication data query method based on a distributed network.

[0038] The above-mentioned communication data query method and terminal based on a distributed network are suitable for improving the efficiency of complete data searching in a distributed network, and the following specific embodiments are described:

[0039] Embodiment one

[0040] Please refer to Figure 1 and Figure 3 A communication data query method based on a distributed network comprises the following steps:

[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 reduced data.

[0042] Specifically, it is judged whether the acquired data can extract a data outline. If yes, reduced data is obtained, the reduced data is converted into corresponding hexadecimal data, the hexadecimal data is paginated, a paired data formula is used to calculate each paginated data, and the calculation results of each page are combined to obtain the reduced data.

[0043] In the embodiment, the data formula is selected from a formula library, and each paginated data is calculated. Specifically, the formula is generated according to data characteristics or is a general formula template. In the embodiment, one type of data can be assigned one general formula template. When the general formula template is expanded, it is the entire dictionary data and the reduced data corresponding to this type of data.

[0044] In the embodiment, it is first judged whether the data in the distributed network can be reduced by AI and extract a data outline. If yes, the data outline is used as reduced data, and then the reduced data is summarized to obtain the reduced data. If not, the data in the distributed network is directly summarized to obtain the reduced data.

[0045] In the embodiment, the step of generating summarized data is: converting the data into corresponding hexadecimal encoding, calculating the memory size of the data, and paginating the data. In the embodiment, the memory size / 0x1000 can be used for pagination, each page corresponds to a formula for data summary calculation, and the reduced data can be used as storage code.

[0046] In addition, the reduced data is stored in bytecode, for example: 0A 13 0E 09.

[0047] S2, according to the dictionary index corresponding to each data, the reduced data, the data formula, and the position number of the dictionary index in the dictionary data cluster, a dictionary template corresponding to each data is established.

[0048] In the embodiment, the dictionary template has four attributes: dictionary index Index, reduced data redata, data formula formula, and dictionary data cluster number cluster. The collection of each dictionary stored in a binary tree manner is a dictionary data cluster.

[0049] For example, the dictionary template A1-0E 98 41 06-X^2+XY+(X+Y)^2 -01, wherein A1 represents the dictionary index; 0E 98 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 the data query request, finding the corresponding dictionary template according to the query condition in the data query request, and calculating the original data in the distributed network according to the query condition and the dictionary template, and taking the calculated original data as the return result of the data query request.

[0051] When the query condition in the data query request contains abbreviated data, the dictionary template containing the corresponding abbreviated data is found, 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 found 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, the AI reduced data can be obtained after expansion, and then the original data can be obtained.

[0053] When the query condition in the data query request contains the data formula, the dictionary template containing the corresponding data formula is found, 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, the dictionary template satisfying the data formula is searched according to the index, and then the data is expanded according to the storage code in the dictionary template.

[0055] When the query condition in the data query request does not contain abbreviated data and data formula, the dictionary template with non-empty abbreviated data is found, 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 the data formula and the abbreviated data are unknown, the dictionary template with non-empty storage code (i.e., abbreviated data) is searched, and then the abbreviated data is expanded according to the data formula corresponding to the dictionary template.

[0057] In this embodiment, the abbreviated data is expanded using the data formula, and the process is as follows:

[0058] Take the data of X=0E, Y=2A and the data formula of X^2+XY+(X+Y)^2 as an example, since 0E*2=1C, 0E*2A=24C, X^2=C4, Y^2=6E4, 2XY=498, thus the expanded data is: "1C 24 0C C4 49 086E 04"

[0059] Therefore, by the data searching method of the embodiment, the integrity and efficiency of data searching can be ensured.

[0060] Embodiment Two

[0061] Please refer to Figure 2 A communication data query terminal 1 based on a distributed network, comprising a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3, wherein the processor 3 implements each step of the communication data query method based on the distributed network of embodiment one when executing the computer program.

[0062] To sum up, the communication data query method and terminal based on a distributed network provided by the application, after obtaining the data in the distributed network, match the data with a data formula, use the data formula to reduce and summarize the data to obtain abbreviated data, and establish a dictionary template corresponding to each data 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, then the corresponding dictionary template can be found according to the data query request, and the data to be searched can be restored according to the dictionary template, so as to improve the efficiency of searching data in the distributed network.

[0063] The above is only an embodiment of the application, and does not limit the patent scope of the application, any equivalent transformation or direct or indirect application in related technical fields based on the content of the specification and drawings of the application are also included in the patent protection scope of the application.

Claims

1. A method for querying communication data based on a distributed network, characterized in that, The method comprises the steps of: acquiring data in a distributed network, matching a data formula in a preset dictionary index, using the data formula to reduce and summarize the data to obtain abbreviated data; establishing a dictionary template corresponding to each data according to the dictionary index corresponding to each data, the abbreviated data, the data formula, and a position number of the dictionary index in a dictionary data cluster; in response to a data query request, finding a corresponding dictionary template according to a query condition in the data query request, calculating original data in the distributed network according to the query condition and the dictionary template, and returning the calculated original data as a result of the data query request; using the data formula to reduce the data to obtain abbreviated data comprises: judging whether the acquired data can extract a data outline, if yes, obtaining reduced data, converting the reduced data into corresponding hexadecimal data, paging the hexadecimal data, using a paired data formula to calculate each paged data, and combining the calculation results of each page to obtain abbreviated data.

2. The communication data query method based on distributed network according to claim 1, characterized in that, finding a corresponding dictionary template according to a query condition in the data query request, and calculating original data in the distributed network according to the query condition and the dictionary template comprises: when the query condition in the data query request contains abbreviated data, finding a dictionary template containing corresponding abbreviated data, expanding the abbreviated data according to a data formula in the dictionary template to calculate the original data in the distributed network.

3. The method of claim 2, wherein, finding a corresponding dictionary template according to a query condition in the data query request, and calculating original data in the distributed network according to the query condition and the dictionary template further comprises: when the query condition in the data query request contains a data formula, finding a dictionary template containing the corresponding data formula, expanding abbreviated data in the dictionary template according to the data formula to calculate the original data in the distributed network.

4. The communication data query method based on distributed network according to claim 3, characterized in that, finding a corresponding dictionary template according to a query condition in the data query request, and calculating original data in the distributed network according to the query condition and the dictionary template further comprises: when the query condition in the data query request does not contain abbreviated data and a data formula, finding a dictionary template with non-empty abbreviated data, expanding the abbreviated data according to a data formula in the dictionary template to calculate the original data in the distributed network. 5.A communication data query terminal based on a distributed network, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the following steps when executing the computer program: acquiring data in a distributed network, matching a data formula in a preset dictionary index, using the data formula to reduce and summarize the data to obtain abbreviated data; establishing a dictionary template corresponding to each data according to the dictionary index corresponding to each data, the abbreviated data, the data formula, and a position number of the dictionary index in a dictionary data cluster; in response to a data query request, finding a corresponding dictionary template according to a query condition in the data query request, calculating original data in the distributed network according to the query condition and the dictionary template, and returning the calculated original data as a result of the data query request; In response to the data query request, a corresponding dictionary template is found according to a query condition in the data query request, and original data in a distributed network is calculated according to the query condition and the dictionary template, and the calculated original data is taken as a return result of the data query request; The data is reduced to obtain abbreviated data using the data formula, including: It is judged whether the obtained data can extract a data outline, if yes, reduced data is obtained, the reduced data is converted into corresponding hexadecimal data, and the hexadecimal data is paginated, paired data formula is used to calculate each paginated data, and abbreviated data is obtained by combining the calculation results of each page.

6. The communication data query terminal based on distributed network according to claim 5, wherein, According to the query condition in the data query request, a corresponding dictionary template is found, and original data in a distributed network is calculated according to the query condition and the dictionary template, including: When the query condition in the data query request contains abbreviated data, a dictionary template containing corresponding abbreviated data is found, and the abbreviated data is expanded according to the data formula in the dictionary template to calculate the original data in the distributed network.

7. The communication data query terminal based on distributed network according to claim 6, characterized in that, According to the query condition in the data query request, a corresponding dictionary template is found, and original data in a distributed network is calculated according to the query condition and the dictionary template, further including: When the query condition in the data query request contains data formula, a dictionary template containing corresponding data formula is found, and the abbreviated data in the dictionary template is expanded according to the data formula to calculate the original data in the distributed network.

8. The communication data query terminal based on distributed network according to claim 7, characterized in that, According to the query condition in the data query request, a corresponding dictionary template is found, and original data in a distributed network is calculated according to the query condition and the dictionary template, further including: When the query condition in the data query request does not contain abbreviated data and data formula, a dictionary template with non-empty abbreviated data is found, 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

  • Elastic search paging query method and device based on cache

    CN116049103A

  • Log query method and device, terminal equipment and storage medium

    CN117574891A