Data analysis method and system, computer equipment, storage medium and program product
By obtaining the processing parameters and instruction information of the data to be analyzed, and performing analysis based on logical processing templates, the problem of poor versatility of traditional recommendation engine data analysis methods is solved, and more efficient and flexible data analysis is achieved to adapt to different user needs.
Patent Information
- Application Number
- CN202410775591.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-27
AI Technical Summary
The data analysis methods of traditional recommendation engines have poor versatility and are difficult to adapt to the diverse needs of different users, limiting their wide application and in-depth development.
By obtaining the processing parameters and instruction information of the data to be analyzed, the data is analyzed based on the logical processing template, and the data analysis method and system are provided. The logical processing template can be selected according to different business scenarios, avoiding the need to write separate codes for each set of data, and improving data Analytical versatility and flexibility.
It improves the versatility and flexibility of data analysis, saves data analysis costs, improves processing efficiency, and can customize the analysis process according to specific needs.
Smart Images

Figure CN118709676A
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a data analysis method, system, computer device, storage medium and program product. Background Art
[0002] With the rapid development of big data and artificial intelligence, how to find information that meets user interests and needs in massive amounts of data has become an urgent problem to be solved. As an effective information filtering and personalized service technology, recommendation engines recommend items, services or information of interest to users through in-depth analysis and mining of user behavior data, greatly improving user experience and satisfaction.
[0003] However, despite the many advantages of traditional recommendation engines, there is a problem in their data analysis methods that cannot be ignored in practical applications. When performing data analysis, traditional recommendation engines often need to conduct personalized analysis for each set of data, which results in poor versatility of the data analysis method and makes it difficult to adapt to the diverse needs of different users, limiting the wide application and in-depth development of recommendation engines.
[0004] Therefore, how to improve the versatility of data analysis methods has become a technical problem that needs to be urgently solved in this field. Summary of the invention
[0005] Based on this, it is necessary to provide a data analysis method, system, computer device, storage medium and program product that can improve versatility in response to the above technical problems.
[0006] In a first aspect, the present application provides a data analysis method. The method comprises:
[0007] Acquire processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed; the indication information of the data to be analyzed includes a logic processing template identifier corresponding to the data to be analyzed and a storage address of the data to be analyzed;
[0008] According to the logic processing template identifier, determining the logic processing template corresponding to the data to be analyzed from the logic processing template library;
[0009] Acquire the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed;
[0010] Writing the processing parameters into the logic processing template to obtain an analysis file;
[0011] The data to be analyzed is analyzed based on the analysis file to obtain a data analysis result.
[0012] In one embodiment, the processing parameters are written into the logic processing template to obtain an analysis file, including:
[0013] Verifying the processing parameters according to the logic processing template;
[0014] When it is determined that the processing parameters include each parameter required in the logic processing template, the processing parameters are written into the logic processing template to obtain an analysis file.
[0015] In one embodiment, after obtaining the data to be analyzed and the logic processing template corresponding to the data to be analyzed based on the indication information of the data to be analyzed, the method further includes:
[0016] Obtaining field overview information corresponding to the data to be analyzed, and verifying the data to be analyzed according to the field overview information;
[0017] The data to be analyzed is analyzed based on the analysis file to obtain data analysis results, including:
[0018] When it is determined that the data to be analyzed has no abnormality according to the field overview information verification, the data to be analyzed is analyzed based on the analysis file to obtain a data analysis result;
[0019] The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and the field type in the data to be analyzed matches the field type indicated in the field overview information.
[0020] In one of the embodiments, the indication information of the data to be analyzed includes: a data acquisition range corresponding to the data to be analyzed;
[0021] The step of obtaining the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed includes:
[0022] According to the data acquisition range, the data to be analyzed is acquired from the file to be analyzed;
[0023] The data acquisition scope may include any of the following:
[0024] The data length of the data to be analyzed;
[0025] The starting position and ending position of the data to be analyzed;
[0026] The data length and starting position of the data to be analyzed.
[0027] In one embodiment, the file to be analyzed includes a plurality of different data to be analyzed, and the method further includes:
[0028] Execute the data analysis method according to any one of claims 1 to 4 in parallel for each data to be analyzed;
[0029] The data analysis results obtained from a plurality of different data to be analyzed are merged to obtain the analysis result of the file to be analyzed.
[0030] In a second aspect, the present application also provides a data analysis system. The data analysis system comprises:
[0031] A startup module, used to obtain processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed, and determine the logic processing template corresponding to the data to be analyzed from the logic processing template library according to the logic processing template identifier, and obtain the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed;
[0032] The execution module is used to write the processing parameters into the logic processing template to obtain an analysis file, and analyze the data to be analyzed based on the analysis file to obtain a data analysis result.
[0033] In one embodiment, the data analysis system further includes:
[0034] A verification module, used for verifying the processing parameters according to the logic processing template;
[0035] The execution module is further used for writing the processing parameters into the logic processing template to obtain the analysis file if it is determined that the processing parameters include each parameter required in the logic processing template.
[0036] In one embodiment, after obtaining the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed,
[0037] The verification module is further used to obtain field overview information corresponding to the data to be analyzed, and verify the data to be analyzed according to the field overview information;
[0038] The execution module is further configured to analyze the data to be analyzed based on the analysis file to obtain a data analysis result when it is determined that the data to be analyzed has no abnormality according to the field overview information verification;
[0039] The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and the field type in the data to be analyzed matches the field type indicated in the field overview information.
[0040] In one of the embodiments, the indication information of the data to be analyzed includes: a data acquisition range corresponding to the data to be analyzed;
[0041] The startup module is further used to obtain the data to be analyzed from the file to be analyzed according to the data acquisition range;
[0042] The data acquisition scope may include any of the following:
[0043] The data length of the data to be analyzed;
[0044] The starting position and ending position of the data to be analyzed;
[0045] The data length and starting position of the data to be analyzed.
[0046] In one of the embodiments, the file to be analyzed includes a plurality of different data to be analyzed, and the data analysis system further includes an optimization module;
[0047] The optimization module is used to analyze each data to be analyzed in parallel through the data analysis system according to any one of claims 6 to 9, and merge the data analysis results obtained from multiple different data to be analyzed to obtain the analysis result of the file to be analyzed.
[0048] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0049] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of any of the above methods when executed by a processor.
[0050] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.
[0051] The above-mentioned data analysis method, system, computer device, storage medium and program product obtain the processing parameters corresponding to the data to be analyzed and the indication information of the data to be analyzed, and obtain the data to be analyzed and the logic processing template corresponding to the data to be analyzed based on the indication information of the data to be analyzed, and then write the processing parameters into the logic processing template to obtain an analysis file, analyze the data to be analyzed based on the analysis file, and obtain the data analysis result. In the embodiment of the present application, the ability to select a logic processing template according to different business scenarios or requirements can avoid writing code separately for each set of data for analysis, and the introduction of processing parameters allows the data analysis process to be customized according to specific needs, thereby improving the versatility and flexibility of data analysis. At the same time, the use of logic processing templates can also save the cost of data analysis and improve the processing efficiency of data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 It is a flow chart of a data analysis method provided in an embodiment of the present application;
[0054] Figure 2 It is a flowchart of a method for determining an analysis file provided in an embodiment of the present application;
[0055] Figure 3 It is a flowchart of a method for obtaining analysis results provided in an embodiment of the present application;
[0056] Figure 4 is a schematic diagram of a first parallel processing method provided in an embodiment of the present application;
[0057] Figure 5 is a schematic diagram of a second parallel processing method provided in an embodiment of the present application;
[0058] Figure 6 is a schematic diagram of a third parallel processing method provided in an embodiment of the present application;
[0059] Figure 7 is a schematic diagram of a third parallel processing method provided in an embodiment of the present application;
[0060] Figure 8 It is a flowchart of a method for real-time analysis of recommendation data provided by an embodiment of the present application;
[0061] Fig. 9 It is a structural block diagram of a data analysis system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0063] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.
[0064] With the rapid development of big data and artificial intelligence, how to find information that meets user interests and needs in massive amounts of data has become an urgent problem to be solved. As an effective information filtering and personalized service technology, recommendation engines recommend items, services or information of interest to users through in-depth analysis and mining of user behavior data, greatly improving user experience and satisfaction.
[0065] However, despite the many advantages of traditional recommendation engines, there is a problem in their data analysis methods that cannot be ignored in practical applications. When performing data analysis, traditional recommendation engines often need to conduct personalized analysis for each set of data, which results in poor versatility of the data analysis method and makes it difficult to adapt to the diverse needs of different users, limiting the wide application and in-depth development of recommendation engines.
[0066] Therefore, how to improve the versatility of data analysis methods has become a technical problem that needs to be urgently solved in this field.
[0067] In one embodiment, Figure 1 As shown, a data analysis method is provided. The embodiment of the present application takes the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0068] S101, obtaining processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed.
[0069] The indication information of the data to be analyzed includes a logic processing template identifier corresponding to the data to be analyzed and a storage address of the data to be analyzed.
[0070] In the embodiment of the present application, the processing parameters corresponding to the data to be analyzed may include the parameters required for performing logical processing (i.e., data analysis) on the data to be analyzed. Exemplarily, the processing parameters corresponding to the data to be analyzed may include the parameters shown in Table 1 below:
[0071]
[0072] Table 1
[0073] The processing parameters corresponding to the data to be analyzed may include common processing parameters, fixed processing parameters and custom processing parameters, and the fixed processing parameters and custom processing parameters inherit from the common processing parameters. For example, the parameters Config_type, engine, pool, cache, and redis shown in Table 1 can be used as common processing parameters, that is, they can be used to configure the common configuration of the entire project. The parameters Config_type and Config_id shown in Table 1 can be used as fixed processing parameters. In some personalized analysis scenarios, if the common processing parameters and fixed processing parameters cannot meet the data processing requirements, custom processing parameters can be defined to meet the personalized needs in the actual application process.
[0074] Optionally, the indication information of the data to be analyzed may include field overview information, data acquisition range, storage path, verification indication information, and logic processing template identifier corresponding to the data to be analyzed. Exemplarily, the indication information corresponding to the data to be analyzed may include the information shown in Table 2 below:
[0075]
[0076] Table 2
[0077] S102: Determine the logic processing template corresponding to the data to be analyzed from the logic processing template library according to the logic processing template identifier.
[0078] S103, acquiring the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed.
[0079] In an embodiment of the present application, the data to be analyzed can be obtained from the file to be analyzed according to the storage path of the data to be analyzed in the indication information of the data to be analyzed, and the logical processing template corresponding to the identifier of the logical processing template corresponding to the data to be analyzed in the indication information of the data to be analyzed can be determined.
[0080] In a possible implementation, the method for obtaining the data to be analyzed can be determined according to the storage type field storage_type in the indication information of the data to be analyzed: if the storage type field storage_type in the indication information of the data to be analyzed is disk, it means that the data to be analyzed is stored in the disk, and the data to be analyzed is determined from the disk. If the storage type field storage_type in the indication information of the data to be analyzed is memory, it means that the data to be analyzed is stored in the memory, and the data to be analyzed is determined from the memory. If the storage type field storage_type in the indication information of the data to be analyzed is fixed, it means that the data to be analyzed is stored in the disk and the memory, and the data to be analyzed is determined from the disk and the memory respectively.
[0081] Optionally, the file to be analyzed may be monitored, and when the data in the file to be analyzed changes, the data to be analyzed may be re-determined from the file to be analyzed, and then the re-determined file to be analyzed may be stored to a disk and / or a memory.
[0082] S104, writing the processing parameters into the logic processing template to obtain an analysis file.
[0083] In the embodiment of the present application, the logic processing template may be a predefined framework or structure, and the logic processing template may include the logic steps of data analysis, and the steps in the logic processing template may require specific parameters to be correctly executed. Therefore, the processing parameters can be written into the logic processing template to obtain a complete data analysis logic, and the complete data analysis logic is stored in the analysis file.
[0084] S105: Analyze the data to be analyzed based on the analysis file to obtain a data analysis result.
[0085] Optionally, the data analysis logic in the analysis file may be executed to analyze the data to be analyzed and obtain a data analysis result.
[0086] In a possible implementation, the data analysis logic in the analysis file may be executed by an existing data analysis engine to analyze the data to be analyzed and obtain a data analysis result.
[0087] In the embodiment of the present application, by obtaining the processing parameters corresponding to the data to be analyzed and the indication information of the data to be analyzed, and based on the indication information of the data to be analyzed, the data to be analyzed and the logic processing template corresponding to the data to be analyzed are obtained, and then the processing parameters are written into the logic processing template to obtain an analysis file, and the data to be analyzed is analyzed based on the analysis file to obtain a data analysis result. In the embodiment of the present application, the ability to select a logic processing template according to different business scenarios or requirements can avoid writing code for each set of data for analysis, and the introduction of processing parameters allows the data analysis process to be customized according to specific needs, thereby improving the versatility and flexibility of data analysis. At the same time, the use of a logic processing template can also save the cost of data analysis and improve the processing efficiency of data analysis. And, according to the logic processing template identifier, the logic processing template corresponding to the data to be analyzed is determined from the logic processing template library, and the data to be analyzed is obtained from the file to be analyzed indicated by the storage address of the data to be analyzed, and the logic processing template can be directly located according to the logic processing template identifier, and the file to be analyzed can be directly located according to the storage path of the data to be analyzed, thereby improving the accuracy of the determined logic processing template and the file to be analyzed.
[0088] Reference Figure 2 , Figure 21 is a flowchart of a method for determining an analysis file provided in an embodiment of the present application. This embodiment involves a possible implementation method of how to write processing parameters into a logical processing template to obtain an analysis file. Based on the above embodiment, the above S104 includes the following steps:
[0089] S201, verifying processing parameters according to a logical processing template.
[0090] In a possible implementation, the load_check field in the indication information of the data to be analyzed may be obtained, and when load_check=true, the processing parameters are checked according to the logic processing template.
[0091] In an embodiment of the present application, before writing the processing parameters into the logic processing template, the parameters required in the logic processing template can be determined, and the parameters required in the logic processing template can be compared with the processing parameters to determine whether the processing parameters include every parameter required in the logic processing template.
[0092] S202: If it is determined that the processing parameters include each parameter required in the logic processing template, the processing parameters are written into the logic processing template to obtain an analysis file.
[0093] If the processing parameters include every parameter required in the logic processing template, the processing parameters can be written into the logic processing template to obtain an analysis file.
[0094] Optionally, if the processing parameters do not include every parameter required in the logical processing template, that is, if there are parameters in the parameters required by the logical processing template that are not included in the processing parameters, the processing parameters are re-acquired, or the logical processing template is re-acquired according to the indication information of the data to be analyzed, or the indication information of the data to be analyzed is re-acquired, and then the logical processing template is acquired according to the newly acquired indication information.
[0095] In an embodiment of the present application, the processing parameters are verified according to the logic processing template. When it is determined that the processing parameters include each parameter required in the logic processing template, the processing parameters are written into the logic processing template to obtain an analysis file, thereby avoiding missing processing parameters, improving the integrity of the processing parameters, and being able to promptly discover errors in the data analysis process, thereby improving the stability of the data analysis method.
[0096] Based on the above embodiment, after the above S103, the method further includes the following steps:
[0097] Obtain the field overview information corresponding to the data to be analyzed, and verify the data to be analyzed based on the field overview information.
[0098] In a possible implementation manner, the load_check field in the indication information of the data to be analyzed may be obtained, and when load_check=true, the data to be analyzed is checked according to the field overview information.
[0099] Optionally, the indication information of the data to be analyzed also includes field overview information corresponding to the data to be analyzed, and the field overview information is used to characterize the standard form of the data to be analyzed. The field overview information may include field data that should be in the data to be analyzed, and field types of each field data that should be in the data to be analyzed.
[0100] In an embodiment of the present application, the data to be analyzed can be compared with the field overview information to determine whether the data to be analyzed includes all field data indicated by the field overview information, and whether the field type in the data to be analyzed matches the field type indicated in the field overview information.
[0101] Based on the above embodiment, the above S105 can also be implemented in the following manner:
[0102] When it is determined that the data to be analyzed has no abnormality based on the field overview information verification, the data to be analyzed is analyzed based on the analysis file to obtain a data analysis result.
[0103] The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and the field type in the data to be analyzed matches the field type indicated in the field overview information.
[0104] Optionally, if the data to be analyzed does not include all the field data indicated by the field overview information, that is, the field data indicated by the field overview information includes field data not included in the data to be analyzed, then the data to be analyzed is abnormal. Alternatively, if the field type in the data to be analyzed does not match the field type indicated in the field overview information, then the data to be analyzed is abnormal. Alternatively, if the data to be analyzed does not include all the field data indicated by the field overview information, and the field type in the data to be analyzed does not match the field type indicated in the field overview information, then the data to be analyzed is abnormal.
[0105] In the embodiment of the present application, if the data to be analyzed has an abnormality, the data to be analyzed can be re-acquired based on the indication information of the data to be analyzed, or an alarm message can be generated to remind the user that the data to be analyzed has an abnormality through the alarm message.
[0106] In an embodiment of the present application, field overview information corresponding to the data to be analyzed is obtained, and the data to be analyzed is verified according to the field overview information. When it is determined that there is no abnormality in the data to be analyzed according to the verification of the field overview information, the data to be analyzed is analyzed based on the analysis file to obtain a data analysis result, thereby being able to promptly discover abnormal data to be analyzed during the data analysis process to improve the stability of the data analysis method.
[0107] The indication information of the data to be analyzed includes: the data acquisition range corresponding to the data to be analyzed, and the storage path corresponding to the data to be analyzed. Based on the above embodiment, the above S103 also includes the following steps:
[0108] According to the data acquisition range, the data to be analyzed is acquired from the file to be analyzed.
[0109] Exemplarily, the data acquisition range may be at least one of the data length of the data to be analyzed, the time range of the data to be analyzed, and the position of the data to be analyzed in the file to be analyzed. The position of the data to be analyzed in the file to be analyzed may include the starting position and the ending position of the data to be analyzed in the file to be analyzed.
[0110] Optionally, the data to be analyzed can be obtained from the file to be analyzed in the following manner: if the data acquisition range is the data length of the data to be analyzed, the file to be analyzed can be determined based on the storage path of the data to be analyzed, and data of the data length can be randomly obtained from the file to be analyzed to obtain the data to be analyzed. Alternatively, if the data acquisition range is the time range of the data to be analyzed, the file to be analyzed can be determined based on the storage path of the data to be analyzed, and data within the time range can be obtained from the file to be analyzed to obtain the data to be analyzed. Alternatively, if the data acquisition range is the data length of the data to be analyzed and the preset position in the file to be analyzed, the file to be analyzed can be determined based on the storage path of the data to be analyzed, and data of the data length can be obtained from the preset position in the file to be analyzed to obtain the data to be analyzed.
[0111] In a possible implementation, the file to be analyzed may be stored in a disk and / or in a memory.
[0112] In the embodiment of the present application, the file to be analyzed is determined based on the storage path of the data to be analyzed, and then the data to be analyzed is obtained from the file to be analyzed according to the data acquisition range, so that the file to be analyzed can be directly located according to the storage path of the data to be analyzed, thereby improving the accuracy of determining the file to be analyzed, and obtaining part of the data from the file to be analyzed as the data to be analyzed can reduce the amount of data in the data analysis process and improve the efficiency of data analysis.
[0113] The file to be analyzed includes multiple different data to be analyzed. Figure 3 , Figure 3 : is a flow chart of a method for obtaining analysis results provided in an embodiment of the present application. Based on the above embodiment, the method further includes the following steps:
[0114] S301, executing any of the above data analysis methods in parallel for each data to be analyzed.
[0115] In the embodiment of the present application, multiple data analysis engines can be respectively used as a computing unit, and multiple different data to be analyzed can be processed in parallel by each computing unit.
[0116] S302: Merge data analysis results obtained from a plurality of different data to be analyzed to obtain analysis results of the file to be analyzed.
[0117] In one embodiment, referring to Figure 4 , Figure 4 is a schematic diagram of the first parallel processing method provided in the embodiment of the present application. Figure 4 As shown, multiple different data to be analyzed can be processed in parallel by each computing unit to obtain corresponding data analysis results, and then the data analysis results are merged in parallel by multiple merging units in the process pool pool to obtain multiple intermediate analysis results, and finally the multiple intermediate analysis results are merged to obtain the analysis result of the file to be analyzed.
[0118] In one embodiment, referring to Figure 5 , Figure 5 is a schematic diagram of a second parallel processing method provided in an embodiment of the present application. Figure 5 As shown, each computing unit can process a plurality of different data to be analyzed in parallel to obtain corresponding data analysis results, and then merge the data analysis results to obtain the analysis result of the file to be analyzed.
[0119] In one embodiment, referring to Figure 6 , Figure 6 is a schematic diagram of a third parallel processing method provided in an embodiment of the present application. Figure 6 As shown, each computing unit can process multiple different data to be analyzed in parallel to obtain corresponding data analysis results, and each data analysis result can be stored in a cache. Then, a merging unit can obtain each data analysis result from the cache and merge them in parallel to obtain multiple intermediate analysis results. Finally, the multiple intermediate analysis results can be merged to obtain the analysis result of the file to be analyzed.
[0120] In one embodiment, referring to Figure 7 , Figure 7 is a schematic diagram of a third parallel processing method provided in an embodiment of the present application. Figure 7As shown, each computing unit can process multiple different data to be analyzed in parallel to obtain corresponding data analysis results, and store each data analysis result in a cache. Then, each data analysis result is obtained from the cache and merged to obtain the analysis result of the file to be analyzed.
[0121] In an embodiment of the present application, any of the above-mentioned data analysis methods is executed in parallel for each data to be analyzed, and the data analysis results obtained for multiple different data to be analyzed are merged to obtain the analysis results of the file to be analyzed, so that different data to be analyzed can be processed in parallel by multiple computing units, thereby improving the work efficiency of data analysis.
[0122] Reference Figure 8 , Figure 8 : is a flowchart of a method for real-time analysis of recommendation data provided by an embodiment of the present application. The method comprises the following steps:
[0123] S801, obtaining processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed.
[0124] S802: Based on the storage path corresponding to the data to be analyzed and the logical processing template identifier in the indication information, the data to be analyzed and the logical processing template corresponding to the data to be analyzed are obtained.
[0125] S803: When load_check=true in the indication information, the processing parameters are checked according to the logic processing template.
[0126] S804, when the processing parameters include each parameter required in the logic processing template, the processing parameters are written into the logic processing template to obtain an analysis file.
[0127] S805, when load_check=true in the indication information, obtain field overview information corresponding to the data to be analyzed, and verify the data to be analyzed according to the field overview information.
[0128] S806, when it is determined that the data to be analyzed has no abnormality according to the field overview information verification, the data to be analyzed is analyzed based on the analysis file to obtain a data analysis result.
[0129] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0130] Based on the same inventive concept, the embodiment of the present application also provides a code development device for implementing the data analysis system involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more code development device embodiments provided below can refer to the limitations on the data analysis system above, and will not be repeated here.
[0131] In one embodiment, Fig. 9 As shown, Fig. 9 900 is a structural block diagram of a data analysis system provided in an embodiment of the present application. The system 900 includes:
[0132] The start module 901 is used to obtain processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed, and determine the logic processing template corresponding to the data to be analyzed from the logic processing template library according to the logic processing template identifier, and obtain the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed;
[0133] The execution module 902 is used to write the processing parameters into the logic processing template to obtain an analysis file, and analyze the data to be analyzed based on the analysis file to obtain a data analysis result.
[0134] In one embodiment, the system 900 further includes:
[0135] Verification module 903, used to verify processing parameters according to the logic processing template;
[0136] The execution module 902 is further used to write the processing parameters into the logical processing template to obtain the analysis file if the processing parameters include each parameter required in the logical processing template.
[0137] In one embodiment, the verification module 903 is further used to obtain field overview information corresponding to the data to be analyzed, and verify the data to be analyzed according to the field overview information;
[0138] The execution module 902 is further configured to analyze the data to be analyzed based on the analysis file to obtain a data analysis result when it is determined that the data to be analyzed has no abnormality according to the field overview information verification.
[0139] The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and / or the field type in the data to be analyzed matches the field type indicated in the field overview information.
[0140] In one embodiment, the startup module 901 is further used to obtain the data to be analyzed from the file to be analyzed according to the data acquisition range.
[0141] In one embodiment, the data analysis system 900 further includes an optimization module 904;
[0142] The optimization module 904 is used to analyze the data to be analyzed in parallel through any of the above data analysis systems, and merge the data analysis results obtained from multiple different data to be analyzed to obtain the analysis results of the file to be analyzed.
[0143] Each module in the above data analysis system can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0144] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0145] Acquire processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed; the indication information of the data to be analyzed includes a logic processing template identifier corresponding to the data to be analyzed and a storage address of the data to be analyzed;
[0146] According to the logic processing template identifier, determine the logic processing template corresponding to the data to be analyzed from the logic processing template library;
[0147] Acquire the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed;
[0148] Writing processing parameters into a logic processing template to obtain an analysis file;
[0149] The data to be analyzed is analyzed based on the analysis file to obtain a data analysis result.
[0150] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0151] Verify processing parameters according to the logical processing template;
[0152] When it is determined that the processing parameters include each parameter required in the logic processing template, the processing parameters are written into the logic processing template to obtain an analysis file.
[0153] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0154] Obtain the field overview information corresponding to the data to be analyzed, and verify the data to be analyzed based on the field overview information;
[0155] When it is determined that the data to be analyzed is normal according to the field overview information verification, the data to be analyzed is analyzed based on the analysis file to obtain the data analysis result;
[0156] The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and / or the field type in the data to be analyzed matches the field type indicated in the field overview information.
[0157] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0158] According to the data acquisition scope, the data to be analyzed is acquired from the file to be analyzed;
[0159] The data acquisition scope may include any of the following:
[0160] The data length of the data to be analyzed;
[0161] The starting and ending positions of the data to be analyzed;
[0162] The data length and starting position of the data to be analyzed.
[0163] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0164] Execute the data analysis method in any of the above steps in parallel for each data to be analyzed;
[0165] The data analysis results obtained from a plurality of different data to be analyzed are merged to obtain the analysis result of the file to be analyzed.
[0166] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0167] Acquire processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed; the indication information of the data to be analyzed includes a logic processing template identifier corresponding to the data to be analyzed and a storage address of the data to be analyzed;
[0168] According to the logic processing template identifier, determine the logic processing template corresponding to the data to be analyzed from the logic processing template library;
[0169] Acquire the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed;
[0170] Writing processing parameters into a logic processing template to obtain an analysis file;
[0171] The data to be analyzed is analyzed based on the analysis file to obtain a data analysis result.
[0172] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0173] Verify processing parameters according to the logical processing template;
[0174] When it is determined that the processing parameters include each parameter required in the logic processing template, the processing parameters are written into the logic processing template to obtain an analysis file.
[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0176] Obtain the field overview information corresponding to the data to be analyzed, and verify the data to be analyzed based on the field overview information;
[0177] When it is determined that the data to be analyzed is normal according to the field overview information verification, the data to be analyzed is analyzed based on the analysis file to obtain the data analysis result;
[0178] The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and / or the field type in the data to be analyzed matches the field type indicated in the field overview information.
[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0180] According to the data acquisition scope, the data to be analyzed is acquired from the file to be analyzed;
[0181] The data acquisition scope may include any of the following:
[0182] The data length of the data to be analyzed;
[0183] The starting and ending positions of the data to be analyzed;
[0184] The data length and starting position of the data to be analyzed.
[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0186] Execute the data analysis method in any of the above steps in parallel for each data to be analyzed;
[0187] The data analysis results obtained from a plurality of different data to be analyzed are merged to obtain the analysis result of the file to be analyzed.
[0188] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0189] Acquire processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed; the indication information of the data to be analyzed includes a logic processing template identifier corresponding to the data to be analyzed and a storage address of the data to be analyzed;
[0190] According to the logic processing template identifier, determine the logic processing template corresponding to the data to be analyzed from the logic processing template library;
[0191] Acquire the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed;
[0192] Writing processing parameters into a logic processing template to obtain an analysis file;
[0193] The data to be analyzed is analyzed based on the analysis file to obtain a data analysis result.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] Verify processing parameters according to the logical processing template;
[0196] When it is determined that the processing parameters include each parameter required in the logic processing template, the processing parameters are written into the logic processing template to obtain an analysis file.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] Obtain the field overview information corresponding to the data to be analyzed, and verify the data to be analyzed based on the field overview information;
[0199] When it is determined that the data to be analyzed is normal according to the field overview information verification, the data to be analyzed is analyzed based on the analysis file to obtain the data analysis result;
[0200] The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and / or the field type in the data to be analyzed matches the field type indicated in the field overview information.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0202] According to the data acquisition scope, the data to be analyzed is acquired from the file to be analyzed;
[0203] The data acquisition scope may include any of the following:
[0204] The data length of the data to be analyzed;
[0205] The starting and ending positions of the data to be analyzed;
[0206] The data length and starting position of the data to be analyzed.
[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0208] Execute the data analysis method in any of the above steps in parallel for each data to be analyzed;
[0209] The data analysis results obtained from a plurality of different data to be analyzed are merged to obtain the analysis result of the file to be analyzed.
[0210] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0211] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0212] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data analysis method, characterized in that: The method comprises: Acquire processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed; the indication information of the data to be analyzed includes a logic processing template identifier corresponding to the data to be analyzed and a storage address of the data to be analyzed; Determining the logic processing template corresponding to the data to be analyzed from a logic processing template library according to the logic processing template identifier; Acquire the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed; Writing the processing parameters into the logic processing template to obtain an analysis file; The data to be analyzed is analyzed based on the analysis file to obtain a data analysis result.
2. The method according to claim 1, characterized in that The step of writing the processing parameters into the logic processing template to obtain an analysis file includes: Verifying the processing parameters according to the logic processing template; When it is determined that the processing parameters include each parameter required in the logic processing template, the processing parameters are written into the logic processing template to obtain an analysis file.
3. The method according to claim 1, characterized in that After obtaining the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed, the method further includes: Obtaining field overview information corresponding to the data to be analyzed, and verifying the data to be analyzed according to the field overview information; The analyzing the data to be analyzed based on the analysis file to obtain a data analysis result includes: When it is determined that the data to be analyzed has no abnormality according to the field overview information verification, the data to be analyzed is analyzed based on the analysis file to obtain a data analysis result; The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and the field type in the data to be analyzed matches the field type indicated in the field overview information.
4. The method according to claim 1, characterized in that: The indication information of the data to be analyzed includes: a data acquisition range corresponding to the data to be analyzed; The acquiring the data to be analyzed from the file to be analyzed indicated by the storage address of the data to be analyzed includes: Acquire the data to be analyzed from the file to be analyzed according to the data acquisition range; The data acquisition scope may include any of the following: The data length of the data to be analyzed; The starting position and ending position of the data to be analyzed; The data length and starting position of the data to be analyzed.
5. The method according to claim 4, characterized in that The file to be analyzed includes a plurality of different data to be analyzed, and the method further includes: Execute the data analysis method according to any one of claims 1 to 4 in parallel for each data to be analyzed; The data analysis results obtained from a plurality of different data to be analyzed are combined to obtain the analysis result of the file to be analyzed.
6. A data analysis system, characterized in that: The data analysis system comprises: A startup module, used to obtain processing parameters corresponding to the data to be analyzed and indication information of the data to be analyzed, and based on the indication information of the data to be analyzed, obtain the data to be analyzed and a logic processing template corresponding to the data to be analyzed; The execution module is used to write the processing parameters into the logic processing template to obtain an analysis file, and analyze the data to be analyzed based on the analysis file to obtain a data analysis result.
7. The data analysis system according to claim 6, characterized in that: The data analysis system further comprises: A verification module, used for verifying the processing parameters according to the logic processing template; The execution module is further configured to write the processing parameters into the logic processing template to obtain an analysis file if it is determined that the processing parameters include each parameter required in the logic processing template.
8. The data analysis system according to claim 6, characterized in that: After acquiring the data to be analyzed and the logic processing template corresponding to the data to be analyzed based on the indication information of the data to be analyzed, The verification module is further used to obtain field overview information corresponding to the data to be analyzed, and verify the data to be analyzed according to the field overview information; The execution module is further configured to analyze the data to be analyzed based on the analysis file to obtain a data analysis result when it is determined that the data to be analyzed has no abnormality according to the field overview information verification; The data to be analyzed having no abnormality includes: the data to be analyzed includes all field data indicated by the field overview information, and the field type in the data to be analyzed matches the field type indicated in the field overview information.
9. The data analysis system according to claim 6, characterized in that: The indication information of the data to be analyzed includes: a data acquisition range corresponding to the data to be analyzed, and a storage path corresponding to the data to be analyzed; The startup module is further configured to determine a file to be analyzed based on a storage path of the data to be analyzed, and obtain the data to be analyzed from the file to be analyzed according to the data acquisition range.
10. The data analysis system according to claim 9, characterized in that: The file to be analyzed includes a plurality of different data to be analyzed, and the data analysis system further includes an optimization module; The optimization module is used to analyze the data to be analyzed in parallel through the data analysis system according to any one of claims 6 to 9, and merge the data analysis results obtained from multiple different data to be analyzed to obtain the analysis result of the file to be analyzed.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 5 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.
