A data processing method, device, equipment and readable storage medium

By performing data sampling and position serial number fusion on the original data, a target data summary is generated, which solves the problem of low data summary accuracy in the existing technology and achieves more stable data query results.

CN113139105BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010067327.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-20
Publication Date
2024-10-15
Estimated Expiration
2040-01-20

AI Technical Summary

Technical Problem

When the existing technology generates data summaries in large-scale distributed systems, the mechanism of random parity bit sampling results in low data accuracy, which in turn leads to large errors and instability in the estimation results.

Method used

Through data sampling of the original data, the first business data and the second business data are obtained, and the data summary is generated according to their original position serial number. By obtaining the summary position serial number for fusion, a target data summary for data query is generated, using the original position The serial number and summary position serial number are combined to improve data accuracy.

Benefits of technology

It improves the accuracy of data summary, reduces the error of estimation results, and makes the results of data query more stable and reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113139105B_ABST
    Figure CN113139105B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a data processing method, device, equipment and readable storage medium. The present application belongs to the field of computer technology. The method includes: sampling the original data to obtain the first business data and the second business data; determining the first business data and the original position number of the first business data in the original data as the first data summary, and determining the second business data and the original position number of the second business data in the original data as the second data summary; obtaining the summary position number of the first business data in the second data summary as the first fusion position number, and obtaining the summary position number of the second business data in the first data summary as the second fusion position number; generating a target data summary for data query on the original data according to the first fusion position number and the second fusion position number. The present application can improve the data accuracy and reduce the error of the estimation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, device and readable storage medium. Background Art

[0002] For fast and real-time estimation of the ranking of a given value in a data set in a large distributed system, and when estimating the corresponding value of a certain ranking in a data set, in order to save storage space, the data set can be processed to generate a corresponding data summary, and then the given data can be matched with the data summary to determine its ranking or corresponding data.

[0003] In the prior art, for the process of generating a data summary from a data set, the data set can be evenly cut according to the data sampling length, the multiple sub-data sets obtained after the cutting are sorted respectively, and then the sorted multiple sub-data sets are aggregated and merged by multiple random odd and even bit sampling to generate a data summary corresponding to the data set. In this aggregation process, the mechanism of randomly taking odd or even bits has a strong randomness, which will make the data in the generated data summary not accurate, and further cause the estimated result obtained when using the data summary for data query to be very different from the actual result in the original data, that is, the error is large and unstable. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, apparatus, device, and readable storage medium, which can improve data accuracy and thereby reduce estimation result errors.

[0005] On the one hand, an embodiment of the present application provides a data processing method, including:

[0006] Performing data sampling on the original data to obtain first business data and second business data;

[0007] Determine the first business data and the original position serial number of the first business data in the original data as a first data summary, and determine the second business data and the original position serial number of the second business data in the original data as a second data summary;

[0008] Obtaining a summary position number of the first business data in the second data summary as a first fusion position number, and obtaining a summary position number of the second business data in the first data summary as a second fusion position number;

[0009] The first data summary and the second data summary are fused according to the first fusion position serial number and the second fusion position serial number to generate a target data summary for performing a data query on the original data.

[0010] An embodiment of the present application provides a data processing device, including:

[0011] A data sampling module, used for sampling the original data to obtain first business data and second business data;

[0012] a summary determination module, configured to determine the first business data and the original position serial number of the first business data in the original data as a first data summary, and determine the second business data and the original position serial number of the second business data in the original data as a second data summary;

[0013] A sequence number acquisition module, used to acquire a summary position sequence number of the first business data in the second data summary as a first fusion position sequence number;

[0014] The serial number acquisition module is further used to acquire the summary position serial number of the second business data in the first data summary as the second fusion position serial number;

[0015] The summary generation module is used to fuse the first data summary and the second data summary according to the first fusion position serial number and the second fusion position serial number to generate a target data summary for data query on the original data.

[0016] The data sampling module includes:

[0017] A data set acquisition unit, used to acquire a first data set and a second data set from the above original data; each business data in the above original data has an original position serial number;

[0018] A sampling length acquisition unit, used for acquiring a data sampling length;

[0019] A screening number determination unit, used to obtain the maximum original position number of the business data in the first data set, and determine the first position screening number according to the maximum original position number in the first data set and the data sampling length;

[0020] A business data screening unit, used to screen the business data corresponding to the first position screening sequence number in the first data set as the first business data;

[0021] The screening number determination unit is further configured to obtain the maximum original position number of the service data in the second data set, and determine the second position screening number according to the maximum original position number in the second data set and the data sampling length;

[0022] The business data screening unit is further used to screen the business data corresponding to the second position screening sequence number in the second data set as the second business data.

[0023] The business data screening unit includes:

[0024] A position number acquisition subunit is used to acquire the original position numbers corresponding to the business data in the first data set;

[0025] An operation processing subunit, used for performing a subtraction operation on the first position screening sequence number and the original position sequence number in the first data set to obtain a first sequence number difference;

[0026] The absolute value acquisition subunit is used to obtain the first minimum difference absolute value among the difference absolute values ​​corresponding to the above-mentioned first sequence number difference, determine the original position sequence number corresponding to the above-mentioned first minimum difference absolute value as the first sequence number to be extracted, and determine the business data corresponding to the above-mentioned first sequence number to be extracted as the above-mentioned first business data.

[0027] The position number acquisition subunit is further used to acquire the original position numbers corresponding to the business data in the second data set;

[0028] The arithmetic processing subunit is further used to perform a subtraction operation on the second position screening serial number and the original position serial number in the second data set to obtain a second serial number difference;

[0029] Among them, the above-mentioned absolute value acquisition subunit is also used to obtain the second minimum difference absolute value among the difference absolute values ​​corresponding to the above-mentioned second sequence number difference, determine the original position sequence number corresponding to the above-mentioned second minimum difference absolute value as the second sequence number to be extracted, and determine the business data corresponding to the above-mentioned second sequence number to be extracted as the above-mentioned second business data.

[0030] The above-mentioned serial number acquisition module includes:

[0031] A summary matching unit, used to match the first business data with the second data summary, and determine first data to be fused according to the matching result; the first data to be fused refers to business data in the second data summary that has an adjacent position relationship with the first business data;

[0032] A summary position number determining unit, configured to determine a summary position number of the first service data in the second data summary according to an original position number of the first data to be fused in the second data summary;

[0033] The fusion position number determining unit is used to determine the summary position number of the above-mentioned first business data in the above-mentioned second data summary as the first fusion position number.

[0034] The summary matching unit is further configured to match the first business data with the second data summary, and if the second business data identical to the first business data exists in the second data summary, the second business data identical to the first business data is determined as the first data to be merged;

[0035] The summary matching unit is further configured to determine the smallest second business data in the second data summary as the first data to be merged if the smallest second business data in the second data summary is larger than the first business data;

[0036] The summary matching unit is further configured to determine the largest second business data in the second data summary as the first data to be merged if the largest second business data in the second data summary is smaller than the first business data;

[0037] The summary matching unit is also used to determine the maximum second business data among the second business data that is smaller than the first business data and the minimum second business data among the second business data that is larger than the first business data as the first data to be merged if there is second business data smaller than the first business data and there is second business data larger than the first business data in the second data summary.

[0038] The summary position number determining unit is further configured to determine the original position number of the first data to be merged in the second data summary as the summary position number of the first business data in the second data summary if the first data to be merged includes a second business data;

[0039] The summary position serial number determination unit is also used to construct a serial number linear function based on the maximum second business data among the second business data that is smaller than the first business data and the minimum second business data among the second business data that is larger than the first business data if the first data to be merged includes two adjacent second business data, and determine the summary position serial number of the first business data in the summary of the second data according to the serial number linear function.

[0040] The summary generation module includes:

[0041] a target position number determining unit, configured to obtain an original position number of the first service data in the first data summary, and obtain a first target position number of the first service data according to the first fused position number and the original position number of the first service data in the first data summary;

[0042] The target position number determination unit is further configured to obtain an original position number of the second service data in the second data summary, and obtain a second target position number of the second service data according to the second fused position number and the original position number of the second service data in the second data summary;

[0043] The summary generating unit is used to generate the target data summary according to the first business data, the first target location serial number, the second business data and the second target location serial number.

[0044] The summary generation unit includes:

[0045] A fusion data summary generating subunit, configured to generate a fusion data summary according to the first service data, the first target location sequence number, the second service data and the second target location sequence number;

[0046] A target position screening number determination subunit is used to obtain a maximum target position number from the first target position number and the second target position number, and determine a target position screening number according to the maximum target position number and the data sampling length;

[0047] A business data screening subunit, used to screen the business data corresponding to the target location screening sequence number in the fused data summary as target business data;

[0048] The target data summary determination subunit is used to determine the above-mentioned target business data and the serial number of the above-mentioned target business data in the above-mentioned fused data summary as the above-mentioned target data summary.

[0049] The fusion data summary generating subunit is further used to determine the first business data and the first target position sequence number corresponding to the first business data, and the second business data and the second target position sequence number corresponding to the second business data as the initial data summary;

[0050] The fused data summary generating subunit is further used to obtain the service data to be inserted, and obtain the service data having a neighboring position relationship with the service data to be inserted in the initial data summary;

[0051] The fused data summary generating subunit is further used to determine the sequence number of the to-be-inserted business data in the initial data summary according to the business data having an adjacent position relationship with the to-be-inserted business data and the sequence number of the business data having an adjacent position relationship with the to-be-inserted business data in the initial data summary;

[0052] The above-mentioned fused data summary generating subunit is also used to insert the above-mentioned business data to be inserted and the serial number of the above-mentioned business data to be inserted in the above-mentioned initial data summary into the above-mentioned initial data summary to obtain the fused data summary.

[0053] Among them, it also includes:

[0054] A module for acquiring data to be ranked, used for acquiring data to be ranked;

[0055] The ranking determination module is used to match the target data summary with the data to be ranked, and determine the ranking of the data to be ranked in the original data according to the matching result.

[0056] The ranking determination module includes:

[0057] A first position serial number determining unit, configured to determine the serial number in the target data summary as the target position serial number;

[0058] a ranking determination unit, configured to match the business data in the target data summary with the data to be ranked; if the target data summary contains business data identical to the data to be ranked, then determining the target position number corresponding to the business data identical to the data to be ranked as the ranking of the data to be ranked in the original data;

[0059] The ranking determination unit is further configured to obtain a maximum target position sequence number from the target position sequence numbers in the target data summary if the maximum business data in the target data summary is smaller than the data to be ranked, and determine the maximum target position sequence number as the ranking of the data to be ranked in the original data;

[0060] The ranking determination unit is further configured to obtain a minimum target position sequence number from the target position sequence numbers if the minimum business data in the target data summary is greater than the data to be ranked, and determine the minimum target position sequence number as the ranking of the data to be ranked in the original data;

[0061] The ranking determination unit is also used to construct a ranking linear function based on the maximum business data among the business data that is smaller than the data to be ranked and the minimum business data among the business data that is larger than the data to be ranked if there is business data smaller than the data to be ranked and business data larger than the data to be ranked in the target data summary, and determine the ranking of the data to be ranked in the original data based on the ranking linear function.

[0062] Among them, it also includes:

[0063] A module for obtaining data to be estimated, used for obtaining data to be estimated;

[0064] A target position serial number determination module, used to determine the serial number in the target data summary as the target position serial number;

[0065] An estimated target position sequence number determination module is used to determine the sequence number of the business data corresponding to the data to be estimated in the target data summary according to the maximum target position sequence number among the target position sequence numbers as the estimated target position sequence number;

[0066] The business data determination module is used to match the target data summary with the estimated target position sequence number, and determine the business data corresponding to the data to be estimated in the target data summary according to the matching result. The business data determination module includes:

[0067] A second position serial number determining unit, used to determine the serial number in the target data summary as the target position serial number;

[0068] a business data determining unit, configured to determine the business data corresponding to the target position number identical to the estimated target position number as the business data corresponding to the data to be estimated in the target data summary, if the target position number identical to the estimated target position number exists in the target data summary;

[0069] The above-mentioned business data determination unit is also used to construct a third linear function based on the maximum target position number among the target position numbers smaller than the above-estimated target position number and the minimum target position number among the target position numbers larger than the above-estimated target position number if there is a target position number smaller than the above-estimated target position number in the above-mentioned target data summary, and determine the business data corresponding to the above-mentioned data to be estimated in the above-mentioned target data summary based on the above-mentioned third linear function.

[0070] On one hand, the present application provides a computer device, including: a processor, a memory, and a network interface;

[0071] The above-mentioned processor is connected to the memory and the network interface, wherein the network interface is used to provide data communication function, the above-mentioned memory is used to store computer programs, and the above-mentioned processor is used to call the above-mentioned computer program to execute the method in the above-mentioned aspect in the embodiment of the present application.

[0072] On one hand, the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the method in the above aspect of the embodiment of the present application is executed.

[0073] In the embodiment of the present application, by sampling the original data, the first business data and the second business data can be obtained from the original data, and the first business data and the original position sequence number of the first business data in the original data are determined as the first data summary, and the second business data and the original position sequence number of the second business data in the original data are determined as the second data summary; by obtaining the summary position sequence number of the first business data in the second data summary as the first fusion position sequence number, obtaining the summary position sequence number of the second business data in the first data summary as the second fusion position sequence number, and as the second fusion position sequence number, the first data summary and the second data summary are merged according to the first fusion position sequence number and the second fusion position sequence number to generate a target data summary for data querying the original data; when fusing the two data summaries, the original position sequence number and the summary position sequence number are merged, so that the relative position of the merged business data in the target data summary and its relative position in the original data can be more coincident, and the deviation of the relative position can be reduced, so that the accuracy of the data in the target data summary can be improved, so that when the target data summary is used to query the original data, the error of the query result can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0075] Figure 1 This is a network architecture diagram provided by an embodiment of the present application;

[0076] Figure 2a is a schematic diagram of a scenario for generating a first data summary provided by an embodiment of the present application;

[0077] Figure 2b It is a schematic diagram of a scenario of fusing two data summaries provided in an embodiment of the present application;

[0078] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0079] Figure 4 It is a schematic diagram of a scenario for generating a fusion data summary provided by an embodiment of the present application;

[0080] Figure 5 It is a flowchart of an application target data summary provided by an embodiment of the present application;

[0081] Figure 6 It is a flowchart of an application target data summary provided by an embodiment of the present application;

[0082] Figure 7a It is a schematic diagram of a scenario of an application target data summary provided by an embodiment of the present application;

[0083] Figure 7b It is a schematic diagram of a scenario of an application target data summary provided by an embodiment of the present application;

[0084] Figure 8a and Figure 8b This is an experimental comparison diagram provided by an embodiment of the present application using a normally distributed floating-point number set as test data;

[0085] Figure 8c and Figure 8d This is an experimental comparison chart provided by an embodiment of the present application using online advertising exposure delay data as test data;

[0086] Fig. 9 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0087] Fig.10 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0088] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0089] Figure 1 This is a network architecture diagram provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include a service server 1000 and a user terminal cluster, wherein the user terminal cluster may include multiple user terminals, such as Figure 1 As shown, it may specifically include user terminal 100a, user terminal 100b, user terminal 100c, ..., user terminal 100n.

[0090] like Figure 1As shown, user terminal 100a, user terminal 100b, user terminal 100c, ..., user terminal 100n can respectively establish a network connection with the business server 1000, so that each user terminal can exchange data with the business server 1000 through the network connection, so that the business server 1000 can receive business data from each server.

[0091] like Figure 1 As shown, each user terminal in the user terminal cluster may be integrated with a target application. When the target application is running in each user terminal, it may be respectively connected to the above Figure 1 The target application may include an application having a function of displaying data information such as text, images, audio, and video.

[0092] The embodiments of the present application can be Figure 1 A user terminal is selected from the multiple user terminals shown as the target user terminal, and the target user terminal may include: a smart phone, a tablet computer, a desktop computer, or other smart terminal with a function of displaying and playing data information. Figure 1The user terminal 100a shown is used as the target user terminal. The target user terminal may be integrated with the target application. At this time, the target user terminal may implement data interaction with the business server 1000 through the business data platform corresponding to the target application. Taking the user terminal 100a as an example, when it is desired to obtain a data summary of the original data, the user terminal 100a may send the original data to the business server 1000, wherein each business data in the original data has an original position sequence number. The business server 1000 may determine the screening position sequence number according to the data sampling length, and sample the original data according to the screening position sequence number to obtain the first business data and the second business data. The business server 1000 may obtain the original position sequence number of the first business data in the original data and the original position sequence number of the second business data in the original data. The business server 1000 may determine the first business data and the original position sequence number of the first business data in the original data as the first data summary. The business server 1000 may determine the second business data and the original position sequence number of the second business data in the original data as the second data summary. The business server 1000 may The first business data is compared in size with the second business data in the second data summary, so as to obtain the summary position number of the first business data in the second data summary. The business server 1000 can use the summary position number of the first business data in the second data summary as the first fusion position number. Similarly, the business server 1000 can compare the second business data with the first business data in the first data summary, so as to obtain the summary position number of the second business data in the first data summary. The business server 1000 can use the summary position number of the second business data in the first data summary as the second fusion position number. According to the first fusion position number and the second fusion position number, the business server 1000 can fuse the first data summary with the second data summary, and generate a target data summary after fusion, wherein the target data summary can be used to perform data query on the original data.

[0093] Optionally, it can be understood that after obtaining the original data, the user terminal can generate a target data summary based on the original data. The specific implementation method of the user terminal generating the target data summary based on the original data can be found in the description of the business server generating the target data summary based on the original data, which will not be repeated here.

[0094] It can be understood that the method provided in the embodiment of the present invention can be executed by a computer device, and the computer device includes but is not limited to a terminal or a server.

[0095] For further understanding, please refer to Figure 2a, is a schematic diagram of a scenario for generating a first data summary provided by an embodiment of the present application. Figure 2a As shown, the original data may be composed of multiple groups of original data groups, and the original data group 20 may be a group of business data in the original data. The business server 2000 may sort the original data group 20 in ascending order, so as to obtain the original position sequence number corresponding to each business data in the original data group 20. The business server 2000 may determine the business data and its corresponding original position sequence number as the first data set 201, as shown in FIG. Figure 2a As shown, the first data set 201 may include the business data in the original data set 20 and the original position sequence number corresponding to each business data. The business server 2000 uniformly samples the first data set 201 according to the data sampling length, such as Figure 2a As shown, the business server 2000 can obtain a data sampling length of 8, that is, the business server 2000 needs to extract 8 business data from the business data in the first data set 201. The business server 2000 can obtain the screening position number through the largest original position number in the first data set 201 and the data sampling length, such as Figure 2aAs shown, the business server 2000 obtains the largest original position number 23 in the first data set 201. Then, according to the original position number 23 and the data sampling length 8, the business server 2000 can obtain the screening position number {0, 3.3, 6.6, 9.9, 13.2, 16.5, 19.8, 23.2}. The business server 2000 can obtain at least two difference values ​​by subtracting the original position number in the first data set 201 from the screening position number, and determine the minimum difference absolute value among the difference absolute values. The business server 2000 can obtain the minimum difference absolute value by subtracting the original position number in the first data set 201 from the screening position number. The server 2000 can determine the business data corresponding to the minimum absolute value of the difference as the first business data. Taking the screening position number 3.3 as an example, the business server 2000 subtracts the original position numbers {0, 1, 2, 3, 4, ..., 22, 23} from the screening position number 3.3, and obtains that the difference corresponding to the original position number 0 is -3.3 (then the absolute value of the difference is 3.3), the difference corresponding to the original position number 1 is -2.3 (then the absolute value of the difference is 2.3), and the difference corresponding to the original position number 2 is -1.3 (then the absolute value of the difference is 2.3). The difference corresponding to the original position number 3 is -0.3 (then the absolute value of the difference is 0.3), and the difference corresponding to the original position number 4 is 0.7 (then the absolute value of the difference is 0.7). The difference and the absolute value of the difference corresponding to the original position number 5 to the original position number 23 can be obtained by subtracting the screening position number 3.3 from the original position number. The business server 2000 can determine that the smallest absolute value of the difference is 0.3 from these absolute values ​​of the difference. Then the business server 2000 can select the original position number with the absolute value of the difference of 0.3 as the original position number. Number 3 is determined as the first number to be extracted (that is, the original position number closest to the screening position number 3.3). Similarly, the original position number closest to the screening position number 0 is 0, the original position number closest to the screening position number 6.6 is 7, the original position number closest to the screening position number 9.9 is 10, the original position number closest to the screening position number 13.2 is 13, the original position number closest to the screening position number 16.5 is 17, the original position number closest to the screening position number 19.8 is 20, and the original position number closest to the screening position number 23.2 is 23, then the business server 2000 can determine in the first data set 201 that the business data corresponding to the original location sequence number 0 is 1, the business data corresponding to the original location sequence number 3 is 5, the business data corresponding to the original location sequence number 7 is 10, the business data corresponding to the original location sequence number 10 is 16, the business data corresponding to the original location sequence number 13 is 22, the business data corresponding to the original location sequence number 17 is 32, the business data corresponding to the original location sequence number 20 is 39, and the business data corresponding to the original location sequence number 23 is 83. Then the business server 2000 can determine the business data 1, business data 5, business data 10, business data 16, business data 22, business data 32, business data 39 and business data 83 as the first business data, and the business server 2000 can determine the first business data and the original location sequence number corresponding to the first business data as the first data summary, such as. Figure 2a As shown, the first data summary 200a includes the first business data {1, 5, 10, 16, 22, 32, 39, 83} and the original position sequence numbers {0, 3, 7, 10, 13, 17, 20, 23}.

[0096] For further information, see Figure 2b , is a schematic diagram of a scenario of fusing two data summaries provided in an embodiment of the present application. Figure 2b As shown, the business server 2000 can sort another group of original data in the original data in ascending order, so as to obtain the original position sequence number corresponding to each business data in the original data group, and the business server 2000 can determine these business data and their corresponding original position sequence numbers as the second data set 202. The business server 2000 can use the above Figure 2aThe method of generating the first data summary in the corresponding embodiment generates the second data summary 200b corresponding to the second data set 202, wherein the second data summary 200b includes the second business data {4, 12, 20, 26, 32, 38, 42, 50} and the original position sequence number {0, 4, 8, 12, 16, 20, 24, 28}. The business server 2000 obtains the summary position sequence numbers of the first business data {1, 5, 10, 16, 22, 32, 39, 83} in the second data summary 200b by matching the first business data {1, 5, 10, 16, 22, 32, 39, 83} in the first data summary 200a with the second business data {4, 12, 20, 26, 32, 38, 42, 50} in the second data summary 200b, such as According to the matching of 1 and the second business data {4, 12, 20, 26, 32, 38, 42, 50}, it can be seen that the smallest business data in the second business data {4, 12, 20, 26, 32, 38, 42, 50} is the second business data 4, and the second business data 4 is greater than the first business data 1, then it can be obtained that the matching result is that the first business data 1 is less than any business data in the second business data {4, 12, 20, 26, 32, 38, 42, 50}, then the business server 2000 can use the original position sequence number 0 corresponding to the second business data 4 as the summary position sequence number of the first business data 1 in the second data summary 200b (that is, if the first business data 1 is put into the second data summary 200b, because 1 is less than 4, the first business data 1 should be at the starting position of the second data summary);For example, the first business data 5 is matched with the second business data {4, 12, 20, 26, 32, 38, 42, 50}. It can be seen that there is a second business data 4 smaller than the first business data 5 in the second business data {4, 12, 20, 26, 32, 38, 42, 50}, and there is a second business data 12 larger than the first business data 5. Then the business server 2000 can obtain the original position sequence number corresponding to the second business data 4 as the original position sequence number 0, and the original position sequence number corresponding to the second business data 12 as the original position sequence number 4. The business server 2000 can construct a linear function between <4, 0> and <12, 4> as p=v / 2-2, where p here can refer to the original position sequence number, and v here can refer to the second business data. The business server 2000 substitutes the first business data 5 (i.e., v=5) into the linear function p =v / 2-2, it can be obtained that the summary position number of the first business data 5 in the second data summary 200b is 1. Similarly, the business server 2000 can obtain the summary position numbers corresponding to the first business data 10, the first business data 16, the first business data 22, the first business data 32 and the first business data 39 in the second data summary 200b respectively. For the first business data 83, it can be seen that the first business data 83 is greater than the largest second business data 50 in the second data summary 200b, then the matching result can be obtained that the first business data 83 is greater than any business data in the second business data {4, 12, 20, 26, 32, 38, 42, 50}, then the business server 2000 can use the original position number 28 corresponding to the second business data 50 as the summary position number of the first business data 83 in the second data summary 200b. Similarly, the business server 2000 can obtain the summary position sequence number of the second business data {4, 12, 20, 26, 32, 38, 42, 50} in the first data summary 200a. The business server 2000 can obtain the target position sequence number of the first business data {1, 5, 10, 16, 22, 32, 39, 83} according to the original position sequence number and the summary position sequence number of the first business data {1, 5, 10, 16, 22, 32, 39, 83}, and obtain the target position sequence number of the second business data {4, 12, 20, 26, 32, 38, 42, 50} according to the second business data {4, 12, 20, 26, 32, 38, 42, 50}, the target position number of the second business data {4, 12, 20, 26, 32, 38, 42, 50} is obtained, and the business server 2000 can merge the first data summary 200a with the second data summary 200b to obtain a fused data summary 200c including the first business data {1, 5, 10, 16, 22, 32, 39, 83} and its target position number and the second business data {4, 12, 20, 26, 32, 38, 42, 50} and its target position number, such as; Figure 2bAs shown, the largest target position sequence number in the fused data summary 200c is 52, then the business server 2000 can obtain the target position screening sequence number {0, 5, 17, 23, 28, 34, 45, 52} according to the target position sequence number 52 and the data sampling length 8. According to the target position screening sequence number {0, 5, 17, 23, 28, 34, 45, 52}, the business server 2000 can obtain the target business data {1, 5, 16, 22, 26, 32, 42, 83} in the fused data summary 200c. The business server 2000 can determine the target business data {1, 5, 16, 22, 26, 32, 42, 83} and the target position screening sequence number {0, 5, 17, 23, 28, 34, 45, 52} as the target data summary 200d. Among them, because the data length of the fused data summary 200c is the sum of the lengths of the first data summary 200a and the second data summary 200b, if there is a data summary to be fused, the length of the fused data summary 200c will continue to be fused with the data summary to be fused, and a data summary with a longer length will be generated. The more times the fusion is performed, the longer the summary generated by the fusion will be. The longer the data summary will require a larger storage space. In order to save storage space, the fused data summary 200c can be sampled to generate a target data summary 200d (that is, the fused data summary 200c is compressed) so that the length of the target data summary 200d is consistent with the above data sampling length. It should be noted that the fused data summary 200c can be sampled according to the above data sampling length so that the length of the target data summary 200d is consistent with the above data sampling length, and other data sampling lengths can be selected to sample the fused data summary 200c. In other words, the length of the target data summary 200d can be different from the above data sampling length. This application does not limit the length of the target data summary.

[0097] For further information, see Figure 3 , is a flow chart of a data processing method provided in an embodiment of the present application. Figure 3 As shown, the process of the method may include:

[0098] Step S101: sampling original data to obtain first service data and second service data.

[0099] In the present application, the original data may include at least two groups of original data groups, each of which includes at least two business data. After the original data groups are sorted in a specified order, each business data in the original data group can have an original position sequence number, and the business data and its corresponding original position sequence number can be determined as a data set. Taking the original data group 3A as an example, the original data group 3A is a group of original data groups in the original data, and the original data group 3A includes business data 200, business data 300 and business data 100. The original data group 3A can be shown as the following data group:

[0100] 3A

[0101] 200 300 100

[0102] After the original data group is sorted in ascending order, it can be obtained that the original position sequence number of the business data 100 is 0, the original position sequence number of the business data 200 is 1, and the original position sequence number of the business data 300 is 2. Then, according to the business data 100 and its original position sequence number 0, the business data 200 and its original position sequence number 1, and the business data 300 and its original position sequence number 2, the data set 3B can be obtained. The data set 3B can be shown as the following data set:

[0103] 3B

[0104] 100 200 300 0 1 2

[0105] In the present application, the original data may include a first data set (a group of original data sets sorted in ascending order) and a second data set (another group of original data sets sorted in ascending order), wherein the first data set includes at least two business data and the original position serial number corresponding to each business data, and the second data set includes at least two business data and the original position serial number corresponding to each business data. The first business data may be part of the business data in the first data set, and the second business data may be part of the business data in the second data set. The business server can obtain the first data set and the second data set in the original data, obtain the maximum original position sequence number of the business data in the first data set, and then obtain the data sampling length. According to the maximum original position sequence number in the first data set and the data sampling length, the business server can determine the first position screening sequence number. The business server can subtract the first position screening sequence number from the original position sequence number in the first data set to obtain a first sequence number difference. Among the difference absolute values ​​corresponding to the first sequence number difference, the first minimum difference absolute value is obtained. The business server can determine the original position sequence number corresponding to the first minimum difference absolute value as the first sequence number to be extracted, and the business server can determine the business data corresponding to the first sequence number to be extracted as the first business data. Similarly, the business server can obtain the maximum original position sequence number of the business data in the second data set, and then obtain the data sampling length. Based on the maximum original position sequence number in the second data set and the data sampling length, the business server can determine the second position screening sequence number. The business server can subtract the second position screening sequence number from the original position sequence number in the second data set to obtain a second sequence number difference. Among the difference absolute values ​​corresponding to the second sequence number difference, the second minimum difference absolute value is obtained. The business server can determine the original position sequence number corresponding to the second minimum difference absolute value as the second sequence number to be extracted, and the business server can determine the business data corresponding to the second sequence number to be extracted as the second business data.

[0106] The data sampling length here corresponds to the number of position screening numbers. If the data sampling length is 6, the number of position screening numbers is also 6, that is, 6 business data need to be screened out. The data sampling length can be determined according to the data accuracy. The data accuracy can refer to the degree of approximation between the data summary and the data set. For example, if the data accuracy is 1 / 2000 (i.e. 0.05%), the data sampling length can be 1000 or 2000. If the data accuracy is 1 / 8 (i.e. 12.5), the data sampling length can be 8. The data sampling length here is associated with the data accuracy, but they do not have a one-to-one correspondence. Taking the data sampling length of 2, the first position screening number of {1,3}, and the first data set as the above-mentioned data set 3B as an example, among the original position numbers {0, 1, 2} in the data set 3B, the original position number 1 has the smallest absolute difference with the first position screening number 1. It can be said that the business data 200 corresponding to the original position number 1 is the business data closest to the first position screening number 1, and the original position number 2 has the smallest absolute difference with the first position screening number 3. It can be said that the business data 300 corresponding to the original position number 2 is the business data closest to the first position screening number 3. The business server can determine the business data 200 and the business data 300 as the first business data.

[0107] Step S102, determining the first business data and the original position serial number of the first business data in the original data as the first data summary, and determining the second business data and the original position serial number of the second business data in the original data as the second data summary.

[0108] Specifically, it can be understood that, taking the first business data 200 and 300 as an example, the original position sequence number corresponding to the first business data 200 is 1, and the original position sequence number corresponding to the first business data 300 is 2, then the first data summary can be shown as Summary 3C:

[0109] 3C

[0110] 200 300 1 2

[0111] Step S103, obtaining the summary position number of the first business data in the second data summary as the first fusion position number, and obtaining the summary position number of the second business data in the first data summary as the second fusion position number.

[0112] In the present application, for the summary position number of the first business data in the second data summary, it can be understood that if the first business data is inserted into the second data summary, a position number will be determined in the second data summary according to the size of the first business data, that is, the position of the first business data in the second data summary. For determining the summary position number of the first business data in the second data summary, the business server can first match the first business data with the second data summary. If there is second business data identical to the first business data in the second data summary, the business server can determine the second business data identical to the first business data as the first data to be fused; if the smallest second business data in the second data summary is larger than the first business data, it can be explained that the first business data is smaller than any second business data in the second data summary, and the business server can determine the smallest second business data in the second data summary as the first data to be fused; if the largest business data in the second data summary is smaller than the first business data, it can be explained that the first business data is larger than any second business data in the second data summary, and the business server can determine the second The largest business data in the data summary is determined as the first data to be merged; if there is second business data smaller than the first business data in the second data summary, and there is second business data larger than the first business data, the business server can determine the largest second business data among the second business data smaller than the first business data, and the smallest second business data among the second business data larger than the first business data, as the first data to be merged. For example, the first business data is 3, and the second business data 1, second business data 2, second business data 5, and second business data 6 exist in the second data summary. It can be seen that the second business data 1 and the second business data 2 are smaller than the first business data 3, and the second business data 5 and the second business data 6 are larger than the first business data 3. In this case, the second business data 2 and the second business data 5 can be determined as the first data to be merged.

[0113] Further, the service server may determine the summary position sequence number of the first service data in the second data summary based on the first data to be fused. If the first data to be fused includes one second service data (that is, the first data to be fused is the second service data that is the same as the first service data, or the first data to be fused is the smallest second service data in the second data summary, or the first data to be fused is the largest second service data in the second data summary), the service server may determine the original position sequence number of the first data to be fused in the second data summary as the summary position sequence number of the first service data in the second data summary; if the first data to be fused includes two second service data (that is, the first service data)

[0114] If the first data to be merged is the second service data identical to the first service data, the service server may determine the original position number of the second service data identical to the first service data in the second data summary as the summary position number of the first service data in the second data summary, such as, Figure 2b Taking the first data summary 200a and the second data summary 200b in the corresponding embodiment as an example, after matching the first business data 32 in the first data summary 200a with the second data summary 200b, a matching result can be obtained that the second business data 32 identical to the first business data 32 exists in the second data summary 200b, then the business server can use the original position sequence number 16 corresponding to the second business data 32 as the summary position sequence number of the first business data 32 in the second data summary 200b;

[0115] For example, the first data to be merged is the smallest second business data in the second data summary, then the business server can determine the original position number corresponding to the smallest second business data as the summary position number of the first business data in the second data summary, such as Figure 2b Taking the first data digest 200a and the second data digest 200b in the corresponding embodiment as an example, after matching the first business data 1 in the first data digest 200a with the second data digest 200b, a matching result can be obtained: the first business data 1 is smaller than the smallest second business data 4 in the second data digest 200b, which means that the first business data 1 is smaller than any second business data in the second data digest 200b. Then, the business server can determine the original position number 0 of the second business data 4 as the summary position number of the first business data 1 in the second data digest 200b (that is, if the first business data 1 is inserted into the second data digest 200b, the first business data 1 should be at the first position in the second data digest 200b);

[0116] For example, the first data to be merged is the largest business data in the second data summary, then the business server can determine the original position number corresponding to the largest second business data as the summary position number of the first business data in the second data summary, such as Figure 2b Taking the first data summary 200a and the second data summary 200b in the corresponding embodiment as an example, if the first business data 83 in the first data summary 200a is greater than the largest second business data 50 in the second data summary 200b, it can be said that the first business data 83 is greater than any second business data in the second data summary 200b, and the business server can determine the original position sequence number 28 corresponding to the second business data 50 as the summary position sequence number of the first business data 83 in the second data summary 200b;

[0117] If the first data to be merged includes two adjacent second business data (for example, the first data to be merged is the second business data 2 and the second business data 5 mentioned above), it can be explained that there are second business data smaller than the first business data and second business data larger than the first business data in the second data summary. Then, the business server can construct a linear function based on the maximum second business data smaller than the first business data and the minimum second business data larger than the first business data, and determine the summary position number of the first business data in the second data summary based on the linear function. Figure 2b Taking the first data summary 200a and the second data summary 200b in the corresponding embodiment as an example, the first business data 16 in the first data summary 200a exists, and in the second data summary 200b, there are second business data 4 and second business data 12 which are smaller than the first business data 16, and there are second business data 20, second business data 26, second business data 32, second business data 38, second business data 42 and second business data 50 which are larger than the first business data 16. Among the second business data which are smaller than the first business data 16, the second business data 12 is the largest. In the second business data of the first business data 16, the second business data 20 is the smallest, so the business server can obtain the original position number of the second business data 12 in the second data summary 200b as 4, and the original position number of the second business data 20 in the second data summary 200b as 8. Then according to <12, 4> and <20, 8>, the business server can obtain the linear function between the second business data and its corresponding original position number in the second data summary 200b as p=v / 2-2, where v can represent the second business data and p can represent the original position number. Then the business server can substitute the first business data 16 (i.e., v=16) into the linear function p=v / 2-2, and can obtain the summary position number of the first business data 16 in the second data summary 200b as 6.

[0118] Optionally, it can be understood that if the first data to be fused includes two adjacent second business data, that is, there is a second business data smaller than the first business data and a second business data larger than the first business data in the second data summary, then the business server can obtain the original position serial numbers corresponding to the two adjacent second business data, and use the average of the two original position serial numbers as the summary position serial number of the first business data in the second data summary, such as, with the above Figure 2bTaking the first data summary 200a and the second data summary 200b in the corresponding embodiment as an example, for the first business data 22 in the first data summary 200a, the business server can determine in the second data summary 200b that the second business data 20 is the maximum second business data less than the first business data 22, and the second business data 26 is the minimum second business data greater than the first business data 22, wherein the original position sequence number of the second business data 20 in the second data summary 200b is 8, and the original position sequence number of the second business data 26 in the second data summary 200b is 12, and the average of the original position sequence number 8 and the original position sequence number 12 is 10 ((8+12) / 2=10), then the business server can use 10 as the summary position sequence number of the first business data 22 in the second data summary 200b.

[0119] Optionally, it can be understood that if the first data to be merged includes two adjacent second business data, that is, there is a second business data smaller than the first business data and a second business data larger than the first business data in the second data summary, then the business server can obtain the original position serial numbers corresponding to the two adjacent second business data, and randomly select a value between the two original position serial numbers as the summary position serial number of the first business data in the second data summary, such as, with the above Figure 2b Taking the first data summary 200a and the second data summary 200b in the corresponding embodiment as an example, for the first business data 22 in the first data summary 200a, the business server can determine in the second data summary 200b that the second business data 20 is the maximum second business data less than the first business data 22, and the second business data 26 is the minimum second business data greater than the first business data 22, wherein the original position sequence number of the second business data 20 in the second data summary 200b is 8, and the original position sequence number of the second business data 26 in the second data summary 200b is 12, and the original position sequence number 8 and the original position sequence number 12 include the values ​​9, 10 and 11, then the business server can select 11 as the summary position sequence number of the first business data 22 in the second data summary 200b.

[0120] Similarly, to determine the summary position number of the second business data in the first data summary, the above-mentioned method for determining the summary position number of the first business data in the second data summary can be used, that is, the second business data in the second data summary is matched with the first data summary, and the summary position number of the second business data in the first data summary is determined according to the matching result. For the specific method for determining the summary position number of the second business data in the first data summary, please refer to the above-mentioned description of determining the summary position number of the first business data in the second data summary, which will not be repeated here.

[0121] Step S104: According to the first fusion position serial number and the second fusion position serial number, the first data summary and the second data summary are fused to generate a target data summary for performing a data query on the original data.

[0122] In the present application, the first target position number of the first business data can be obtained according to the original position number of the first business data in the first data summary and the first fused position number, and the second target position number of the second business data can be obtained according to the original position number of the second business data in the second data summary and the second fused position number. The business server can determine the first business data and its corresponding first target position number and the second business data and its corresponding second target position number as the fused data summary. Figure 2bTaking the first data summary 200a and the second data summary 200b in the corresponding embodiment as an example, the original position number of the first business data 1 in the first data summary 200a is 0, and the summary position number in the second data summary 200b (that is, the first fused position number of the first business data 1) is 0. Then, the original position number 0 and the summary position number 0 can be added to obtain the first target position number 0 of the first business data. Among them, the specific method for obtaining the first target position number of the first business data according to the original position sequence number and the first fused position sequence number of the first business data in the first data summary may be: if in the second data summary, there is second business data that is identical to the first business data, that is, the first fused position sequence number is the original position sequence number corresponding to the second business data that is identical to the first business data, then the business server may add the original position sequence number of the first business data to the first fused position sequence number to obtain the first target position sequence number corresponding to the first business data; if the smallest second business data in the second data summary is larger than the first business data, then the business server may add the original position sequence number of the first business data to the first fused position sequence number to obtain the first target position number corresponding to the first business data. The first target position sequence number corresponding to the service data; if the largest second service data in the second data summary is smaller than the first service data, the service server can add the original position sequence number of the first service data to the first fused position sequence number, and perform incremental update on the result of the addition, and determine the result obtained after the incremental update as the first target position sequence number corresponding to the first service data; if there is a second service data smaller than the first service data and a second service data larger than the first service data in the second data summary, the service server can add the original position sequence number of the first service data to the summary position sequence number, and perform incremental update on the result of the addition, and determine the result obtained after the incremental update as the first target position sequence number corresponding to the first service data. Similarly, for the specific implementation method of the service server obtaining the second target position sequence number of the second service data according to the original position sequence number and the second fused position sequence number of the second service data in the second data summary, please refer to the description of the service server obtaining the first target position sequence number of the first service data according to the original position sequence number and the first fused position sequence number of the first service data in the first data summary, which will not be repeated here.

[0123] It is understandable that the above Figure 2bTaking the first data summary 200a and the second data summary 200b in the corresponding embodiment as an example, for the first business data 32 in the second data summary 200b, there is the same first business data 32 as the second business data 32 in the first data summary 200a, then the business server can add the original position sequence number 16 of the second business data 32 and the second fused position sequence number 17 (the summary position sequence number of the second business data in the first data summary) to obtain a result of 33. It should be noted that, because the first target position sequence number of the first business data 32 is also 33 after addition, in order to make the first business data 32 and the second business data 32 in different positions, the first target position sequence number 33 of the first business data 32 can be increased by 1, and the first target position sequence number of the first business data 32 is 34. Among them, in the present application, the first target position sequence number 33 corresponding to the first business data 32 can also remain unchanged, and the second target position sequence number 33 of the second business data 32 can be increased by 1.

[0124] The business server can obtain the above-mentioned data sampling length. According to the fused data summary and the data sampling length, the business server can determine the target position filtering number. The business server can filter out the business data corresponding to the target position filtering number in the fused data summary as the target business data. The business server can determine the target business data and the serial number of the target business data in the fused data summary as the target data summary.

[0125] It is understandable that the above Figure 2b As shown in the target data summary determination process of the corresponding embodiment, the maximum target position sequence number in the fused data summary 200c is 52, and the data sampling length is 8. The business server can determine the target position screening sequence number as {0, 7.4, 14.9, 22.3, 29.7, 31.5, 44.6, 52} through the maximum target position sequence number 52 and the data sampling length 8. The business server can determine in the fused data summary that the target position sequence numbers closest to the target position screening sequence numbers {0, 7.4, 14.9, 22.3, 29.7, 31.5, 44.6, 52} are {0, 5, 17, 23, 28, 34, 45, 52}, the business server can determine in the fused data summary 200c that the target business data corresponding to the target location numbers {0, 5, 17, 23, 28, 34, 45, 52} are {1, 5, 16, 22, 26, 32, 42, 83}, then the business server can determine the target business data {1, 5, 16, 22, 26, 32, 42, 83} and the target location numbers {0, 5, 17, 23, 28, 34, 45, 52} corresponding to the target business data {1, 5, 16, 22, 26, 32, 42, 83} as the target data summary 200d.

[0126] Optionally, when determining the fused data summary, the business server may first determine the first business data and its corresponding first target position sequence number and the second business data and its corresponding second target position sequence number as the initial data summary, then obtain the business data to be inserted, obtain the business data having an adjacent position relationship with the business data to be inserted in the initial data summary, and according to the business data having an adjacent position relationship with the business data to be inserted and the sequence number of the business data having an adjacent position relationship with the business data to be inserted in the initial data summary, the business server may determine the sequence number of the business data to be inserted in the initial data summary, and the business server may insert the business data to be inserted and the sequence number of the business data to be inserted in the initial data summary into the initial data summary to obtain the fused data summary. The business data to be inserted here is the data that the user cares about but does not exist in the original data.

[0127] It should be noted that the fused data summary here includes the business data to be inserted. If the target data summary obtained after data sampling does not include the business data to be inserted, it is necessary to insert the business data to be inserted into the target data summary again so that the target data summary can include the business data to be inserted. The specific implementation method of inserting the business data to be inserted into the target data summary here can refer to the description of inserting the business data to be inserted into the initial data summary to generate the fused data summary, which will not be repeated here.

[0128] It can be understood that the business data and the corresponding position numbers included in the initial data summary are {<4, 0>, <6, 6>, <10, 12>}, the business data to be inserted are 5 and 12, and in the initial data summary, the business data that have an adjacent position relationship with the business data 5 to be inserted are business data 4 and business data 6, then the business server can construct a linear function of <4, 0>, <6, 6> as p=3v-12, where v can represent the business data and p can represent the position number, then the business server can substitute the business data 5 to be inserted (i.e., v=5) into the linear function p=3v-12, and it can be obtained that the business data 5 to be inserted in the initial data summary has a linear relationship with the business data 5 to be inserted. The position number in the initial data summary is 3, then the business data can insert <5, 3> into the initial data summary; in the initial data summary, the business data that has an adjacent position relationship with the business data 12 to be inserted is 10, then the business server can add 1 to the position number corresponding to the business data 10, and it can be obtained that the position number of the business data 12 in the initial data summary is 13, then the business server can insert <12, 13> into the initial data summary. In summary, after inserting the business data to be inserted into the initial data summary, the obtained fused data summary is {<4, 0>, <5, 3>, <6, 6>, <10, 12><12, 13>}.

[0129] In the embodiment of the present application, by sampling the original data, the first business data and the second business data can be obtained from the original data, and the first business data and the original position sequence number of the first business data in the original data are determined as the first data summary, and the second business data and the original position sequence number of the second business data in the original data are determined as the second data summary; by obtaining the summary position sequence number of the first business data in the second data summary as the first fusion position sequence number, obtaining the summary position sequence number of the second business data in the first data summary as the second fusion position sequence number, and as the second fusion position sequence number, the first data summary and the second data summary are merged according to the first fusion position sequence number and the second fusion position sequence number to generate a target data summary for data querying the original data; when fusing the two data summaries, the original position sequence number and the summary position sequence number are merged, so that the relative position of the merged business data in the target data summary and its relative position in the original data can be more coincident, and the deviation of the relative position can be reduced, so that the accuracy of the data in the target data summary can be improved, so that when the target data summary is used to query the original data, the error of the query result can be reduced.

[0130] See also Figure 4 , is a schematic diagram of a scenario for generating a fusion data summary provided by an embodiment of the present application. Figure 4 As shown above Figure 2b In the corresponding embodiment, the first data summary 200a and the second data summary are merged to obtain the data summary 200c as an example. Here, the data summary 200c can be used as the initial data summary. If the data that user B (who can be a product planner, marketing staff, etc.) is more concerned about is the business data 15, it can be seen that the business data 15 is not included in the original data, so it will not be included in the initial data summary 200c. In order to make the query results of subsequent data queries more accurate, the business server can match the business data 15 with the business data in the initial data summary 200c after obtaining the business data 15, such as Figure 4 As shown, the business data 15 should be located between the business data 12 and the business data 16. The business server can construct a linear function between the business data 12 and its corresponding target position number 13 (i.e. <12, 13>) and the business data 16 and its corresponding target position number 17 (i.e. <16, 17>) as p=v+1, wherein p can represent the target position number, and v can represent the business data. Substituting v=15 into the linear function p=v+1, it can be obtained that the position number of the business data 15 in the initial data summary 200c is 16. The business server can insert the business data 15 and its corresponding position number 16 into the initial data summary 200c to obtain a data summary 200m. The business server can use the data summary 200m as a fused data summary, and then generate a final target data summary by sampling the fused data summary 200m. If the target data digest generated here is {<1, 0>, <5, 5>, <12, 13>, <20, 21>, <32, 34>, <42, 45>, <83, 52>}, it can be seen that the target data digest {<1, 0>, <5, 5>, <12, 13>, <20, 21>, <32, 34>, <42, 45>, <83, 52>} does not contain the business data 15 to be inserted. The business server inserts the business data 15 to be inserted into the target data digest and obtains the final target data digest of {<1, 0>, <5, 5>, <12, 13>, <15, 16>, <20, 21>, <32, 34>, <42, 45>, <83, 52>}.

[0131] See also Figure 5 , is a schematic diagram of a process of applying a target data summary provided by an embodiment of the present application. As shown in the figure, the process may include:

[0132] Step S201, obtaining data to be ranked.

[0133] Step S202: Match the target data summary with the data to be ranked, and determine the ranking of the data to be ranked in the original data according to the matching result.

[0134] In the present application, the business server may determine the sequence number (including the first target position sequence number and the second target position sequence number) in the target data summary as the target position sequence number, and the business server may match the business data in the target data summary with the data to be ranked. If the target data summary contains the same business data as the data to be ranked, the business server may determine the target position sequence number corresponding to the business data that is the same as the data to be ranked as the ranking of the data to be ranked in the original data; if the largest business data in the target data summary is smaller than the data to be ranked, the business server may obtain the maximum target position sequence number from the target position sequence number in the target data summary, and match the maximum target position sequence number with the target position sequence number. The target position sequence number is determined as the ranking of the data to be ranked in the original data; if the smallest business data in the target data summary is larger than the data to be ranked, the smallest target position sequence number is obtained in the target position sequence number, and the business server can determine the smallest target position sequence number as the ranking of the data to be ranked in the original data; if there is business data smaller than the data to be ranked and there is business data larger than the data to be ranked in the target data summary, a linear function is constructed based on the largest business data among the business data smaller than the data to be ranked and the smallest business data among the business data larger than the data to be ranked, and the ranking of the data to be ranked in the original data is determined based on the linear function.

[0135] Among them, optionally, when there is business data smaller than the data to be ranked and there is business data larger than the data to be ranked in the target data summary, the business server can obtain the target position sequence number corresponding to the maximum business data in the business data smaller than the data to be ranked, and obtain the target position sequence number corresponding to the minimum business data in the business data larger than the data to be ranked. The business server can randomly select a value between the two target position sequence numbers as the ranking of the data to be ranked in the original data.

[0136] It can be understood that the target data summary is {<1.50, 0>, <1.60, 8>, <1.80, 12>, <1.85, 14> <1.90, 23>}, where the business data in the target data summary is height data. If the data to be ranked is 1.70, that is, if you want to know the ranking of height 170 in the original data, then the business server can compare the business data {1.50, 1.60, 1.80, 1.85, 1.90} in the target data summary with the data to be ranked. According to the matching, it can be seen that the business data 1.60 in the business data {1.50, 1.60, 1.80, 1.85, 1.90} is the largest business data among the business data less than 1.70, and 1.80 is the smallest business data among the business data greater than 1.70. Then the business server can construct a linear function between <1.60, 8> and <1.80, 12> as 20v-24=p, where v can represent the business data in the target data summary, and p can represent the target position sequence number. Then the business server substitutes 1.70 (i.e. v=1.70) into the linear function 20v-24=p, and it can be obtained that the target position sequence number corresponding to 1.70 is 10. Then the business server can use 10 as the ranking of 1.70 in the original data corresponding to the target data summary.

[0137] See also Figure 6 , is a flow chart of an application target data summary provided by an embodiment of the present application. Figure 6 As shown, the process may include:

[0138] Step S301, obtaining data to be estimated;

[0139] In the present application, the data to be estimated here can be a numerical presentation form such as percentage, fraction, decimal, etc., or it can be a data type that can be compared in size but the difference cannot be calculated (such as a string). It can be understood that when the original data is a data type that cannot calculate the difference but can be compared in size (such as character A, character E, etc.), the data to be estimated here can be a data type corresponding to the original data.

[0140] Step S302, determining the serial number in the target data summary as the target position serial number;

[0141] In the present application, the target position serial number here may include the above-mentioned first target position serial number and the second target position serial number.

[0142] Step S303, determining the sequence number of the to-be-estimated data in the target data summary according to the maximum target position sequence number among the target position sequence numbers as the estimated target position sequence number.

[0143] In the present application, the business server can determine the specific position of the data to be estimated in the original data corresponding to the target data summary based on the maximum target position sequence number in the above target position sequence number (the maximum target position sequence number here can represent the total number of original data) and the data to be estimated, and the sequence number of the data to be estimated in the target data summary can be determined based on the specific position. For example, taking the data to be estimated as a percentage as an example, the target data summary is {<1.50, 0>, <155, 5>, <1.60, 8>, <1.66, 10>, <1.70, 11>, <1.80, 12>, <1.85, 14> <1.90, 23>}, and the business data in the target data summary can be height data. It can be obtained that the maximum target position number is 23. If the data to be estimated is a percentage of 75%, the business server can multiply the maximum target position number 23 by the percentage data 75%, and the multiplied result is 13.8, that is, in the target data summary {<1.50, 0>, <155, 5>, <1.60, 8>, <1.66, 10>, <1.70, 11>, <1.80, 12>, <1.85, 14> <1.90, 23>} In the corresponding original data, the data at 75% should be at the position with serial number 13.8. The business server can use 13.8 as the serial number of the business data corresponding to 75% of the data to be estimated in the target data summary {<1.50, 0>, <155, 5>, <1.60, 8>, <1.66, 10>, <1.70, 11>, <1.80, 12>, <1.85, 14><1.90, 23>}, and use the serial number as the estimated target position serial number.

[0144] Step S304, matching the target data summary with the estimated target position sequence number, and determining the business data corresponding to the data to be estimated in the target data summary according to the matching result.

[0145] In the present application, the business server can determine the serial number in the target data summary as the target position serial number (including the first target position serial number and the second target position serial number), and the business server can match the target position serial number in the target data summary with the estimated target position serial number of the above-mentioned data to be estimated. If there is a target position serial number that is the same as the above-mentioned estimated target position serial number in the target data summary, then the business data corresponding to the target position serial number that is the same as the estimated target position serial number is determined as the business data corresponding to the data to be estimated in the target data summary; if there is a target position serial number that is less than the estimated target position serial number in the target data summary, and there is a target position serial number that is greater than the estimated target position serial number, then a linear function is constructed based on the maximum target position serial number among the target position serial numbers that are less than the estimated target position serial number, and the minimum target position serial number among the target position serial numbers that are greater than the estimated target position serial number, and the business data corresponding to the data to be estimated in the target data summary is determined based on the linear function. The business server can determine the size of the business data in the target data summary based on the estimated data and the corresponding business data in the target data summary. For example, the business data in the target data summary is an ordered set sorted from small to large, the data to be estimated is 60%, and the business data corresponding to the data to be estimated in the target data summary is 80. Then the business server can determine that in the original data corresponding to the target data summary, 60% of the business data is less than 80, and 40% of the business data is greater than 80.

[0146] It can be understood that the target data summary is the target data summary {<1.50, 0>, <1.55, 5>, <1.60, 8>, <1.66, 10>, <1.70, 11>, <1.80, 12>, <1.85, 14> <1.90, 23>} in the above step S205, the percentage of the estimated data is 75%, and the estimated target position sequence number is 13.8. Then, the business server can match the target position sequence number {0, 5, 8, 10, 11, 12, 14, 23} in the target data summary with the estimated target position sequence number 13.8, and the matching result can be obtained that the estimated target position sequence number should be between sequence number 12 and sequence number 14, the business server can construct a linear function between <1.80, 12> and <1.85, 14> as p=40v-60, wherein p can represent the target position number and v can represent the business data. The business server substitutes 13.8 (i.e., p=13.8) into the linear function p=40v-60, and it can be obtained that the business data corresponding to the estimated target position number is 1.845. Because the target data summary is an ordered set (sorted from small to large), the business server can determine that in the original data corresponding to the target data summary, 75% of the people are below the height of 1.845, and 25% of the people are above the height of 1.845.

[0147] For further understanding, please refer to Figure 7a , is a scenario diagram of an application target data summary provided in an embodiment of the present application. Figure 7a The target data summary 200d in the above Figure 2b In the corresponding embodiment, the target data summary 200d, the target business data in the target data summary 200d may be the partial exposure delay data corresponding to the advertiser id 5000, that is, the original data corresponding to the target data summary is the exposure delay data corresponding to the advertiser id 5000, such as Figure 7a As shown, user A can send the data to be ranked 25 to the business server through user terminal A, that is, user A hopes to obtain the ranking of exposure delay 25 in the data of advertiser id 5000. After the business server obtains the data to be ranked 25, it can obtain the target business data {1, 5, 16, 22, 26, 32, 42, 83} in the target data summary 200d. By matching the target business data {1, 5, 16, 22, 26, 32, 42, 83} with the data to be ranked, it can be obtained that the matching result 22 is the maximum business data among the business data less than 25, and 26 is the minimum business data among the business data greater than 25. Then the business server can construct a matching result of <22, 26. The linear function between 3> and <26, 28> is p=1.25v-4.5. Substituting the data to be ranked 25 (i.e., v=25) into the linear function p=1.25v-4.5, we can get the result 26.75. By rounding the result 26.75, we can get that the ranking of the data to be ranked 25 in the target data summary 200d is 27. This means that the exposure delay of 25 ranks 27 in the data with advertiser id 5000. The business server can return the ranking 27 to user terminal A.

[0148] See also Figure 7b , is a scenario diagram of an application target data summary provided in an embodiment of the present application. Figure 7b The target data summary 200d in the above Figure 2b In the corresponding embodiment, the target data summary 200d, the target business data in the target data summary 200d may be the partial exposure delay data corresponding to the advertiser id 5000, that is, the original data corresponding to the target data summary is the exposure delay data corresponding to the advertiser id 5000, such as Figure 7bAs shown, user A can send 60% of the data to be estimated to the business server through user terminal A. After the business server obtains 60% of the data to be estimated, it can obtain the target position sequence number {0, 5, 17, 23, 28, 34, 45, 52} in the target data summary 200d. Among the target position sequence numbers {0, 5, 17, 23, 28, 34, 45, 52}, the maximum target position sequence number is 52. The business server can multiply the maximum target position sequence number 52 by 60% of the data to be estimated. The result of the multiplication is 31.2. The business server can use the result 31.2 as the estimated position sequence number. In the original data corresponding to the target data summary 200d, the business server at 60% of the original data The serial number corresponding to the data is 31.2. By matching the estimated target position serial number 31.2 with the above target position serial numbers {0, 5, 17, 23, 28, 34, 45, 52}, it can be obtained that 31.2 should be between 28 and 34. The business server can then construct a linear function between <26, 28> and <32, 34> as p=v+2. The business server substitutes p=31.2 into the linear function p=v+2, and it can be obtained that the business data corresponding to the estimated position serial number 31.2 should be 29.2. This shows that in the exposure delay data with an advertiser id of 5000, the exposure delay at 60% is 29.2, then 60% of the exposure delays are lower than 29.2, and 40% of the exposure delays are higher than 29.2.

[0149] For ease of understanding, the following four experimental comparison charts are used to illustrate the beneficial effects of this data processing method. Figure 8a and Figure 8b , is an experimental comparison chart using a normally distributed floating point number set as test data provided by the embodiment of the present application. Figure 8aAs shown, the experimental group is the average error data obtained using the data processing method of the present application, and the control group is the average error data obtained using the prior art method. The test experiment here can start with a test sample size of 2, and double each time until the total number of original data reaches 4x1024x1024 (i.e., 4M). Each test sample size is tested 100 times, and the average error of the 100 test results is used to draw a graph. The error calculation method for each test sample size can be to take 100 original data in the source data in turn as the data to be ranked, and pass the data to be ranked through the method of the experimental group or the control group to obtain a ranking. According to the ranking obtained by the experimental group or the control group and the true ranking of the original data, an error can be obtained. That is to say, for each test sample size, 100 original data (i.e., 100 tests) are taken in turn as the data to be ranked, and passed through the experimental group or the control group, and the errors of these 100 original data are added and averaged to obtain the average error corresponding to the test sample size. The error calculation method for each original data can be as shown in formula (1):

[0150] E=(R a -R r ) / N (1)

[0151] Among them, E can represent the error of the original data, R a It can represent the ranking of the original data obtained by the experimental group, R r It can represent the true ranking of the original data, and N can represent the total amount of data contained in the test sample size.

[0152] like Figure 8b As shown, the experimental group is the maximum error data obtained by using the data processing method of the present application, and the control group is the maximum error data obtained by using the prior art method. The test experiment here can start with a test sample size of 2, and double it each time until the total number of original data reaches 4x1024x1024 (i.e., 4M). Each test sample size is tested 100 times, and the maximum error of the 100 test results is used to draw a graph. The error calculation method for each test sample size can be, for each test sample size, 100 original data are taken from the source data in turn as the data to be ranked, and the maximum error among the errors of these 100 original data is used as the error data corresponding to the test sample size through the experimental group or the control group. The error calculation method for each original data can be as shown in the above formula (1).

[0153] like Figure 8a and Figure 8b As shown, in the data volume 10 2At the beginning, the average error of the control group is much higher than the average error of the experimental group, and the maximum error of the control group is much higher than the maximum error of the experimental group. This shows that using the experimental group, that is, the data processing method of the present application, can reduce the error of the estimated data results.

[0154] See also Figure 8c and Figure 8d , is an experimental comparison chart provided by an embodiment of the present application using online advertising exposure delay data as test data. Figure 8c As shown, the experimental group is the average error data obtained by using the data processing method of the present application, and the control group is the average error data obtained by using the prior art method. The test experimental method here can refer to the above Figure 8a The description of the test method in the corresponding embodiment will not be repeated here. Figure 8d As shown, the experimental group is the maximum error data obtained by using the data processing method of the present application, and the control group is the maximum error data obtained by using the prior art method. The test experimental method here can refer to the above Figure 8a The description of the test method in the corresponding embodiment will not be repeated here. Figure 8a and Figure 8b As shown, the average error of the control group is much higher than the average error of the experimental group, and the maximum error of the control group is much higher than the maximum error of the experimental group. This shows that in a specific application scenario, using the experimental group, that is, the data processing method of the present application, can reduce the error of the estimated results of the data.

[0155] See also Fig. 9 , is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The above-mentioned data processing device may be a computer program (including program code) running in a computer device, for example, the data processing device is an application software; the device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. Fig. 9 As shown, the data processing device 1 may include: a data sampling module 11 , a summary determination module 12 , a sequence number acquisition module 13 and a summary generation module 14 .

[0156] The data sampling module 11 is used to perform data sampling on the original data to obtain the first service data and the second service data;

[0157] A summary determination module 12 is used to determine the first business data and the original position serial number of the first business data in the original data as a first data summary, and determine the second business data and the original position serial number of the second business data in the original data as a second data summary;

[0158] A sequence number acquisition module 13 is used to acquire a summary position sequence number of the first business data in the second data summary as a first fusion position sequence number;

[0159] The serial number acquisition module 13 is further used to acquire the summary position serial number of the second business data in the first data summary as the second fusion position serial number;

[0160] The summary generation module 14 is used to fuse the first data summary and the second data summary according to the first fusion position serial number and the second fusion position serial number to generate a target data summary for data query on the original data.

[0161] The specific implementation of the data sampling module 11, the summary determination module 12, the sequence number acquisition module 13 and the summary generation module 14 can be found in the above Figure 3 Steps S101 to S104 in the corresponding embodiment will not be described in detail here.

[0162] See also Fig. 9 The data sampling module 11 may include: a data set acquiring unit 111, a sampling length acquiring unit 112, a screening sequence number determining unit 113 and a business data screening unit 114.

[0163] The data set acquisition unit 111 is used to acquire the first data set and the second data set from the above original data; each business data in the above original data has an original position serial number;

[0164] The sampling length obtaining unit 112 is used to obtain the data sampling length;

[0165] The screening number determining unit 113 is used to obtain the maximum original position number of the business data in the first data set, and determine the first position screening number according to the maximum original position number in the first data set and the data sampling length;

[0166] A business data screening unit 114, configured to screen the business data corresponding to the first position screening sequence number in the first data set as the first business data;

[0167] The screening number determination unit 113 is further configured to obtain the maximum original position number of the service data in the second data set, and determine the second position screening number according to the maximum original position number in the second data set and the data sampling length;

[0168] The business data screening unit 114 is further configured to screen the business data corresponding to the second position screening sequence number in the second data set as the second business data.

[0169] The specific implementation of the data set acquisition unit 111, the sampling length acquisition unit 112, the screening sequence number determination unit 113 and the business data screening unit 114 can be found in the above Figure 3 The description of step S101 in the corresponding embodiment will not be repeated here.

[0170] See also Fig. 9 The business data screening unit 114 may include: a position number obtaining subunit 1141, an operation processing subunit 1142 and an absolute value obtaining subunit 1143.

[0171] The location number obtaining subunit 1141 is used to obtain the original location numbers corresponding to the business data in the first data set;

[0172] The operation processing subunit 1142 is used to perform a subtraction operation on the first position screening sequence number and the original position sequence number in the first data set to obtain a first sequence number difference;

[0173] The absolute value acquisition subunit 1143 is used to obtain the first minimum difference absolute value among the difference absolute values ​​corresponding to the above-mentioned first sequence number difference, determine the original position sequence number corresponding to the above-mentioned first minimum difference absolute value as the first sequence number to be extracted, and determine the business data corresponding to the above-mentioned first sequence number to be extracted as the above-mentioned first business data.

[0174] The position number obtaining subunit 1141 is further used to obtain the original position numbers corresponding to the business data in the second data set;

[0175] The arithmetic processing subunit 1142 is further used to perform a subtraction operation on the second position screening sequence number and the original position sequence number in the second data set to obtain a second sequence number difference;

[0176] Among them, the above-mentioned absolute value acquisition subunit 1143 is also used to obtain the second minimum difference absolute value among the difference absolute values ​​corresponding to the above-mentioned second sequence number difference, determine the original position sequence number corresponding to the above-mentioned second minimum difference absolute value as the second sequence number to be extracted, and determine the business data corresponding to the above-mentioned second sequence number to be extracted as the above-mentioned second business data.

[0177] The specific implementation of the position number acquisition subunit 1141, the calculation processing subunit 1142 and the absolute value acquisition subunit 1143 can be found in the above Figure 3 The description of step S101 in the corresponding embodiment will not be repeated here.

[0178] See also Fig. 9The sequence number acquisition module 13 may include: a summary matching unit 131 , a summary position sequence number determination unit 132 , and a fusion position sequence number determination unit 133 .

[0179] The summary matching unit 131 is used to match the first business data with the second data summary, and determine the first data to be merged according to the matching result; the first data to be merged refers to the business data in the second data summary that has an adjacent position relationship with the first business data;

[0180] A summary position number determining unit 132, configured to determine a summary position number of the first service data in the second data summary according to an original position number of the first data to be fused in the second data summary;

[0181] The fusion position number determining unit 133 is used to determine the summary position number of the first business data in the second data summary as the first fusion position number.

[0182] The summary matching unit 131 is further configured to match the first business data with the second data summary, and if the second business data that is identical to the first business data exists in the second data summary, the second business data that is identical to the first business data is determined as the first data to be merged;

[0183] The summary matching unit 131 is further configured to determine the smallest second business data in the second data summary as the first data to be merged if the smallest second business data in the second data summary is larger than the first business data;

[0184] The summary matching unit 131 is further configured to determine the largest second business data in the second data summary as the first data to be merged if the largest second business data in the second data summary is smaller than the first business data;

[0185] The summary matching unit 131 is also used to determine the maximum second business data among the second business data that is smaller than the first business data and the minimum second business data among the second business data that is larger than the first business data as the first data to be merged if there is second business data smaller than the first business data and there is second business data larger than the first business data in the second data summary.

[0186] The summary position number determining unit 132 is further configured to determine the original position number of the first data to be fused in the second data summary as the summary position number of the first business data in the second data summary if the first data to be fused includes a second business data;

[0187] The summary position serial number determination unit 132 is also used to construct a serial number linear function based on the maximum second business data among the second business data that is smaller than the first business data and the minimum second business data among the second business data that is larger than the first business data if the first data to be merged includes two adjacent second business data, and determine the summary position serial number of the first business data in the summary of the second data according to the serial number linear function.

[0188] The specific implementation of the summary matching unit 131, the summary position number determining unit 132 and the fusion position number determining unit 133 can be found in the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.

[0189] See also Fig. 9 The summary generation module 14 may include: a target position sequence number determination unit 141 and a summary generation unit 142 .

[0190] The target position number determining unit 141 is used to obtain the original position number of the first service data in the first data summary, and obtain the first target position number of the first service data according to the first fused position number and the original position number of the first service data in the first data summary;

[0191] The target position number determining unit 141 is further configured to obtain an original position number of the second service data in the second data summary, and obtain a second target position number of the second service data according to the second fused position number and the original position number of the second service data in the second data summary;

[0192] The summary generating unit 142 is used to generate the target data summary according to the first business data, the first target location serial number, the second business data and the second target location serial number.

[0193] The specific implementation of the target position sequence number determination unit 141 and the summary generation unit 142 can be found in the above Figure 3 The description of step S104 in the corresponding embodiment will not be repeated here.

[0194] See also Fig. 9 The summary generation unit 142 may include: a fusion data summary generation subunit 1421, a target location screening sequence number determination subunit 1422, a business data screening subunit 1423 and a target data summary determination subunit 1424.

[0195] The fused data summary generating subunit 1421 is used to generate a fused data summary according to the first service data, the first target location sequence number, the second service data and the second target location sequence number;

[0196] The target position screening number determining subunit 1422 is used to obtain the maximum target position number from the first target position number and the second target position number, and determine the target position screening number according to the maximum target position number and the data sampling length;

[0197] The business data screening subunit 1423 is used to screen the business data corresponding to the target location screening number in the fused data summary as the target business data;

[0198] The target data summary determination subunit 1424 is used to determine the target business data and the sequence number of the target business data in the fused data summary as the target data summary.

[0199] The fused data summary generating subunit 1421 is further used to determine the first business data and the first target position sequence number corresponding to the first business data, and the second business data and the second target position sequence number corresponding to the second business data as the initial data summary;

[0200] The fused data summary generating subunit 1421 is further used to obtain the service data to be inserted, and obtain the service data having a neighboring position relationship with the service data to be inserted in the initial data summary;

[0201] The fused data summary generating subunit 1421 is further used to determine the sequence number of the to-be-inserted business data in the initial data summary according to the business data having an adjacent position relationship with the to-be-inserted business data and the sequence number of the business data having an adjacent position relationship with the to-be-inserted business data in the initial data summary;

[0202] The fused data summary generating subunit 1421 is further used to insert the to-be-inserted business data and the sequence number of the to-be-inserted business data in the initial data summary into the initial data summary to obtain the fused data summary.

[0203] The specific implementation of the fusion data summary generation subunit 1421, the target location screening sequence number determination subunit 1422, the business data screening subunit 1423 and the target data summary determination subunit 1424 can be referred to above. Figure 3 The description of step S104 in the corresponding embodiment will not be repeated here.

[0204] See also Fig. 9The data processing device 1 may include a data sampling module 11, a summary determination module 12, a sequence number acquisition module 13 and a summary generation module 14, and may also include: a to-be-ranked data acquisition module 15 and a ranking determination module 16.

[0205] The to-be-ranked data acquisition module 15 is used to acquire the to-be-ranked data;

[0206] The ranking determination module 16 is used to match the target data summary with the data to be ranked, and determine the ranking of the data to be ranked in the original data according to the matching result.

[0207] The specific implementation of the ranking data acquisition module 15 and the ranking determination module 16 can be found in the above Figure 4 The description of step S201 to step S202 in the corresponding embodiment will not be repeated here.

[0208] See also Fig. 9 The ranking determination module 16 may include: a first position sequence number determination unit 161 and a ranking determination unit 162 .

[0209] A first position serial number determining unit 161, configured to determine the serial number in the target data summary as the target position serial number;

[0210] A ranking determination unit 162 is used to match the business data in the target data summary with the data to be ranked. If the target data summary contains business data identical to the data to be ranked, the target position number corresponding to the business data identical to the data to be ranked is determined as the ranking of the data to be ranked in the original data.

[0211] The ranking determination unit 162 is further configured to obtain a maximum target position sequence number from the target position sequence numbers in the target data summary if the maximum business data in the target data summary is smaller than the data to be ranked, and determine the maximum target position sequence number as the ranking of the data to be ranked in the original data;

[0212] The ranking determination unit 162 is further configured to obtain a minimum target position sequence number from the target position sequence numbers if the minimum business data in the target data summary is greater than the data to be ranked, and determine the minimum target position sequence number as the ranking of the data to be ranked in the original data;

[0213] The ranking determination unit 162 is also used to construct a ranking linear function based on the maximum business data among the business data that is smaller than the data to be ranked and the minimum business data among the business data that is larger than the data to be ranked, if there is business data smaller than the data to be ranked and there is business data larger than the data to be ranked in the target data summary, and determine the ranking of the data to be ranked in the original data based on the ranking linear function.

[0214] The specific implementation of the first position number determination unit 162 and the ranking determination unit 162 can be referred to in the above Figure 4 The description of step S202 in the corresponding embodiment will not be repeated here. Fig. 9 The data processing device 1 may include a data sampling module 11, a summary determination module 12, a sequence number acquisition module 13, a summary generation module 14, a to-be-ranked data acquisition module 15 and a ranking determination module 16, and may also include: a to-be-estimated data acquisition module 17, a target position sequence number determination module 18, an estimated target position sequence number determination module 19 and a business data determination module 20.

[0215] The module 17 for obtaining the data to be estimated is used to obtain the data to be estimated;

[0216] A target position serial number determination module 18, used to determine the serial number in the target data summary as the target position serial number;

[0217] An estimated target position sequence number determination module 19 is used to determine the sequence number of the business data corresponding to the data to be estimated in the target data summary according to the maximum target position sequence number among the target position sequence numbers as the estimated target position sequence number;

[0218] The business data determination module 20 is used to match the target data summary with the estimated target position sequence number, and determine the business data corresponding to the data to be estimated in the target data summary according to the matching result.

[0219] The specific implementation of the estimated data acquisition module 17, the target position number determination module 18, the estimated target position number determination module 19 and the business data determination module 20 can be referred to in the above Figure 4 The description of steps S203 to S206 in the corresponding embodiment will not be repeated here.

[0220] See also Fig. 9 The business data determination module 20 may include: a second position sequence number determination unit 201 and a business data determination unit 202.

[0221] A second position serial number determining unit 201, configured to determine the serial number in the target data summary as the target position serial number;

[0222] The business data determining unit 202 is configured to determine the business data corresponding to the target position number that is the same as the estimated target position number as the business data corresponding to the data to be estimated in the target data summary if there is a target position number that is the same as the estimated target position number in the target data summary;

[0223] The business data determination unit 202 is also used to construct a third linear function based on the maximum target position number among the target position numbers smaller than the estimated target position number and the minimum target position number among the target position numbers larger than the estimated target position number if there is a target position number smaller than the estimated target position number and there is a target position number larger than the estimated target position number in the target data summary, and determine the business data corresponding to the data to be estimated in the target data summary based on the third linear function.

[0224] In the embodiment of the present application, by sampling the original data, the first business data and the second business data can be obtained from the original data, and the first business data and the original position sequence number of the first business data in the original data are determined as the first data summary, and the second business data and the original position sequence number of the second business data in the original data are determined as the second data summary; by obtaining the summary position sequence number of the first business data in the second data summary as the first fusion position sequence number, obtaining the summary position sequence number of the second business data in the first data summary as the second fusion position sequence number, and as the second fusion position sequence number, the first data summary and the second data summary are merged according to the first fusion position sequence number and the second fusion position sequence number to generate a target data summary for data querying the original data; when fusing the two data summaries, the original position sequence number and the summary position sequence number are merged, so that the relative position of the merged business data in the target data summary and its relative position in the original data can be more coincident, and the deviation of the relative position can be reduced, so that the accuracy of the data in the target data summary can be improved, so that when the target data summary is used to query the original data, the error of the query result can be reduced.

[0225] For further information, see Fig.10 , is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.10 As shown above Fig. 9The device 1 in the corresponding embodiment can be applied to the above-mentioned computer device 1000, and the above-mentioned computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 also includes: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. Fig.10 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0226] exist Fig.10 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0227] Performing data sampling on the original data to obtain first business data and second business data;

[0228] Determine the first business data and the original position serial number of the first business data in the original data as a first data summary, and determine the second business data and the original position serial number of the second business data in the original data as a second data summary;

[0229] Obtaining a summary position number of the first business data in the second data summary as a first fusion position number, and obtaining a summary position number of the second business data in the first data summary as a second fusion position number;

[0230] The first data summary and the second data summary are fused according to the first fusion position serial number and the second fusion position serial number to generate a target data summary for performing a data query on the original data.

[0231] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 and Figure 8dThe description of the video data processing method in the corresponding embodiment can also be performed as described above. Fig. 9 The description of the video data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.

[0232] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the computer device 1000 for data processing mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned data processing. Figures 3 to 8d The description of the above data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0233] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0234] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method, It is characterized in that include: Performing data sampling on the original data to obtain first business data and second business data; Determine the first service data and the original position serial number of the first service data in the original data as a first data summary, and determine the second service data and the original position serial number of the second service data in the original data as a second data summary; Obtaining a summary position number of the first service data in the second data summary as a first fusion position number, and obtaining a summary position number of the second service data in the first data summary as a second fusion position number; Determine the first target position number of the first business data based on the result of adding the original position number of the first business data in the first data summary and the first fused position number; obtain the second target position number of the second business data based on the result of adding the original position number of the second business data in the second data summary and the second fused position number; generate a target data summary for data query on the original data based on the first business data, the first target position number, the second business data and the second target position number.

2. The method according to claim 1, It is characterized in that The sampling of the original data to obtain the first service data and the second service data includes: Acquire a first data set and a second data set from the original data; each business data in the original data has an original position serial number; Get data sampling length; Obtaining a maximum original position sequence number of the business data in the first data set, and determining a first position screening sequence number according to the maximum original position sequence number in the first data set and the data sampling length; Filtering the business data corresponding to the first position filtering sequence number in the first data set as the first business data; Obtaining a maximum original position sequence number of the business data in the second data set, and determining a second position screening sequence number according to the maximum original position sequence number in the second data set and the data sampling length; The business data corresponding to the second position filtering sequence number is filtered in the second data set as the second business data.

3. The method according to claim 2, It is characterized in that The step of screening the business data corresponding to the first position screening sequence number in the first data set as the first business data includes: Obtaining original position serial numbers corresponding to the business data in the first data set; Subtracting the first position screening sequence number from the original position sequence number in the first data set to obtain a first sequence number difference; Among the difference absolute values ​​corresponding to the first sequence number difference, obtain the first minimum difference absolute value, determine the original position sequence number corresponding to the first minimum difference absolute value as the first sequence number to be extracted, and determine the business data corresponding to the first sequence number to be extracted as the first business data.

4. The method according to claim 2, It is characterized in that The step of filtering the business data corresponding to the second position filtering sequence number in the second data set as the second business data includes: Obtaining original position serial numbers corresponding to the business data in the second data set respectively; Subtracting the second position screening sequence number from the original position sequence number in the second data set to obtain a second sequence number difference; Among the difference absolute values ​​corresponding to the second sequence number difference, obtain the second minimum difference absolute value, determine the original position sequence number corresponding to the second minimum difference absolute value as the second sequence number to be extracted, and determine the business data corresponding to the second sequence number to be extracted as the second business data.

5. The method according to claim 1, It is characterized in that The obtaining, as a first fusion sequence number, a summary position sequence number of the first service data in the second data summary, includes: Matching the first service data with the second data summary, and determining first data to be fused according to the matching result; the first data to be fused refers to service data in the second data summary that has an adjacent position relationship with the first service data; Determining a summary position sequence number of the first service data in the second data summary according to an original position sequence number of the first data to be fused in the second data summary; The summary position number of the first business data in the second data summary is determined as a first fusion position number.

6. The method according to claim 5, It is characterized in that The matching the first service data with the second data summary and determining the first data to be merged according to the matching result includes: Matching the first service data with the second data summary, and if the second data summary contains second service data identical to the first service data, determining the second service data identical to the first service data as the first data to be merged; If the smallest second service data in the second data summary is greater than the first service data, determining the smallest second service data in the second data summary as the first data to be merged; If the largest second service data in the second data summary is smaller than the first service data, determining the largest second service data in the second data summary as the first data to be merged; If there is second business data smaller than the first business data and there is second business data larger than the first business data in the second data summary, the maximum second business data among the second business data smaller than the first business data and the minimum second business data among the second business data larger than the first business data are determined as the first data to be merged.

7. The method according to claim 6, It is characterized in that The determining, according to the original position sequence number of the first data to be fused in the second data summary, the summary position sequence number of the first service data in the second data summary includes: If the first data to be merged includes a second service data, the original position serial number of the first data to be merged in the second data summary is determined as the summary position serial number of the first service data in the second data summary; If the first data to be merged includes two adjacent second business data, a serial number linear function is constructed based on the maximum second business data among the second business data that is smaller than the first business data, and the minimum second business data among the second business data that is larger than the first business data, and the summary position serial number of the first business data in the summary of the second data is determined based on the serial number linear function.

8. The method according to claim 1, It is characterized in that The step of generating a target data summary for performing a data query on the original data according to the first business data, the first target location serial number, the second business data, and the second target location serial number includes: Generate a fused data summary according to the first service data, the first target location serial number, the second service data, and the second target location serial number; Obtaining a maximum target position number from among the first target position number and the second target position number, and determining a target position screening number according to the maximum target position number and the data sampling length; Filtering the business data corresponding to the target location screening sequence number in the fused data summary as the target business data; The target business data and the sequence number of the target business data in the fused data summary are determined as the target data summary.

9. The method according to claim 8, It is characterized in that The generating a fusion data summary according to the first service data, the first target position sequence number, the second service data and the second target position sequence number includes: Determine the first service data and a first target location sequence number corresponding to the first service data, and the second service data and a second target location sequence number corresponding to the second service data as an initial data summary; Acquire the service data to be inserted, and acquire the service data having a neighboring position relationship with the service data to be inserted in the initial data summary; Determine the sequence number of the service data to be inserted in the initial data summary according to the service data having an adjacent position relationship with the service data to be inserted and the sequence number of the service data having an adjacent position relationship with the service data to be inserted in the initial data summary; The service data to be inserted and the sequence number of the service data to be inserted in the initial data summary are inserted into the initial data summary to obtain a fused data summary.

10. The method according to claim 1, It is characterized in that Also includes: Get the data to be ranked; The target data summary is matched with the data to be ranked, and the ranking of the data to be ranked in the original data is determined according to the matching result.

11. The method according to claim 1, It is characterized in that Also includes: Obtain the data to be estimated; Determine the serial number in the target data summary as the target position serial number; According to the maximum target position sequence number among the target position sequence numbers, determining the sequence number of the business data corresponding to the data to be estimated in the target data summary as the estimated target position sequence number; The target data summary is matched with the estimated target position sequence number, and the business data corresponding to the data to be estimated in the target data summary is determined according to the matching result.

12. A data processing device, It is characterized in that include: A data sampling module, used for sampling the original data to obtain first business data and second business data; a summary determination module, configured to determine the first service data and the original position serial number of the first service data in the original data as a first data summary, and determine the second service data and the original position serial number of the second service data in the original data as a second data summary; A sequence number acquisition module, used to acquire a summary position sequence number of the first service data in the second data summary as a first fusion position sequence number, and acquire a summary position sequence number of the second service data in the first data summary as a second fusion position sequence number; A summary fusion module is used to determine the first target position number of the first business data based on the result of adding the original position number of the first business data in the first data summary to the first fused position number; obtain the second target position number of the second business data based on the result of adding the original position number of the second business data in the second data summary to the second fused position number; and generate a target data summary for data query on the original data based on the first business data, the first target position number, the second business data and the second target position number.

13. A computer device, It is characterized in that include: Processor and memory; The memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 11 is executed.

Citation Information

Patent Citations

  • Cross-library paging query method and system and storage medium

    CN109684528A

  • A data statistics method and device

    CN109726581A

  • Techniques to find percentiles in a distributed computing environment

    US20110307475A1

  • Predictive Sorting of Data Elements

    US20150268931A1

  • Building heavy hitter summary for query optimization

    US20190095487A1