Data aggregation method, device, electronic device, storage medium and program product

By performing multi-dimensional data screening and calculation processing on the client, it solves the problem in the existing technology that data aggregation is not instant and the aggregation results cannot be reused, achieving instant processing and efficient aggregation of complex scene data, and improving user experience.

CN113704259BActive Publication Date: 2024-10-01BEIJING RENKE INTERACTIVE NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110977152.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-24
Publication Date
2024-10-01
Estimated Expiration
2041-08-24

AI Technical Summary

Technical Problem

In the existing technology, the data aggregation method requires network interaction, and the calculation results cannot be obtained immediately, and the summary results of the previous dimension cannot be used as parameters to participate in the table data calculation of the next dimension, making it impossible to achieve rapid calculation and summary of complex scene data.

Method used

Data aggregation is performed on the client. By obtaining the multi-dimensional table data to be processed, the data is filtered and calculated based on the preset filtering conditions and summary methods to achieve multi-dimensional data interoperability and complex scenario calculations, which can be directly applied to customers. terminal, no network interaction is required.

Benefits of technology

It realizes real-time processing and summary of complex scene data, improves data processing efficiency, improves user experience, and can directly apply the summary results of the previous dimension to the table data calculation of the next dimension.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113704259B_ABST
    Figure CN113704259B_ABST
Patent Text Reader

Abstract

The present invention provides a data aggregation method, device, electronic device, storage medium and program product, the method comprising: the data aggregation method is applied to a client, specifically comprising: obtaining table data to be processed; wherein the table data to be processed is table data of any one dimension in multi-dimensional table data; filtering the table data to be processed according to preset filtering conditions to obtain multi-dimensional filtering result data; calculating and processing the summary result data of the multi-dimensional filtering result data and other dimensional table data to obtain calculation result data; summarizing and processing the calculation result data according to a preset summarization method to obtain a summary result. The present invention can apply the summary result of the previous dimension to the calculation of the table data of the next dimension, realize the calculation processing of complex scenes, and is directly applied to the client without network interaction, realizes instant calculation and aggregation, improves data processing efficiency, and enhances user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data aggregation method, device, electronic device, storage medium and program product. Background Art

[0002] With the continuous application of artificial intelligence, people's demand for intelligent analysis and processing of business data is increasing day by day. Intelligent analysis and processing of business data can greatly improve the work efficiency of staff.

[0003] At present, the existing data aggregation method requires the collected data to be transmitted to the server, and the corresponding calculation and aggregation processing is performed on the server side, and then the server side returns the aggregation results to the client. This data aggregation processing method cannot obtain the calculation results immediately. Moreover, the aggregation result data generated by the previous dimension calculation cannot be used as a parameter to continue to participate in the calculation of the next dimension table data, resulting in the inability to achieve fast calculation and aggregation of complex scenario data. Summary of the invention

[0004] The present invention provides a data aggregation method, device, electronic device, storage medium and program product to solve the technical problem in the prior art that the calculation results cannot be obtained immediately due to the need for network interaction and the aggregation results calculated in the previous dimension cannot be used as parameters to continue to participate in the calculation and processing of the table data in the next dimension, and complex scene data cannot be quickly and immediately processed, so as to achieve the purpose of improving data aggregation efficiency and enhancing customer experience.

[0005] In a first aspect, the present invention provides a data aggregation method, which is applied to a client and includes:

[0006] Acquire the table data to be processed; wherein the table data to be processed is table data of any dimension in the multi-dimensional table data;

[0007] The to-be-processed table data is screened according to preset screening conditions to obtain multi-dimensional screening result data;

[0008] Calculate and process the summary result data of the multi-dimensional screening result data and other dimensional table data to obtain calculation result data;

[0009] Summarizing the calculation result data according to a preset summarization method to obtain a summary result;

[0010] The summary result data of the other dimension table data is data obtained in advance according to a preset summary method.

[0011] Further, according to the data aggregation method provided by the present invention, the aggregation result data of the multi-dimensional screening result data and other dimensional table data are calculated and processed to obtain the calculation result data, including:

[0012] The multi-dimensional screening result data and the summary result data of other dimensional table data are calculated based on a preset calculation formula to obtain calculation result data.

[0013] Further, according to the data aggregation method provided by the present invention, the to-be-processed table data is screened according to preset screening conditions to obtain multi-dimensional screening result data, including:

[0014] Perform target screening processing on the table data to be processed according to preset multi-target screening conditions to obtain target screening result data;

[0015] Performing multi-dimensional screening processing on the target screening result data according to the mapping relationship between preset metadata to obtain multi-dimensional screening result data;

[0016] The metadata is data used to describe the mapping relationship between the multi-dimensional table data.

[0017] Further, according to the data aggregation method provided by the present invention, after obtaining the calculation result data, it includes:

[0018] The calculation result data is precision processed to obtain calculation result data that meets the precision requirement.

[0019] Further, according to the data aggregation method provided by the present invention, the calculation result data is aggregated according to a preset aggregation method to obtain an aggregation result, including:

[0020] The calculation result data is aggregated according to the aggregation method of summation, average value, counting, maximum value or minimum value to obtain the aggregation result.

[0021] In a second aspect, the present invention further provides a data aggregation device, which is applied to a client and includes:

[0022] An acquisition module, used for acquiring table data to be processed; wherein the table data to be processed is table data of any dimension in multi-dimensional table data;

[0023] A screening module is used to screen the table data to be processed according to preset screening conditions to obtain multi-dimensional screening result data;

[0024] A calculation module, used for calculating and processing the summary result data of the multi-dimensional screening result data and other dimensional table data to obtain calculation result data;

[0025] A summary module, used to summarize the calculation result data according to a preset summary method to obtain a summary result;

[0026] The summary result data of the other dimension table data is data obtained in advance according to a preset summary method.

[0027] Further, according to the data aggregation device provided by the present invention, the calculation module is also used for:

[0028] The multi-dimensional screening result data and the summary result data of other dimensional table data are calculated based on a preset calculation formula to obtain calculation result data.

[0029] In a third aspect, the present invention further provides an electronic device, comprising:

[0030] processor, memory and bus, wherein,

[0031] The processor and the memory communicate with each other via the bus;

[0032] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the steps of the data aggregation method described in any one of the above items.

[0033] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the steps of the data aggregation method as described above.

[0034] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, the steps of the data aggregation method as described in any one of the above items are implemented.

[0035] The present invention provides a data aggregation method, device, electronic device, storage medium and program product, the method comprising: the data aggregation method is applied to a client, specifically comprising: obtaining table data to be processed; wherein the table data to be processed is table data of any one dimension in multi-dimensional table data; filtering the table data to be processed according to preset filtering conditions to obtain multi-dimensional filtering result data; calculating and processing the summary result data of the multi-dimensional filtering result data and other dimensional table data to obtain calculation result data; summarizing and processing the calculation result data according to a preset summarization method to obtain a summary result. The present invention can apply the summary result of the previous dimension to the calculation of the table data of the next dimension, realize the calculation processing of complex scenes, and is directly applied to the client without network interaction, realizes instant calculation and aggregation, improves data processing efficiency, and enhances user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.

[0037] Figure 1 It is a flow chart of a data aggregation method provided by the present invention;

[0038] Figure 2 It is a structural schematic diagram of a data aggregation device provided by the present invention;

[0039] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Figure 1 A flow chart of the data aggregation method provided by the present invention is as follows: Figure 1 As shown, the data aggregation method provided by the present invention is applied to a client, comprising the following steps:

[0042] Step 101: Acquire table data to be processed; wherein the table data to be processed is table data of any dimension in multi-dimensional table data;

[0043] Step 102: Filter the table data to be processed according to preset filtering conditions to obtain multi-dimensional filtering result data;

[0044] Step 103: Calculate and process the multi-dimensional screening result data and the summary result data of other dimensional table data to obtain calculation result data;

[0045] Step 104: Summarize the calculation result data according to a preset summarization method to obtain a summary result;

[0046] The summary result data of the other dimension table data is data obtained in advance according to a preset summary method.

[0047] Specifically, multi-dimensional table data refers to table data of multiple dimensions with mapping relationships between each table data.

[0048] In step 101, the table data to be processed is obtained, wherein the table data to be processed is the table data of any dimension in the multi-dimensional table data, and there is a certain association mapping relationship between the multi-dimensional table data, such as finding the associated table 2 according to the corresponding mapping relationship of a certain data in table 1, finding the associated table 3 from a certain data in table 2, finding the associated table 4 from a certain data in table 3, and finding table 5 from the mapping relationship of a certain data in table 4. It should be noted that the association mapping relationship between the multi-dimensional table data can be set according to actual needs and is not specifically limited here.

[0049] In step 102, the preset filtering condition may be a plurality of filtering conditions set, and each filtering condition has a certain logical relationship, and through the preset filtering condition, multi-dimensional filtering result data is obtained, wherein the filtering data of the filtering condition may include the summary result data of the table data of the previous dimension, such as the filtering condition is set to a certain field of the current table data is greater than or equal to 20 and the summary result of the table data of the previous dimension is 30, and the filtering condition is set according to the configured logical relationship. It should be noted that multiple filtering conditions can be set according to actual needs, and no specific limitation is made here.

[0050] In step 103, calculation processing is performed based on the summary results of the obtained multi-dimensional screening result data and other dimensional table data, such as "(data in column 2 of table 1 + data in column 4 of table 1) / table 2 summary result data 3" to obtain the calculation result data.

[0051] In step 104, the calculation results obtained in step 103 are summarized according to a preset summary method to obtain a summary result. The preset summary method may be summation, average value, etc., which may be set according to actual needs and is not specifically limited here.

[0052] In an embodiment of the present invention, the obtained table data to be processed is screened according to preset screening conditions to obtain multi-dimensional screening result data; the summary result data of the multi-dimensional screening result data and other dimensional table data is calculated to obtain calculation result data; the calculation result data is summarized according to a preset summary method to obtain a summary result. The present invention applies the summary result of other dimensional table data as a corresponding parameter to the calculation of the current dimensional table data, thereby realizing the calculation processing of complex scenarios such as directly applying the summary result of the previous dimension to the calculation of the table data of the next dimension, and directly applies it to the client without network interaction, realizing instant calculation and aggregation, improving data processing efficiency, and enhancing user experience.

[0053] In one embodiment of the present invention, the calculation and processing of the summary result data of the multi-dimensional screening result data and other dimensional table data to obtain the calculation result data includes:

[0054] The multi-dimensional screening result data and the summary result data of other dimensional table data are calculated based on a preset calculation formula to obtain calculation result data.

[0055] Specifically, the preset calculation formula uses the summary result data of other dimensional table data as one of the calculation parameters.

[0056] In an embodiment of the present invention, it is necessary to apply the summary result data of other dimensional table data to the calculation of the current dimensional table data, and use the summary result data of other dimensional table data as a parameter value in the calculation of the current dimensional table data. For example, if it is necessary to calculate the screening result data in Table 2, assuming that the data in the first column of Table 2 is represented by A, the data in the fourth column of Table 2 is represented by B, and the summary result data in Table 3 is represented by C, then the selected calculation formula is (AB)÷C. If the data in column 1 of Table 2 is A1A2A3A4..., the data in column 3 of Table 2 is B1B2B3B4..., and the summary result data in Table 3 is C1C2C3..., then according to the calculation formula, the calculation result data D1=(A1-B1)÷C1 for each row will be obtained, and the calculation result data D1D2D3... will be obtained in turn.

[0057] In an embodiment of the present invention, the summary result data of the previous dimension table is used as a calculation parameter to participate in the calculation of the table data of the current dimension, which can realize the calculation processing of complex scenarios and enable data intercommunication between multiple dimensional table data to meet the calculation of complex scenarios.

[0058] In another embodiment of the present invention, the filtering process of the table data to be processed according to the preset filtering conditions to obtain multi-dimensional filtering result data includes:

[0059] Perform target screening processing on the table data to be processed according to preset multi-target screening conditions to obtain target screening result data;

[0060] Performing multi-dimensional screening processing on the target screening result data according to the mapping relationship between preset metadata to obtain multi-dimensional screening result data;

[0061] The metadata is data used to describe the mapping relationship between the multi-dimensional table data.

[0062] Specifically, in the filtering condition, the summary result data of other dimension table data is used as an influencing factor in the filtering condition.

[0063] In the embodiment of the present invention, the association processing between multiple table data can be realized. Through the metadata architecture, the information of each table is described, for example, what type of data each column of data is, if it is an associated type, which table and column it is associated with, so as to facilitate user configuration processing. Among them, the screening condition can be that a field is equal to a value, or a field is equal to another field, a field is equal to the summary result data generated by another dimension table data, etc. The table data for screening processing is data in which multiple dimension tables are interrelated and nested with each other, and is not limited to the current table.

[0064] In the embodiment of the present invention, multi-dimensional screening results can be obtained from interrelated multi-dimensional data according to the set screening conditions, thereby realizing screening processing of complex scenarios and improving the efficiency of data processing.

[0065] In one embodiment of the present invention, after obtaining the calculation result data, the following steps are included:

[0066] The calculation result data is precision processed to obtain calculation result data that meets the precision requirement.

[0067] In the embodiment of the present invention, it is necessary to perform precision processing on the calculation result data, including decimal places and rounding processing, wherein rounding includes rounding up, rounding down, etc., so that the calculation result data meets the precision requirement.

[0068] In another embodiment of the present invention, the aggregating the calculation result data according to a preset aggregation method to obtain the aggregation result includes:

[0069] The calculation result data is aggregated according to the aggregation method of summation, average value, counting, maximum value or minimum value to obtain the aggregation result.

[0070] In an embodiment of the present invention, summary result data is obtained through a preset summary method, and the obtained summary result data can be applied to the calculation of another dimensional table data that is mutually related, so that the summary result data can be used as a calculation parameter to participate in multi-level summary processing, thereby improving the efficiency of summary processing in complex scenarios.

[0071] Figure 2 A data aggregation device provided by the present invention, such as Figure 2 As shown, the data aggregation device provided by the present invention is applied to a client, comprising:

[0072] The acquisition module 201 is used to acquire the table data to be processed; wherein the table data to be processed is table data of any dimension in the multi-dimensional table data;

[0073] The screening module 202 is used to screen the table data to be processed according to preset screening conditions to obtain multi-dimensional screening result data;

[0074] A calculation module 203 is used to calculate and process the multi-dimensional screening result data and the summary result data of other dimensional table data to obtain calculation result data;

[0075] A summary module 204 is used to summarize the calculation result data according to a preset summary method to obtain a summary result;

[0076] The summary result data of the other dimension table data is data obtained in advance according to a preset summary method.

[0077] The data aggregation device provided by the present invention can apply the aggregation result data of the previous dimension to the table data calculation of the next dimension, realize the calculation and processing of complex scenarios, and is directly applied to the client without the need for network interaction, realizes instant calculation and aggregation, improves data processing efficiency, and enhances user experience.

[0078] Furthermore, the calculation module is also used for:

[0079] The multi-dimensional screening result data and the summary result data of other dimensional table data are calculated based on a preset calculation formula to obtain calculation result data.

[0080] Furthermore, the screening module is also used for:

[0081] Perform target screening processing on the table data to be processed according to preset multi-target screening conditions to obtain target screening result data;

[0082] Performing multi-dimensional screening processing on the target screening result data according to the mapping relationship between preset metadata to obtain multi-dimensional screening result data;

[0083] The metadata is data used to describe the mapping relationship between the multi-dimensional table data.

[0084] Furthermore, the data aggregation device further includes a precision processing module, and the precision processing module is used to:

[0085] The calculation result data is precision processed to obtain calculation result data that meets the precision requirement.

[0086] Furthermore, the summary module is also used for:

[0087] The calculation result data is aggregated according to the aggregation method of summation, average value, counting, maximum value or minimum value to obtain the aggregation result.

[0088] Since the principle of the device described in the embodiment of the present invention is the same as that of the method described in the above embodiment, a more detailed explanation will not be repeated here.

[0089] Figure 3 Schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention. Figure 3 As shown, the present invention provides an electronic device, including: a processor (processor) 301, a memory (memory) 302 and a bus 303;

[0090] The processor 301 and the memory 302 communicate with each other via the bus 303;

[0091] The processor 301 is used to call the program instructions in the memory 302 to execute the methods provided in the above-mentioned method embodiments, for example, including: the data aggregation method is applied to the client, including: obtaining the table data to be processed; wherein the table data to be processed is the table data of any dimension in the multi-dimensional table data; filtering the table data to be processed according to the preset filtering conditions to obtain multi-dimensional filtering result data; calculating and processing the summary result data of the multi-dimensional filtering result data and other dimensional table data to obtain calculation result data; summarizing and processing the calculation result data according to the preset aggregation method to obtain the aggregation result; wherein the summary result data of the other dimensional table data is data obtained in advance according to the preset aggregation method.

[0092] In an embodiment of the present invention, a non-transitory computer-readable storage medium is provided, and the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the methods provided in the above-mentioned method embodiments, for example, including: the data aggregation method is applied to a client, including: obtaining table data to be processed; wherein the table data to be processed is table data of any dimension in multi-dimensional table data; filtering the table data to be processed according to preset filtering conditions to obtain multi-dimensional filtering result data; calculating and processing the summary result data of the multi-dimensional filtering result data and other dimensional table data to obtain calculation result data; summarizing and processing the calculation result data according to a preset aggregation method to obtain a summary result; wherein the summary result data of the other dimensional table data is data obtained in advance according to a preset aggregation method.

[0093] The present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the work order priority confirmation method provided by the above-mentioned methods, and the method includes: the data aggregation method is applied to a client, including: obtaining table data to be processed; wherein the table data to be processed is table data of any one dimension in multi-dimensional table data; filtering the table data to be processed according to preset filtering conditions to obtain multi-dimensional filtering result data; calculating and processing the summary result data of the multi-dimensional filtering result data and other dimensional table data to obtain calculation result data; summarizing and processing the calculation result data according to a preset aggregation method to obtain a summary result; wherein the summary result data of the other dimensional table data is data obtained in advance according to a preset aggregation method.

[0094] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data aggregation method, characterized in that: The data aggregation method is implemented through a metadata architecture, and the data aggregation method is applied to a client, including: Acquire the table data to be processed; wherein the table data to be processed is table data of any dimension in the multi-dimensional table data, and there is an associated mapping relationship between the multi-dimensional table data; The to-be-processed table data is screened according to a preset screening condition to obtain multi-dimensional screening result data, wherein the summary result data of the table data of other dimensions is used as an influencing factor in the screening condition; Calculate and process the summary result data of the multi-dimensional screening result data and other dimensional table data to obtain calculation result data; Summarizing the calculation result data according to a preset summarization method to obtain a summary result; The summary result data of the other dimension table data is data obtained in advance according to a preset summary method; The step of filtering the table data to be processed according to the preset filtering conditions to obtain multi-dimensional filtering result data includes: Perform target screening processing on the table data to be processed according to preset multi-target screening conditions to obtain target screening result data; Performing multi-dimensional screening processing on the target screening result data according to the mapping relationship between preset metadata to obtain multi-dimensional screening result data; The metadata is data used to describe the mapping relationship between the multi-dimensional table data and the mapping relationship between the multi-target screening conditions and the multi-dimensional table data.

2. The data aggregation method according to claim 1, characterized in that: The calculation and processing of the summary result data of the multi-dimensional screening result data and other dimensional table data to obtain the calculation result data includes: The multi-dimensional screening result data and the summary result data of other dimensional table data are calculated based on a preset calculation formula to obtain calculation result data.

3. The data aggregation method according to claim 1, characterized in that: After obtaining the calculation result data, the method further comprises: The calculation result data is precision processed to obtain calculation result data that meets the precision requirement.

4. The data aggregation method according to claim 1, characterized in that: The step of aggregating the calculation result data according to a preset aggregation method to obtain an aggregation result includes: The calculation result data is aggregated according to the aggregation method of summation, average value, counting, maximum value or minimum value to obtain the aggregation result.

5. A data aggregation device, characterized in that: The data aggregation device is implemented by a metadata architecture, and the data aggregation device is applied to a client, including: An acquisition module, used for acquiring table data to be processed; wherein the table data to be processed is table data of any dimension in multi-dimensional table data, and there is an associated mapping relationship between the multi-dimensional table data; A screening module, used to screen the table data to be processed according to a preset screening condition to obtain multi-dimensional screening result data, wherein the summary result data of the table data of other dimensions is used as an influencing factor in the screening condition; A calculation module, used for calculating and processing the summary result data of the multi-dimensional screening result data and other dimensional table data to obtain calculation result data; A summary module, used to summarize the calculation result data according to a preset summary method to obtain a summary result; The summary result data of the other dimension table data is data obtained in advance according to a preset summary method; The step of filtering the table data to be processed according to the preset filtering conditions to obtain multi-dimensional filtering result data includes: Perform target screening processing on the table data to be processed according to preset multi-target screening conditions to obtain target screening result data; Performing multi-dimensional screening processing on the target screening result data according to the mapping relationship between preset metadata to obtain multi-dimensional screening result data; The metadata is data used to describe the mapping relationship between the multi-dimensional table data and the mapping relationship between the multi-target screening conditions and the multi-dimensional table data.

6. The data aggregation device according to claim 5, characterized in that: The calculation module is also used for: The multi-dimensional screening result data and the summary result data of other dimensional table data are calculated based on a preset calculation formula to obtain calculation result data.

7. An electronic device, characterized in that: include: processor, memory and bus, wherein, The processor and the memory communicate with each other via the bus; The memory stores program instructions that can be executed by the processor, and the processor can execute the steps of the data aggregation method according to any one of claims 1 to 4 by calling the program instructions.

8. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, which enable the computer to execute the steps of the data aggregation method according to any one of claims 1 to 4.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the data aggregation method according to any one of claims 1 to 4 are implemented.