A method and device for data association analysis
Through the combination of Flink engine and core operators, it solves the high delay and low throughput problems of traditional data processing under massive data and heterogeneous data, and realizes efficient data correlation analysis, which is suitable for a variety of data business needs.
Patent Information
- Application Number
- CN202011444599.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-08
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-12-08
AI Technical Summary
Traditional data processing methods have problems of high latency and low throughput when faced with massive and heterogeneous multi-dimensional data, and cannot meet the needs of correlation analysis of massive data.
Adopt the data association analysis method based on the Flink engine, realize custom configuration by encapsulating core operators, use conversion, filtering, aggregation, connection, splicing, dimension table association and other operators for data processing, generate distributed data streams, and achieve high throughput , low-latency correlation analysis.
It improves the efficiency and capabilities of data correlation analysis, can adapt to various correlation analysis data business needs, and supports the processing of multiple data sources and complex data structures.
Smart Images

Figure CN112434022B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a method and device for data association analysis. Background Art
[0002] With the advent of the information age, network data has shown explosive growth, and a large amount of data has become the most valuable asset in the information age.
[0003] At present, traditional data processing is mainly based on relational databases. However, in the face of massive data, the processing capacity of traditional data processing methods is limited. In the face of heterogeneous data and multi-dimensional data, the collection, analysis and processing of traditional data processing methods have high latency and low throughput. Therefore, it is unable to meet the needs of data association analysis in the case of massive data. Summary of the invention
[0004] The purpose of the present invention is to provide a method and device for data association analysis. The method for data association analysis can independently encapsulate core operators and realize custom configuration of operators.
[0005] In order to achieve the above object, the first aspect of the present invention discloses a method for data association analysis, which implements data association analysis based on a Flink engine, wherein the Flink engine includes multiple core operators;
[0006] The method comprises:
[0007] Process the input raw data stream to generate a distributed data stream;
[0008] The data streams are respectively subjected to correlation analysis through a single core operator or a combination of core operators, and the correlation analysis results are output.
[0009] Further, the core operator includes: at least one of a conversion operator, a filter operator, an aggregation operator, a set decomposition operator, a connection operator, a splicing operator, a dimension table association operator and a diversion operator;
[0010] The conversion rule of the conversion operator includes at least one of a mapping rule, a new addition rule, a splicing rule, a truncation rule, and an operation rule;
[0011] The filter operator includes: filter rules;
[0012] The set decomposition operator includes: set decomposition rule;
[0013] The connection operator includes: connection rules;
[0014] Aggregation operators include: fold attributes and common attributes. The fold attributes include: quantity, sum, average, maximum, minimum and string connection. The common attributes include: four arithmetic operations, data concatenation and data interception.
[0015] The splicing operator includes: splicing rules;
[0016] Dimension table association operators include: dimension table association rules;
[0017] The diversion operator includes: a diversion logic tree.
[0018] Furthermore, the data streams are respectively subjected to correlation analysis through a single core operator, and the correlation analysis results are output, including:
[0019] According to the conversion rule of the conversion operator, the first data stream is converted by the conversion operator to obtain a second data stream, wherein the attribute of the first data stream is the same as the attribute of the second data stream; and / or
[0020] According to the filtering rule, converting the third data stream into a fourth data stream via the filtering operator;
[0021] The filtering rule is to perform a logical operation according to a logic tree of the attributes of the third data stream. If the operation result is true, the third data stream is converted into a fourth data stream. The logical operation supports a single or multiple AND, OR, and NOT logical combination operations.
[0022] Furthermore, the data streams are respectively subjected to correlation analysis through a single core operator, and the correlation analysis results are output, including:
[0023] Merging several data streams to be aggregated into a fifth data stream via the aggregation operator; and / or
[0024] Merging the sixth data stream and the seventh data stream into an eighth data stream via the concatenation operator, wherein the data type of the sixth data stream is the same as the data type of the seventh data stream; and / or
[0025] The ninth data stream is subjected to data filtering through the logic tree of the diversion operator, and the filtered data is added to the corresponding data stream by matching the logic tree.
[0026] Furthermore, the data streams are respectively subjected to correlation analysis through a single core operator, and the correlation analysis results are output, including:
[0027] According to attribute diversion, the tenth data stream is decomposed into a plurality of sub-data streams via the set decomposition operator, and a multi-level complex data stream structure is converted into a single-level data stream structure, which is beneficial to data analysis and use; and / or
[0028] According to keyword matching, the multiple data streams to be connected are connected into an eleventh data stream via the connection operator; and / or
[0029] According to the field attribute keyword of the twelfth data stream and the keyword of the thirteenth data stream, the twelfth data stream and the thirteenth data stream are associated and matched via the dimension table association operator to obtain analysis data;
[0030] Among them, the twelfth data stream is a real-time data stream, and the thirteenth data stream is a static data stream.
[0031] Furthermore, the data stream is subjected to correlation analysis through a core operator combination, and the correlation analysis result is output, including:
[0032] The data stream is processed in sequence by a plurality of core operators in the core operator combination to obtain a target data stream as a correlation analysis result.
[0033] Furthermore, the association analysis method further includes: operating the core operator using a graphical interface to configure association analysis rules, outputting multiple data and / or corresponding business data output;
[0034] The operation is to use graphical arrows to represent the core operator to complete the association analysis operation on the data;
[0035] The original data includes multiple original data sources and multi-level data structure original data; the graphical interface includes multiple operable data attachments, and the data attachments include a data filtering component and a core operator attachment corresponding to each core operator;
[0036] The data attachments can be added to the processed data, and the data attachments include: window attachments, keyword attachments and dimension table attachments, which are used for operator operations to perform data conversion;
[0037] The data filtering component can realize the splicing of multiple complex filtering components and is used for filtering conditional expressions, filtering resource reference expressions and filtering dimension table conditions.
[0038] The present invention discloses a device for data association analysis, which implements data association analysis based on a Flink engine. The Flink engine includes multiple core operators. The device includes:
[0039] The processing module is used to process the input raw data stream and generate a distributed data stream;
[0040] The analysis module is used to perform correlation analysis on the data streams through a single core operator or a combination of core operators, and output the correlation analysis results.
[0041] The present invention discloses an electronic device, comprising: a processor, a memory and a bus, wherein the processor and the memory communicate with each other through the bus;
[0042] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute any of the above-mentioned data association analysis methods.
[0043] The present invention discloses a computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, such as any of the above-mentioned methods for data association analysis.
[0044] The data association analysis method and device of the present invention can collect multiple different types of raw data at the same time, use the Flink processing engine to obtain distributed data streams, independently encapsulate core operators, implement a solution for custom combination operator configuration, perform association analysis through a single core operator or a combination of core operators, and output association analysis results. This method improves the association analysis data capability and data analysis efficiency during the association analysis process, and can be applicable to the needs of various association analysis data services. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of the flow of the data association analysis method provided by the present invention;
[0046] Figure 2 A schematic diagram of the operator state provided by the present invention;
[0047] Figure 3 A schematic diagram of the configuration of the graphical interface of the association analysis rules provided by the present invention;
[0048] Figure 4 A structural block diagram of the device for data association analysis provided by the present invention;
[0049] Figure 5 This is a structural block diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0050] The following embodiments of the present invention are described in further detail in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention but are not intended to limit the scope of the present invention.
[0051] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiments of the present invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0052] A method for data association analysis according to an embodiment of the present invention is described below with reference to the accompanying drawings.
[0053] Figure 1 FIG. 1 is a principle block diagram of a method for data association analysis according to an embodiment of the present invention. Figure 1 As shown, according to a method for data association analysis according to an embodiment of the present invention, data association analysis is implemented based on a Flink engine, and the Flink engine includes multiple core operators; the method includes:
[0054] S101, processing the input original data stream to generate a distributed data stream;
[0055] S102: Perform correlation analysis on the data streams using a single core operator or a combination of core operators, and output correlation analysis results.
[0056] Specifically, the embodiment of the present invention uses the Flink engine to implement data association analysis. As a new generation of stream computing processing engine, the Flink engine also follows the concept of layered architecture design in its architecture system, which is basically divided into three layers: the API & Libraries layer, the Runtime core layer, and the physical deployment layer. Among them, the API & Libraries layer provides interfaces to support stream computing and batch computing, and abstracts component libraries of different application types on this basis. The Runtime core layer is responsible for providing basic services for different interfaces of the upper layer, supporting the execution of distributed Stream jobs, mapping conversion from Job Graph to Execution Graph, task scheduling, etc., and converting DataStream and DataSet into a unified executable Task Operator. Physical deployment layer: Flink supports multiple deployment modes, local, cluster (Standalone / YARN), cloud (GCE / EC2), and Kubenetes. On top of the stream processing engine, Flink has the following mechanisms: checkpoint mechanism and state mechanism: used to achieve fault-tolerant and stateful processing; watermark mechanism: used to implement event clocks; windows and triggers: used to limit the scope of calculation and define the time to present results. On top of the same stream processing engine, Flink also has another set of mechanisms for efficient batch processing. Backtracking for scheduling and recovery: introduced by Microsoft Dryad; special memory data structures for hashing and sorting: can overflow part of the data from memory to the hard disk when needed; optimizer: shorten the time to generate results as much as possible. The two mechanisms correspond to their own APIs (DataStream API and DataSet API).
[0057] The Flink engine based on the above architecture and mechanism has batch processing operations on static data, abstracting static data into distributed data sets. Users can easily use various operators provided by Flink to process distributed data sets. It supports Java, Scala, and Python. It performs stream processing operations on data streams, abstracts streaming data into distributed data streams, and users can easily perform various operations on distributed data streams. It supports Java and Scala. It performs query operations on structured data, abstracts structured data into relational tables, and performs various query operations on relational tables through SQL-like DSL. It supports Java and Scala. It supports high-throughput, low-latency, and high-performance stream processing. It supports Exactly-once semantics for stateful computing. It supports window operations with event time and highly flexible window operations, and supports window operations based on time, count, session, and data-driven. It supports continuous stream models with Backpressure functions. It supports fault tolerance based on lightweight distributed snapshots. One runtime supports both Batch on Streaming processing and Streaming processing. Flink implements its own memory management inside the JVM. The Flink engine of the embodiment of the present invention includes multiple core operators, which greatly improves the ability of data association analysis and can realize the analysis and calculation capabilities of multiple operators on data. Since the Flink engine is adopted, the embodiment of the present invention can simultaneously collect data in multiple formats, including data in different forms, such as: static storage data, streaming real-time data, and can extract, transmit and format heterogeneous data formats and complex data formats according to corresponding rules. After the collected data is processed by the Flink engine, a distributed data stream is obtained, which is convenient for users to operate on the distributed data stream. In the embodiment of the present invention, the obtained distributed data stream is subjected to association analysis through a single core operator or a combination of core operators, and the association analysis results are output.
[0058] The data association analysis method of the embodiment of the present invention adopts the Flink engine to implement data association analysis, which can complete distributed, high-throughput, low-latency, and high-performance stream processing, thereby improving the efficiency of data calculation and data analysis during the association analysis process.
[0059] The embodiment of the present invention also includes a method for data association analysis, which implements data association analysis based on the Flink engine, and the Flink engine includes multiple core operators; the method includes: processing the input original data stream to generate a distributed data stream; performing association analysis on the data stream through a single core operator or a combination of core operators, and outputting the association analysis result. For a detailed explanation of the aforementioned features, please refer to the aforementioned embodiment, which will not be repeated here.
[0060] Optionally, the core operators of the data association analysis method of the embodiment of the present invention include: at least one of a conversion operator (map operator) 201, a filter operator (filter operator) 202, an aggregation operator (aggregation operator) 203, a splice operator (splice operator) 204, a diversion operator (diversion operator) 205, a set decomposition operator (flatmap operator) 206, a connection operator (join operator) 207 and a dimension table association operator (dimensiontable operator) 208; wherein the conversion rule of the conversion operator (map operator) 201 includes at least one of a mapping rule, a new addition rule, a connection rule, a truncation rule, and an operation rule; the filter operator (filter operator) 202 includes: a filtering rule; the set decomposition operator (flatmap operator) 206 includes: a set decomposition rule; the connection operator (join operator) 207 includes: a connection rule; the aggregation operator (aggregation operator) operator) 203 includes: fold attributes and common attributes, the fold attributes include: quantity, sum, average, maximum value, minimum value and string connection, the common attributes include: four arithmetic operations, data splicing and data interception; the splicing operator (splice operator) 204 includes: splicing rules; the dimension table association operator (dimension table operator) 208 includes: dimension table association rules; the diversion operator (diversion operator) 205 includes: diversion logic tree. According to the conversion rule of the conversion operator (map operator) 201, the first data stream is converted through the conversion operator (map operator) 201 to obtain a second data stream, wherein the attributes of the first data stream are the same as the attributes of the second data stream; and / or according to the filtering rule, the third data stream is converted into a fourth data stream through the filter operator (filter operator) 202; wherein the filtering rule is to perform a logical operation according to a logic tree of the attributes of the third data stream, and if the obtained operation result is true, the third data stream is converted into a fourth data stream, and the logical operation is a combination operation supporting a single or multiple AND or NOT logics.Merge several data streams to be aggregated into a fifth data stream via the aggregation operator 203; and / or merge the sixth data stream and the seventh data stream into an eighth data stream via the splicing operator 204, wherein the data type of the sixth data stream is the same as the data type of the seventh data stream; and / or filter the ninth data stream via the logic tree of the diversion operator 205, and add the filtered data to the corresponding data stream by matching the logic tree. According to attribute diversion, the tenth data stream is decomposed into several sub-data streams via the flatmap operator 206, and the multi-level complex data stream structure is converted into a single-level data stream structure, which is conducive to data analysis and use; and / or according to keyword matching, the multiple data streams to be connected are connected into an eleventh data stream via the join operator 207; and / or according to the field attribute keyword of the twelfth data stream and the keyword matching of the thirteenth data stream, the twelfth data stream and the thirteenth data stream are associated and matched via the dimension table association operator 208 to obtain analysis data; wherein the twelfth data stream is a real-time data stream, and the thirteenth data stream is a static data stream. The data streams are processed in turn by multiple core operators in the core operator combination to obtain the target data stream as the association analysis result.
[0061] Specifically, Figure 2As shown, the core operators of the embodiment of the present invention include: at least one of a conversion operator (map operator) 201, a filter operator (filter operator) 202, a set decomposition operator (flatmap operator) 206, a connection operator (join operator) 207, an aggregation operator (aggregation operator) 203, a splice operator (splice operator) 204, a dimension table association operator (dimension table operator) 208 and a diversion operator (diversion operator) 205; the embodiment of the present invention uses a single core operator to perform association analysis and output association analysis results, specifically including the following situations: using the conversion operator (map operator) 201 to perform association analysis, the conversion rule of the conversion operator (map operator) 201 includes at least one of a mapping rule, a new addition rule, a splicing rule, a truncation rule, and an operation rule; using the conversion operator (map operator) 201 to convert the first data stream into the second data stream, wherein the attributes of the second data stream are obtained according to the attributes of the first data stream; using the filter operator (filter operator) 202 to perform association analysis, the filter operator (filter operator) operator) 202 includes filtering rules; the embodiment of the present invention utilizes the filtering rules of the filter operator 202, and the embodiment of the present invention can perform logical operations on the logic tree of the attributes of the third data stream, wherein the logical operations include: AND operations, NOT operations and OR operations, and when the result of the logical operations is true, the third data stream is added to the fourth data stream; an aggregation operator 203 is used for association analysis, and the aggregation operator 203 includes: fold attributes and common attributes, and the fold attributes include: quantity, sum, average value, maximum value, minimum value and string connection, and the common attributes include: four arithmetic operations, data splicing and data interception; the embodiment of the present invention supports merging several data streams to be aggregated in a logical group or window into a fifth data stream via the aggregation operator 203; a splicing operator 204 is used for association analysis, and the splicing operator 204 includes: splicing rules, and the embodiment of the present invention can combine the sixth data stream and the seventh data stream via the splicing operator operator) 204 to form an eighth data stream, the data type of the sixth data stream is the same as the data type of the seventh data stream;A diversion operator is used for association analysis. The diversion operator 205 includes: a diversion logic tree. The embodiment of the present invention is used to add diversion. In the diversion, the logic tree is applied to filter the ninth data, and the data matching the logic tree is added to the corresponding diversion; a set decomposition operator 206 is used for association analysis. The set decomposition operator 206 is used for association analysis. The set decomposition operator 206 includes a set decomposition rule. When a certain attribute in the tenth data stream is N set attributes, after selecting this attribute, the stream can be decomposed according to the attribute, and the tenth data stream is decomposed into N data streams. The multi-level complex data structure is disassembled into a flat data structure. Attribute mapping can be used. The attribute mapping supports the attributes of the ninth data stream and the attributes of the objects in the set attributes; a connection operator 207 is used for association analysis. The connection operator 207 includes a connection rule, which is used to connect two or more streams in the window. The connection is matched by keywords. In this embodiment, multiple data streams to be connected are connected to the eleventh data stream via the join operator 207, wherein the number of data streams to be connected is at least two, which is not specifically limited here. A dimension table association operator 208 is used for association analysis, and the dimension table association operator 208 includes a dimension table association operator 208 rule, and according to the field attribute keyword of the twelfth data stream and the keyword of the thirteenth data stream, the twelfth data stream and the thirteenth data stream are matched via the dimension table association operator 208 to obtain analysis data; wherein the twelfth data stream is a real-time data stream, and the thirteenth data stream is a static data stream. ;
[0062] The data stream can be processed in turn by multiple core operators in the above core operator combination to obtain the target data stream as the association analysis result. Among them, according to the number of core operators used, the combination of core operators includes multiple ways, and the embodiment of the present invention only takes one of them as an example. This embodiment adopts a combination of a conversion operator (map operator) 201 and a filter operator (filter operator) 202, which can convert the first data stream into the second data stream and add the third data stream to the fourth data stream.
[0063] The data association analysis method of the embodiment of the present invention performs association analysis through a single core operator or a combination of core operators, thereby improving the ability of association analysis data and being applicable to the needs of various association analysis data services.
[0064] The embodiment of the present invention also includes a method for data association analysis, which implements data association analysis based on the Flink engine, and the Flink engine includes multiple core operators; the method includes: processing the input original data stream to generate a distributed data stream; performing association analysis on the data stream through a single core operator or a combination of core operators, and outputting the association analysis result. For a detailed explanation of the aforementioned features, please refer to the aforementioned embodiment, which will not be repeated here.
[0065] Optionally, a graphical interface is used to operate the core operator to configure association analysis rules and output multiple data and / or corresponding business data outputs; the operation is to use a graphical arrow to represent the core operator to complete the association analysis operation on the data; the original data includes multiple original data sources and multi-level data structure original data; the graphical interface includes multiple operable data attachments, and the data attachments include data filtering components and core operator attachments corresponding to each core operator; the data attachments can be added to the processed data, and the data attachments include: window attachments, keyword attachments and dimension table attachments, which are used for operator operations to perform data conversion; the data filtering component can realize the splicing of multiple complex filtering components, which is used for conditional expression screening, resource reference expression screening and dimension table condition screening.
[0066] Specifically, in order to simplify the configuration process, the embodiment of the present invention provides a graphical configuration interface. By accessing the corresponding original data source, the configuration interface supports the configuration of various original data sources; supports multi-level data structure original data, and the 8 core operators of the above embodiment are represented by graphical arrows to complete the association analysis operation on the data. At the same time, the configuration interface supports adding corresponding data attachments (data attach) on the processed data. The attachments of the embodiment of the present invention include window attachments (rolling window attachments, sliding window attachments, quantity attachments, session window attachments), keyword attachments, and dimension table attachments. Through these attachments, data conversion is performed on the data when the operator operation is performed. The configuration interface also includes a filtering data component, which supports the splicing of multiple complex filtering components; supports the screening of conditional expressions; supports the screening of resource reference expressions; and supports dimension table condition screening. For the business data processed as above, the configuration interface supports multiple data outputs and supports the output of corresponding business data. Specifically, this embodiment can realize the semantics of the performance monitoring rules of the switch. Within the specified time, if the total number of abnormalities of the switch port exceeds the preset threshold, the rule is triggered and an alarm is generated. The alarm data is required to include the total number of abnormal ports, which ports are abnormal, and the flow of the abnormal ports (switchport:flowvalue). The method for implementing the correlation analysis configuration using this embodiment is as follows: Figure 3 As shown in the figure, through graphical configuration, the set decomposition operator, conversion operator, splicing operator and filtering operator are used to complete the configuration of association analysis rules.
[0067] The data association analysis method of this embodiment configures association analysis rules through a graphical custom interface to analyze data, improve association analysis capabilities, and meet various association analysis data result requirements.
[0068] Furthermore, an embodiment of the present invention provides a device for data association analysis, wherein the device implements data association analysis based on a Flink engine, wherein the Flink engine includes multiple core operators. Figure 4 4 is a structural block diagram of a device for data association analysis provided by an embodiment of the present invention, wherein the device comprises: a processing module 401, which is used to process the input original data stream to generate a distributed data stream; an analysis module 402, which is used to perform association analysis on the data stream through a single core operator or a combination of core operators, and output the association analysis result.
[0069] Specifically, the processing module 401 simultaneously collects data in multiple formats, including data in different forms, such as static storage data, streaming real-time data, and can extract, transmit and format heterogeneous data formats and complex data formats according to corresponding rules. After the collected data is processed by the Flink engine, a distributed data stream is obtained, which is convenient for users to operate on the distributed data stream. In the analysis module 402, the distributed data stream obtained by the processing module is subjected to correlation analysis through a single core operator or a combination of core operators, and the correlation analysis results are output.
[0070] The device for data association analysis in the embodiment of the present invention adopts the Flink engine to implement data association analysis, which can complete distributed, high-throughput, low-latency, and high-performance stream processing, thereby improving the efficiency of data calculation and data analysis during the association analysis process.
[0071] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, see Figure 5 , the electronic device specifically includes the following contents: a processor 501, a memory 502, a communication interface 503 and a communication bus 504;
[0072] The processor 501, the memory 502, and the communication interface 503 communicate with each other through the communication bus 504; the communication interface 503 is used to realize information transmission between various devices;
[0073] The processor 501 is used to call the computer program in the memory 502. When the processor executes the computer program, all steps of the curve generation method on the three-dimensional mesh surface are implemented. For example, when the processor executes the computer program, the following steps are implemented: processing the input original data stream to generate a distributed data stream; performing association analysis on the data streams through a single core operator or a combination of core operators, and outputting the association analysis results.
[0074] In addition, other structures and functions of the electronic device according to the embodiment of the present invention are known to ordinary technicians in the field and are not described in detail here.
[0075] Based on the same inventive concept, another embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, all the steps of the curve generation method on the above-mentioned three-dimensional mesh surface are implemented. For example, when the processor executes the computer program, the following steps are implemented: processing the input original data stream to generate a distributed data stream; performing association analysis on the data streams through a single core operator or a combination of core operators, and outputting the association analysis results.
[0076] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0077] Although the present invention has been described in detail above with general descriptions and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements may be made thereto based on the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all fall within the scope of protection claimed by the present invention.
Claims
1. A method for data association analysis, characterized in that: Implementing data association analysis based on the Flink engine, where the Flink engine includes multiple core operators; The method comprises: Processing the input raw data stream to generate a distributed data stream, wherein the raw data stream is data in multiple formats collected simultaneously, and extracting, transmitting and formatting heterogeneous data formats and complex data formats according to corresponding rules; The data streams are respectively subjected to correlation analysis by a single core operator or a combination of core operators, and the correlation analysis results are output; wherein the combination of core operators includes multiple modes according to the number of core operators used; The core operator includes: at least one of a conversion operator, a filter operator, an aggregation operator, a splicing operator, a shunt operator, a set decomposition operator, a connection operator and a dimension table association operator; The conversion rule of the conversion operator includes at least one of a mapping rule, a new addition rule, a splicing rule, a truncation rule, and an operation rule; The filter operator includes: filter rules; The set decomposition operator includes: set decomposition rule; The connection operator includes: connection rules; Aggregation operators include: fold attributes and common attributes. The fold attributes include: quantity, sum, average, maximum, minimum and string connection. The common attributes include: four arithmetic operations, data concatenation and data interception. The splicing operator includes: splicing rules; Dimension table association operators include: dimension table association rules; The diversion operator includes: a diversion logic tree.
2. The method for data association analysis according to claim 1, characterized in that: The data streams are respectively subjected to correlation analysis through a single core operator, and the correlation analysis results are output, including: According to the conversion rule of the conversion operator, the first data stream is converted by the conversion operator to obtain a second data stream, wherein the attribute of the first data stream is the same as the attribute of the second data stream; and / or According to the filtering rule, converting the third data stream into a fourth data stream via the filtering operator; The filtering rule is to perform a logical operation according to a logic tree of the attributes of the third data stream. If the operation result is true, the third data stream is converted into a fourth data stream. The logical operation supports a single or multiple AND, OR, and NOT logical combination operations.
3. The method for data association analysis according to claim 1, characterized in that: The data streams are respectively subjected to correlation analysis through a single core operator, and the correlation analysis results are output, including: Merging several data streams to be aggregated into a fifth data stream via the aggregation operator; and / or Merging the sixth data stream and the seventh data stream into an eighth data stream via the concatenation operator, wherein the data type of the sixth data stream is the same as the data type of the seventh data stream; and / or The ninth data stream is subjected to data filtering through the logic tree of the diversion operator, and the filtered data is added to the corresponding data stream by matching the logic tree.
4. The method for data association analysis according to claim 1, characterized in that: The data streams are respectively subjected to correlation analysis through a single core operator, and the correlation analysis results are output, including: According to attribute diversion, the tenth data stream is decomposed into a plurality of sub-data streams via the set decomposition operator, and the multi-level complex data stream structure is converted into a single-level data stream structure, which is beneficial to data analysis and use; and / or According to keyword matching, the multiple data streams to be connected are connected into an eleventh data stream via the connection operator within the window; and / or According to the matching of the field attribute keyword of the twelfth data stream and the keyword of the thirteenth data stream, the twelfth data stream and the thirteenth data stream are associated and matched via the dimension table association operator to obtain analysis data; Among them, the twelfth data stream is a real-time data stream, and the thirteenth data stream is a static data stream.
5. The method for data association analysis according to claim 1, characterized in that: Performing correlation analysis on the data stream through the core operator combination and outputting the correlation analysis result includes: The data stream is processed in sequence by a plurality of core operators in the core operator combination to obtain a target data stream as a correlation analysis result.
6. The method for data association analysis according to claim 1, characterized in that: Also includes: The core operator is operated by using a graphical interface to configure association analysis rules and output multiple data and / or corresponding business data output; The operation is to use graphical arrows to represent the core operator to complete the association analysis operation on the data; The original data includes multiple original data sources and multi-level data structure original data; the graphical interface includes multiple operable data attachments, and the data attachments include a data filtering component and a core operator attachment corresponding to each core operator; The data attachments can be added to the processed data, and the data attachments include: window attachments, keyword attachments and dimension table attachments, which are used for operator operations to perform data conversion; The data filtering component can realize the splicing of multiple complex filtering components and is used for filtering conditional expressions, filtering resource reference expressions and filtering dimension table conditions.
7. A device for data association analysis, characterized in that: The data association analysis is implemented based on the Flink engine, the Flink engine includes multiple core operators, and the device includes: A processing module is used to process the input raw data stream to generate a distributed data stream, wherein the raw data stream is data in multiple formats collected simultaneously, and extract, transmit and format heterogeneous data formats and complex data formats according to corresponding rules; An analysis module, used to perform correlation analysis on the data streams through a single core operator or a combination of core operators, and output correlation analysis results; wherein the combination of core operators includes multiple modes depending on the number of core operators used; The core operator includes: at least one of a conversion operator, a filter operator, an aggregation operator, a splicing operator, a shunt operator, a set decomposition operator, a connection operator and a dimension table association operator; The conversion rule of the conversion operator includes at least one of a mapping rule, a new addition rule, a splicing rule, a truncation rule, and an operation rule; The filter operator includes: filter rules; The set decomposition operator includes: set decomposition rule; The connection operator includes: connection rules; Aggregation operators include: fold attributes and common attributes. The fold attributes include: quantity, sum, average, maximum, minimum and string connection. The common attributes include: four arithmetic operations, data concatenation and data interception. The splicing operator includes: splicing rules; Dimension table association operators include: dimension table association rules; The diversion operator includes: a diversion logic tree.
8. An electronic device comprising: processor, memory and bus, wherein, The processor and the memory communicate with each other via the bus; The memory stores program instructions executable by the processor, and the processor can execute the method for data association analysis according to any one of claims 1 to 6 by calling the program instructions.
9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method for data association analysis according to any one of claims 1 to 6.
