Data processing system and method for implementing the same and method for generating near real-time aggregates
By selecting and modifying data structures in the data processing system, generating data subsets, and using composite key technology to generate and store near-real-time aggregates, the efficiency problem of data processing and display in a networked database environment is solved, and efficient Data record segmentation and presentation.
Patent Information
- Application Number
- CN201980066262.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-10-18
- Filing Date
- 2019-08-05
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2039-08-05
AI Technical Summary
In a networked database environment, existing technologies are difficult to effectively process and display data subsets from multiple data sources, especially when modifying and segmenting data records, and lack efficient data processing and display methods.
By selecting and modifying data structures in the data processing system, generating data subsets, and displaying these modified data structures in the editor interface, composite key technology is used to generate and store near-real-time aggregates to achieve data recording. segmentation and presentation.
It achieves efficient processing and display of data subsets from multiple data sources, improves the efficiency of segmentation and aggregation generation of data records, and provides real-time data display and analysis capabilities.
Smart Images

Figure CN112868000B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data aggregation in a networked database environment. The present application also relates to data segmentation in a networked database environment. Background Art
[0002] In a database management system, the primary data source is the database, which can be located on disk or on a remote server. The data source for a computer program can be a file, a data table, a spreadsheet, an XML file, or even hard-coded data within the program. Summary of the invention
[0003] In general aspect 1, a method implemented by a data processing system is described, the method being used to generate a subset of data from multiple data sources, modify one or more attributes of one or more corresponding fields of the subset, and display an editor interface that implements segmentation of data records by displaying one or more representations of the one or more modified fields, the method comprising: selecting multiple data sources to be represented in the editor interface; generating a subset of data contained in the multiple data sources by the following steps: for each of the data sources, selecting one or more data structures from the data source, wherein each data structure includes one or more fields; for at least one selected data structure, modifying one or more attributes of one or more corresponding fields in the data structure; and selecting the selected data structures included in the subset. The invention relates to a method for storing selected data structures in a memory, wherein at least one of the stored data structures includes the one or more modification attributes of the one or more corresponding fields; displaying representations of the stored data structures in the editor interface, wherein at least one of the representations has the one or more modification attributes of the one or more corresponding fields, wherein each representation includes one or more selectable parts, wherein the selectable parts represent fields of the data structure; receiving selection data specifying a selection of the one or more selectable parts through the editor interface; and segmenting the received data records by identifying which of the multiple received data records have one or more fields corresponding to the one or more fields represented in the selected one or more selectable parts.
[0004] In aspect 2 according to aspect 1, the data structure includes a key field representing a key for the data structure, a record associated with the value of the key, and the method further includes: selecting multiple fields from multiple selected data structures; storing executable instructions in a memory, which when executed: select values for these corresponding selected fields for a specified value of the key; combine these selected values with the specified value of the key; and output these combined values.
[0005] In aspect 3 according to any one of aspects 1 to 2, the representations are first representations, and the method further comprises: displaying second representations of the executable instructions in the editor interface.
[0006] In aspect 4 according to any one of aspects 1 to 3, the method further includes: receiving additional selection data through the editor interface, the additional selection data specifying the selection of the second representation and further specifying one or more criteria to be applied to those outputs, the combined value of the one or more given fields being represented by the one or more selectable parts selected through the editor interface.
[0007] In aspect 5 according to any one of aspects 1 to 4, the method further comprises: displaying a user interface having one or more first controls for selecting the data structure and having one or more second controls for modifying the one or more fields.
[0008] In aspect 6 according to any one of aspects 1 to 5, the method further includes: receiving additional data through the editor interface, the additional data specifying one or more criteria to be applied to one or more given fields, the one or more given fields being represented by the one or more selectable parts selected through the editor interface; wherein segmentation includes segmenting the received data records by identifying which of the multiple received data records have one or more values of one or more fields corresponding to one or more fields represented in the selected one or more selectable parts and satisfying the one or more criteria.
[0009] In aspect 7 according to any one of aspects 1 to 6, the data structure comprises one or more records, wherein each record has one or more values for a particular field.
[0010] In aspect 8 according to any one of aspects 1 to 7, at least one of the data sources comprises an unselected data structure.
[0011] In general aspect 9, a data processing system is described for generating a subset of data from a plurality of data sources, modifying one or more attributes of one or more corresponding fields of the subset, and displaying an editor interface implementing segmentation by displaying one or more representations of the one or more modified fields, the data processing system comprising: one or more processing devices; and one or more machine-readable hardware storage devices storing instructions executable by the one or more processing devices to perform operations including: selecting a plurality of data sources to be represented in an editor interface; generating a subset of data contained in the plurality of data sources by: for each of the data sources, selecting one or more data structures from the data source, wherein each data structure comprises one or more fields; for at least one selected data structure, Modify one or more attributes of one or more corresponding fields in the data structure; store selected data structures included in the subset in a memory, wherein at least one of the stored data structures includes the one or more modified attributes of the one or more corresponding fields; display representations of the stored data structures in the editor interface, wherein at least one of the representations has the one or more modified attributes of the one or more corresponding fields, wherein each representation includes one or more selectable portions, wherein the selectable portions represent fields of the data structure; receive, via the editor interface, selection data specifying a selection of the one or more selectable portions; and segment the received data records by identifying which of a plurality of received data records have one or more fields corresponding to one or more fields represented in the selected one or more selectable portions.
[0012] In aspect 10 according to aspect 9, the data structure includes a key field representing a key for the data structure, a record associated with the value of the key, and the one or more operations further include: selecting multiple fields from a plurality of selected data structures; storing executable instructions in a memory, which when executed: select values for the corresponding selected fields for a specified value of the key; combine the selected values with the specified value of the key; and output the combined values.
[0013] In aspect 11 according to any one of aspects 9 to 10, the representations are first representations, and wherein the one or more operations further comprise: displaying a second representation of the executable instructions in the editor interface.
[0014] In aspect 12 according to any one of aspects 9 to 11, the one or more operations further include: receiving additional selection data through the editor interface, the additional selection data specifying the selection of the second representation and further specifying one or more criteria to be applied to those outputs, the combined value of the one or more given fields being represented by the one or more selectable portions selected through the editor interface.
[0015] In aspect 13 according to any one of aspects 9 to 12, the one or more operations further include: displaying a user interface having one or more first controls for selecting a data structure and having one or more second controls for modifying the one or more fields.
[0016] In aspect 14 according to any one of aspects 9 to 13, the one or more operations further include: receiving additional data through the editor interface, the additional data specifying one or more criteria to be applied to one or more given fields, the one or more given fields being represented by the one or more selectable parts selected through the editor interface; wherein segmentation includes segmenting the multiple received data records by identifying which of the multiple received data records have one or more values of one or more fields corresponding to one or more fields represented in the selected one or more selectable parts and satisfying the one or more criteria.
[0017] In aspect 15 according to any one of aspects 9 to 14, the data structure comprises one or more records, wherein each record has one or more values for a particular field.
[0018] In aspect 16 according to any one of aspects 9 to 15, at least one of the data sources comprises an unselected data structure.
[0019] In general aspect 17, one or more machine-readable hardware storage devices are described, which are used to generate a subset of data from multiple data sources, modify one or more attributes of one or more corresponding fields of the subset, and display an editor interface that implements segmentation by displaying one or more representations of the one or more modified fields. The one or more machine-readable hardware storage devices store instructions that can be executed by one or more processing devices to perform operations including the following: selecting multiple data sources to be represented in the editor interface; generating a subset of data contained in the multiple data sources by the following steps: for each of the data sources, selecting one or more data structures from the data source, wherein each data structure includes one or more fields; for at least one selected data structure, modifying one of the data structures; or one or more attributes of multiple corresponding fields; storing the selected data structures included in the subset in a memory, wherein at least one of the stored data structures includes the one or more modified attributes of the one or more corresponding fields; displaying representations of the stored data structures in the editor interface, wherein at least one of the representations has the one or more modified attributes of the one or more corresponding fields, wherein each representation includes one or more selectable parts, wherein the selectable parts represent fields of the data structure; receiving, through the editor interface, selection data specifying a selection of the one or more selectable parts; and segmenting the multiple received data records by identifying which of the multiple received data records have one or more fields corresponding to the one or more fields represented in the selected one or more selectable parts.
[0020] In aspect 18 according to aspect 17, the data structure includes a key field representing a key for the data structure, a record associated with a value of the key, and the one or more operations further include: selecting multiple fields from a plurality of selected data structures; storing executable instructions in a memory, which when executed: select values for the corresponding selected fields for a specified value of the key; combine the selected values with the specified value of the key; and output the combined values.
[0021] In aspect 19 according to any one of aspects 17 to 18, the representations are first representations, and the one or more operations further include: displaying a second representation of the executable instructions in the editor interface.
[0022] In aspect 20 according to any one of aspects 17 to 19, wherein the one or more operations further include: receiving additional selection data through the editor interface, the additional selection data specifying the selection of the second representation and further specifying one or more criteria to be applied to those outputs, the combined value of the one or more given fields being represented by the one or more selectable portions selected through the editor interface.
[0023] In aspect 21 according to any one of aspects 17 to 20, the one or more operations further include: displaying a user interface having one or more first controls for selecting a data structure and having one or more second controls for modifying the one or more fields.
[0024] In aspect 22 according to any one of aspects 17 to 21, the one or more operations further include: receiving additional data through the editor interface, the additional data specifying one or more criteria to be applied to one or more given fields, the one or more given fields being represented by the one or more selectable parts selected through the editor interface; wherein segmentation includes segmenting the received data records by identifying which of the multiple received data records have one or more values of one or more fields corresponding to one or more fields represented in the selected one or more selectable parts and satisfying the one or more criteria.
[0025] In aspect 23 according to any one of aspects 17 to 22, the data structure comprises one or more records, wherein each record has one or more values for a particular field.
[0026] In aspect 24 according to any of aspects 17 to 23, at least one of the data sources comprises an unselected data structure.
[0027] In general aspect 25, a method for generating a near real-time aggregate performed by a data processing system is described, the method comprising: intermittently receiving data records from one or more data sources; for a given data record received, identifying at least a first field and a second field in the given data record; detecting a first value in the first field and a second value in the second field; and generating a composite key based on the first value of the first field and the second value of the second field; accessing aggregate data related to at least the first field or the second field from a memory; generating a composite key value by generating a data record, the data record having a field storing the composite key and one or more fields each storing the aggregate data item, wherein the composite key value represents a near real-time aggregate of data related to at least the first field or the second field; and recording the occurrence of the given data record by storing the composite key value in a memory.
[0028] In aspect 26 according to aspect 25, generating the composite key comprises concatenating the first value with the second value.
[0029] In aspect 27 according to any one of aspects 25 to 26, the method further comprises: hashing the composite key; and storing the hashed composite key together with the composite value in a hash table.
[0030] In aspect 28 according to any one of aspects 25 to 27, wherein the composite value is the aggregated data.
[0031] In aspect 29 according to any one of aspects 25 to 28, the method further includes: for the given record, detecting the value of each field included in the given record; and generating multiple unique combinations of at least two detected values, wherein each unique combination is a composite key; for each composite key, identifying one or more fields in the given record, wherein the composite key includes one or more corresponding values of these one or more fields; accessing aggregate data related to at least one of the one or more identified fields from the memory; generating a composite key value by generating a data record having a field storing the composite key and a field storing the aggregate data; and storing the composite key value in the memory.
[0032] In aspect 30 according to any one of aspects 25 to 29, wherein generating a plurality of unique combinations comprises generating a plurality of all unique combinations of field values detected in the given record.
[0033] In aspect 31 according to any one of aspects 25 to 30, the method further includes: receiving a request for an aggregate of specified values within a period of time; selecting a composite key value from a memory, the composite key value storing the occurrences of the specified value; and extracting the requested aggregate from the composite key value.
[0034] In aspect 32 according to any one of aspects 25 to 31, the method further includes: aggregating one or more of the aggregated data items with the value of a field in the given data record; generating a near real-time aggregate value for the field based on the aggregation; and storing the near real-time aggregate value in the composite key value.
[0035] In aspect 33 according to any one of aspects 25 to 32, the method further includes: receiving a request for an aggregate associated with one or more specified values; generating a composite key from the one or more specified values; hashing the composite key; requesting the composite value stored together with the hashed composite key from the hash table stored in the memory; and extracting the requested aggregate data item from the composite value.
[0036] In general aspect 34, a data processing system for generating near real-time aggregates is described, comprising: one or more processing devices; and one or more machine-readable hardware storage devices, the one or more machine-readable hardware storage devices storing instructions executable by the one or more processing devices to perform operations including: intermittently receiving data records from one or more data sources; for a given data record received, identifying at least a first field and a second field in the given data record; detecting a first value in the first field and a second value in the second field; and generating a composite key based on the first value of the first field and the second value of the second key; accessing aggregate data related to at least the first field or the second field from a memory; generating a composite key value by generating a data record, the data record having a field storing the composite key and one or more fields each storing the aggregate data item, wherein the composite key value represents a near real-time aggregate of data related to at least the first field or the second field; and recording the occurrence of the given data record by storing the composite key value in a memory.
[0037] In aspect 35 according to aspect 34, generating the composite key comprises concatenating the first value with the second value.
[0038] In aspect 36 according to any one of aspects 34 to 35, the one or more operations further include: hashing the composite key; and storing the hashed composite key together with the composite value in a hash table.
[0039] In aspect 37 according to any one of aspects 34 to 36, wherein the composite value is the aggregated data.
[0040] In aspect 38 according to any one of aspects 34 to 37, the one or more operations further include: for the given record, detecting the value of each field included in the given record; and generating multiple unique combinations of at least two detected values, wherein each unique combination is a composite key; for each composite key, identifying one or more fields in the given record, wherein the composite key includes one or more corresponding values of these one or more fields; accessing aggregate data related to at least one of the one or more identified fields from the memory; generating a composite key value by generating a data record having a field storing the composite key and a field storing the aggregate data; and storing the composite key value in the memory.
[0041] In aspect 39 according to any one of aspects 34 to 38, wherein generating a plurality of unique combinations comprises generating a plurality of all unique combinations of field values detected in the given record.
[0042] In aspect 40 according to any one of aspects 34 to 39, the one or more operations further include: receiving a request for an aggregate of specified values within a period of time; selecting a composite key value from a memory that stores occurrences of the specified value; and extracting the requested aggregate from the composite key value.
[0043] In aspect 41 according to any one of aspects 34 to 40, the one or more operations further include: aggregating one or more of the aggregated data items with the value of a field in the given data record; generating a near real-time aggregate value for the field based on the aggregation; and storing the near real-time aggregate value in the composite key value.
[0044] In aspect 42 according to any one of aspects 34 to 41, the one or more operations further include: receiving a request for an aggregate associated with one or more specified values; generating a composite key from the one or more specified values; hashing the composite key; requesting the composite value stored together with the hashed composite key from the hash table stored in the memory; and extracting the requested aggregate data item from the composite value.
[0045] In general aspect 43 according to any one of aspects 1 to 42, one or more machine-readable hardware storage devices are described, which are used to generate near real-time aggregates, and the one or more machine-readable hardware storage devices store instructions that can be executed by one or more processing devices to perform operations including the following: intermittently receiving data records from one or more data sources; for a given data record received, at least identifying a first field and a second field in the given data record; detecting a first value in the first field and a second value in the second field; and generating a composite key based on the first value of the first field and the second value of the second key; accessing aggregate data related to at least the first field or the second field from a memory; generating a composite key value by generating a data record, the data record having a field storing the composite key and one or more fields each storing the aggregate data item, wherein the composite key value represents a near real-time aggregate of data related to at least the first field or the second field; and recording the occurrence of the given data record by storing the composite key value in a memory.
[0046] In aspect 44 according to any one of aspects 1 to 44, generating the composite key comprises concatenating the first value with the second value.
[0047] In aspect 45 according to any one of aspects 1 to 44, the one or more operations further include: hashing the composite key; and storing the hashed composite key together with the composite value in a hash table.
[0048] In aspect 46 according to any one of aspects 1 to 45, wherein the composite value is the aggregated data.
[0049] In aspect 47 according to any one of aspects 1 to 46, the one or more operations further include: for the given record, detecting the value of each field included in the given record; and generating multiple unique combinations of at least two detected values, wherein each unique combination is a composite key; for each composite key, identifying one or more fields in the given record, wherein the composite key includes one or more corresponding values of these one or more fields; accessing aggregate data related to at least one of the one or more identified fields from the memory; generating a composite key value by generating a data record having a field storing the composite key and a field storing the aggregate data; and storing the composite key value in the memory.
[0050] In aspect 48 according to any one of aspects 1 to 47, wherein generating a plurality of unique combinations comprises generating a plurality of all unique combinations of field values detected in the given record.
[0051] In aspect 49 according to any one of aspects 1 to 48, the one or more operations further include: receiving a request for an aggregate of specified values within a period of time; selecting a composite key value from a memory that stores occurrences of the specified value; and extracting the requested aggregate from the composite key value.
[0052] In aspect 50 according to any one of aspects 1 to 49, the one or more operations further include: aggregating one or more of the aggregated data items with the value of a field in the given data record; generating a near real-time aggregate value for the field based on the aggregation; and storing the near real-time aggregate value in the composite key value.
[0053] In aspect 51 according to any one of aspects 1 to 50, the one or more operations further include: receiving a request for an aggregate associated with one or more specified values; generating a composite key from the one or more specified values; hashing the composite key; requesting the composite value stored together with the hashed composite key from the hash table stored in the memory; and extracting the requested aggregate data item from the composite value.
[0054] In aspect 52 according to any one of aspects 1 to 50, a data processing system is included, the data processing system is used to generate a subset of data from multiple data sources, modify one or more attributes of one or more corresponding fields of the subset, and display an editor interface that implements segmentation of data records by displaying one or more representations of the one or more modified fields, the data processing system includes: a memory storing multiple data sources to be represented in the editor interface; a data structure modification module, the data structure modification module selects multiple data sources to be represented in the editor interface and generates a subset of data contained in the multiple data sources by the following steps: for each of the data sources, select one or more data structures from the data source, wherein each data structure includes one or more fields; and for at least one selected data structure, modify one or more corresponding fields in the data structure. one or more attributes; a memory for storing the selected data structures included in the subset, wherein at least one of the stored data structures includes the one or more modified attributes of the one or more corresponding fields; a rendering module, which displays representations of the stored data structures in the editor interface, wherein at least one of the representations has the one or more modified attributes of the one or more corresponding fields, wherein each representation includes one or more selectable portions, wherein the selectable portions represent fields of the data structure, and the rendering module receives selection data specifying a selection of the one or more selectable portions through the editor interface; and a segmentation module, which segments the received data records by identifying which of the received data records have one or more fields corresponding to the one or more fields represented in the selected one or more selectable portions.
[0055] Other features and advantages of the invention will be apparent from the following description, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is a block diagram of a networked system for generating a subset of modified data included in a combined data source.
[0057] Figure 2 is a block diagram of an execution system for generating a subset of modified data included in a combined data source.
[0058] Figure 3 is a block diagram of an execution system for generating a composite key having a composite key module.
[0059] Figure 4 is a block diagram depicting the tables involved in the generation of a composite key.
[0060] Figure 5Ais a block diagram depicting an execution system configured to generate and use composite keys.
[0061] Figure 6 is a block diagram of an execution system configured to generate near real-time aggregates.
[0062] Figure 7 is a block diagram illustrating the use of an execution system to cause rendering of user interfaces through which data sources and data structure fields are modified.
[0063] FIG. 8A to FIG. 8T and Figure 5B is a description of a graphical user interface for generating a subset of modified data included in a combined data source.
[0064] Fig. 9 is a block diagram of an execution environment that implements the collect-detect-act (CDA) process.
[0065] Fig.10 yes Fig. 9 A block diagram of the details of the detection process in the execution environment of FIG.
[0066] Fig.11 is a flow chart for generating a modified data structure included in a combined data source.
[0067] Fig.12 It is a flowchart for generating composite key values.
[0068] Fig.13 and Fig.14 Each is a diagram depicting the functions of a functional module included in the execution system. DETAILED DESCRIPTION
[0069] refer to Figure 1 , a networked system 10 for modifying data structures (e.g., tables) is shown. Specifically, the networked system 10 enables retrieval of data structures from multiple data sources, and enables modification of one or more fields (or other attributes or attributes of fields) of those data structures from the data sources. Typically, a field includes, for example, a specified portion of a data record for storing data and / or rows in a relational database. Typically, an attribute includes a characteristic, such as a data form. The networked system 10 includes data sources 12a to 12c. The networked system 10 includes an execution system 14, which is used, for example, to access data structures, to specify which of those data structures are available to client devices, and to modify those data structures. The execution system 14 includes a memory 16 (including, for example, volatile memory, non-volatile memory, etc.) for receiving and storing data structures from the data sources 12a to 12c.
[0070] In one example, the memory 16 stores a reference to each of the data sources 12a to 12c. The memory 16 receives data structures included in those data sources from each of the data sources 12a to 12c. The memory 16 stores data structures (and data included in the data structures, such as records in a table) associated with references to data sources that transmit the data structures to the execution system 14. The execution system 14 also includes a data structure selection and data structure modification module 18 (hereinafter referred to as "module 18"), for example, for selecting one or more data sources from which data is available and one or more data structures in those selected one or more data sources, and for modifying one or more data structures in one or more selected data sources (for example, by modifying field names). In an example where the data structure is a table, the columns in the table are called fields, and the rows in the table are called records. The module 18 also enriches the data structure and / or the fields in the data structure, for example, by enabling the generation of new data structures, which include a combination of two or more fields from different data structures. The execution system 14 includes a rendering module 20, for example, for rendering a visual representation of the modified data structure in a user interface 24 (displayed on a client device).
[0071] Through the user interface 24, the user selects one or more fields or portions of the data structure to specify instructions for segmentation. In general, segmentation includes the process of defining and subdividing a collection of data records into only those data records that meet one or more specified criteria. The client device rendering the user interface 24 sends data specifying the selection of one or more fields or portions of the data structure to the rendering module 20. The rendering module 20 sends the data (specifying the selection) to the segmentation module 22, which implements segmentation of the various data records stored in the memory 16 or other data repository and produces an output data set 26.
[0072] refer to Figure 2 , the networked system 10 has an execution system 14 configured to modify data structure A into a data structure D (e.g., a table). In this particular example, data structure A and data structure C are modified by a data structure modification module 18. From the data structure modification module 18, the modified data structures A and B are shown populated with fields titled "Card Purchase Visa" and "Cust. Eng.", respectively, and containing field names "ID", "Trx Amt"; and "ID" and time, respectively, as shown in a graphical user interface 18b. The data structure modification module 18 also generates modified field data 18a, which is sent to a rendering module 20, which is displayed via a user interface 24 ( Figure 1) renders a representation 21 of modified structures A and C with join IDs (e.g., instructions for joining returned data records together based on the value of an ID field contained in those returned data records). Typically, the modified field data includes data specifying one or more modifications to fields of the data structures, such as, for example, modifications to the names of fields or columns or rows in the data structures.
[0073] The execution system 14 sends the modified field data 18a (in conjunction with ID (Trx Amt>$5000) & (Cust. Eng.<6mo)) via the segmentation logic 22a to the segmentation module 22 which generates a query (query (Trx Amt>$5000) & (Cust. Eng.<6mo)) based on the segmentation logic 22a for accessing the data source (e.g. 12d), which returns two records 13a, 13b, each containing the following content "ID: f423543 VISA: 7349.00" and "ID: f423543 Cust. Eng.: 2mo.", as shown in the figure. The returned record 22b is sent back to the segmentation module 22 and fed into the logic module 25 to specify the combined return record 18a (by combining the ID) "ID: f423543 VISA: $7349.00 Cust. Eng.: 2mo.".
[0074] Reference now Figure 3 , shows an execution system 14 configured to generate a composite key via a composite key module 30. The data structure modification module 18 sends the modified field data to the composite key module 30. The composite key module 30 also sends a combined return record 18a "ID: f423543 VISA: $7349.00 Cust. Eng.: 2mo." and generates a composite key value 31, which is a composite key 31a connected to a composite value 31b, which is stored in a data repository 12e. Typically, a composite key includes a key generated from one or more values of one or more fields in a data record. Typically, a composite value includes a number of aggregates or other data related to the one or more values from which the composite key is generated. In this example, the composite value includes the following aggregates: "5550.32, 345.24, 12.01, 23," each representing, respectively, the current volume of the current transaction, the average volume of transactions associated with that particular ID over a specified time period (e.g., the last 30 days), the lowest volume of transactions that have occurred over that time period, and a count of the volume of transactions that have occurred over that time period. Also shown are a rendering module 20, a segmentation module 22, and a logic module 25, which operate on outputs from the composite key module 30 and from each other, respectively, as will be discussed below.
[0075] refer to Figure 4, showing the structure 32 of a composite key and the associated composite values from the values of the data record fields. In this example, the system 10 receives a data record 32a that includes four fields, namely a subscriber ID (SubID) field, an event type field, a date field, and a length field (specifying the time length of the voice event). In this example, the value of the SubID field is "43054421". The value of the event type field is "voice". The value of the date field is "4 / 3 / 2018". The value of the length field is "4.34 minutes". The system 10 generates several keys from the values of the first three fields in the data record 32a, for example, one key for each possible combination of the fields. In some examples, when the data record has "n" fields, the number of different combinations of the fields is 2 n In this example, as shown in Table 33a, system 10 generates seven different keys from the fields in data record 32. The seven different keys are:
[0076] Key 1: SubID
[0077] Key 2: SubID.Event Type
[0078] Key 3: SubID.Date
[0079] Key 4: SubID.EventType.Date
[0080] Key 5: Event Type
[0081] Key 6: Date
[0082] Key 7: Event Type.Date
[0083] The system generates a composite value for each composite key, which includes one or more specified values. For the "SubID" key (i.e., key 1 in Table 33a), the composite value (represented by composite value 1 in Table 33a) is the average number of events received by the subscriber represented by SubID over a specified time period (e.g., five days) ("Average") and the count of the number of events received by the subscriber over the specified time period ("Count"). That is, for the key "SubID", the composite value is "Average, Count", as shown in Table 33a.
[0084] For the "SubID.EventType" key (i.e., key 2 in Table 33a), the composite value (represented by CompositeValue2 in Table 33a) is the average number of events (of the event type specified in the key) received by the subscriber represented by the SubID over a specified time period (e.g., five days) ("Average"), the minimum ("Min") amount of time for events of the specified event type, the maximum ("Max") amount of time for events of the specified event type, and a count ("Count") of the number of events (of the event type specified in the key) received by the subscriber over the specified time period. That is, for the key "SubID.EventType", the composite value is "Average, Min, Max, Count", as shown in Table 33a.
[0085] For the "SubID.Date" key (i.e., key 3 in Table 33a), the compound value (represented by Compound Value 3 in Table 33a) is a count of the number of events received by the subscriber specified by the SubID field on the date specified by the Date field ("Count"). That is, for the key "SubID.Date", the compound value is "Count", as shown in Table 33a.
[0086] For the "SubID.EventType.Date" key (i.e., key 4 in Table 33a), the composite value (represented by composite value 4 in Table 33a) is the minimum ("min") amount of time for events of the specified event type for the subscriber specified in the SubID field and on the specified date in the date field, the maximum ("max") amount of time for events of the specified event type for the subscriber specified in the SubID field and on the specified date in the date field, and a count ("count") of the number of events (of the event type specified in the key) for the subscriber specified in the SubID field and on the specified date in the date field. That is, for the key "SubID.EventType.Date", the composite value is "min, max, count", as shown in Table 33a.
[0087] For the "Event Type" key (i.e., key 5 in Table 33a), the composite value (represented by composite value 5 in Table 33a) is the average number of events (of the event type specified in the key) received within a specified time period (e.g., five days) ("Average"), the minimum ("Min") amount of time for events of the specified event type within the specified time period, the maximum ("Max") amount of time for events of the specified event type within the specified time period, and a count ("Count") of the number of events (of the event type specified in the key) within the specified time period. That is, for the key "Event Type", the composite value is "Average, Min, Max, Count", as shown in Table 33a.
[0088] For the "date" key (i.e., key 6 in Table 33a), the composite value (represented by composite value 6 in Table 33a) is a count of the number of events received on the date specified by the date field ("count"). That is, for the key "date", the composite value is "count", as shown in Table 33a.
[0089] For the "Event Type.Date" key (i.e., key 7 in Table 33a), the composite value (represented by composite value 7 in Table 33a) is the minimum ("min") amount of time for events of the specified event type on the specified date in the date field, the maximum ("max") amount of time for events of the specified event type on the specified date in the date field, and a count ("count") of the number of events (of the event type specified in the key) on the specified date in the date field. That is, for the key "Event Type.Date", the composite value is "min, max, count", as shown in Table 33a.
[0090] Table 33b shows the actual keys for keys 1 to 7 and the associated composite values, composite values 1 to 7, respectively. In this example, the values for keys 1 to 7 are generated from the values of the fields in data record 33a. The system generates the composite values by updating the previously calculated composite values and / or by accessing the composite values from persistent storage 58 ( Figure 6 ) to generate a composite value. For example, for key 4 (i.e., SubID. event type. date key), memory 56 ( Figure 6 ) may already have an entry stored for that key. The stored entry may be as follows: Key 4: 43054421.speech.4 / 3 / 2018, compound value 4.9 minutes, 8.09 maximum, 2. In this example, upon receiving record 32a, system 10 recognizes that it already has a compound value stored for the following key: 43054421.speech.4 / 3 / 2018. Therefore, system 10 updates the compound value based on the time length of the speech event specified in data record 268a (i.e., 4.34 minutes). Based on the update, the system determines a new compound value of "1.2 minutes, 8.09 maximum, 3", such as Figure 4 shown.
[0091] In other instances, the system may not have identified the composite value for key 4. In this instance, the system retrieves the composite value from memory 56 ( Figure 6 ) and / or persistent storage 58 ( Figure 6) accesses those data records for the subscriber referenced in data record 32a (i.e., SubID: 43054421). The system determines from those accessed data records which data records reference voice events for a specified date (i.e., 4 / 3 / 2018). The system determines from those data records that reference voice events for the specified date a minimum amount of time for a voice event (e.g., from the "length" field of the corresponding record), a maximum amount of time for a voice event (e.g., from the "length" field of the corresponding record), and a count of the number of voice events that occurred for the specified subscriber on the specified date. The system determines a composite value from these determined values and stores it in association with the hash value for the key "43054421.voice.4 / 3 / 2018" (i.e., key 4) (i.e., in hash table 268d).
[0092] In this example, a memory (not shown) stores a hash table 33c having hash key values 35a to 35g for keys 1 to 7, respectively. In this example, the system generates the hash key values by applying a hash algorithm to the composite key. The hash table 33c also stores composite values 36a to 36g corresponding to composite values 1 to 7 in the table 33c, respectively. Typically, corresponding to or corresponding to means matching or having a similar threshold amount. In this example, each record is stored independently by the storage of the composite key and the associated composite value.
[0093] In these examples, the system is pre-calculating data values for various key combinations. For example, for the key "43054421.speech.4 / 3 / 2018", the system pre-calculates the minimum, maximum, and count values for the speech events that occurred on 4 / 3 / 2018 for the specified subscriber. By pre-calculating these values, the system reduces (or eliminates) runtime delays in determining real-time aggregates and other real-time values. For example, at runtime, the system needs to determine the number of speech events that occurred on 4 / 3 / 2018 for the subscriber represented by SubID 43054421. The system can determine this real-time aggregate by querying various data repositories and warehouses for data records that include a SubID field with a value of 43054421. The system can then parse the data records from all returned data records to determine a subset of data records where the value of the event type field is "speech" and the value of the date field is "4 / 3 / 2018". The system 10 can then count the number of records returned in the subset to determine the count. However, this query and processing introduces associated latency when the system performs the query and resolution. To reduce or eliminate this latency, the system pre-computes aggregates (or other values, such as minimum and maximum values) and stores these aggregates in association with the hash value of the composite key. Thus, to find a count of the number of voice calls made by a particular subscriber on a particular date, the system would generate the appropriate key SubID.voice.date or 43054421.voice.4 / 3 / 2018. The system hashes the value of the key and uses the hashed key value to access the composite value in hash table 33c. By doing so, the system eliminates or reduces latency associated with having to compute aggregates in real time.
[0094] Another advantage of storing composite values in association with a composite key is that if a new field is added to a data record, the occurrence of the value in the new field can be easily tracked by generating a new composite key with a value for the new field, and then tracking the count (or another aggregate) in the associated composite value. For example, a "new customer" field is added to data record 32a. In this example, a customer is a new customer if he or she has registered for telecommunications services within the last six months. In this case, the value of the new customer field is "yes". Otherwise, the value of the new customer field is "no". In this example, the system tracks the occurrence of new customers who made voice calls on a specified date of 4 / 3 / 2018, and the system generates a new key with a value of new customer.event type.date of yes.voice.4 / 3 / 2018. The composite value of this new key is "count". Then, when new records are received, the system generates or updates the composite value based on the number of records received on 4 / 3 / 2018 (reference voice events for new customers). The advantage of generating composite values and storing them in association with composite keys is that as new fields are added to a data record column, columns do not need to be added to the table to track the values of those new fields. Instead, new values of the fields can be tracked by generating new keys that only require adding new rows to the table without changing the structure of the table by adding new columns.
[0095] Referring now to 5A, the execution system 14 accesses the data source 12a which returns two records 18a, 18b, each record including the corresponding content "ID: 53054423, Trx_Amt: $5550.32, Date: 4 / 3 / 2018, Card Type: Visa" and "ID: 53054423, Cust. Eng: 2mo., Date: 4 / 3 / 2018". The returned records 18a, 18b are sent to the composite key module 30 to generate a composite key 25a (for record 18a) and a composite key 25b (for record 18b). The composite key values 25a, 25b are stored in the data repository 12f, and the composite key module 30 sends the composite key values 25a, 25b to the rendering module 20, which renders the composite key values 25a, 25b. Figure 5BThe representation shown. In this example, the composite key value 25a includes the composite key "53054423.VISA" and the composite value "5550.32, 345.24, 12.01, 23", which represents the total purchase amount of the current transaction, the average purchase amount within a specified number of days (e.g., the last 30 days), the minimum purchase amount within a specified number of days, and the count of the number of purchases made within the specified number of days. The composite key value 25b includes the composite key "53054423.Cust_Eng" and the composite value "2, 1 / 1 / 2018, 9.00, 1045, 104", which respectively represent the length of time that the specific user represented by the ID field has been a customer, the date on which the user became a customer, the customer's minimum purchase amount, the customer's maximum purchase amount, and the customer's average purchase amount. The composite key values 25a, 25b are sent to the rendering module 20 to enable the rendering module to determine which aggregates can be displayed as part of the segmentation template, as will be further referenced below. Figure 5B In this example, the aggregates (e.g., minimum values, counts, etc.) included in the composite key values 25a, 25b will be available for definition in the segments, depending on which tables are selected and which composite key values are associated with or otherwise applicable to those tables, as described in further detail below.
[0096] The rendering module 20 receives the segmentation logic 23c (in Figure 5B53054423.VISA) and a compound key query 23b (53054423.Cust_Eng), and sends the compound key queries 23a, 23b to the data repository 12f. In response, the data repository 12f looks up (e.g., in a table) a compound key value having a compound key that matches the compound key specified in the queries 23a, 23b. In this example, the compound key query 23a includes the compound key "53054423.VISA". Based on the composite key, the data repository 12f retrieves a composite key value 25a, which has a composite key of "53054423.VISA" and therefore matches the composite key specified in the composite key query 23a. In this example, the composite key query 23b includes the composite key of "53054423.Cust_Eng". Based on the composite key, the data repository 12f retrieves a composite key value 25b, which has a composite key of "53054423.Cust_Eng" and therefore matches the composite key specified in the composite key query 23b. The data repository 12f returns the composite key values 25a, 25b as return records 22c to the segmentation module 22. In response, the segmentation module 22 transmits the returned records 22c to the logic module 25 for further processing. In this example, logic module 25 has also received segmentation logic 23 c (eg, from segmentation module 22 ), and implemented join logic to join returned records 22 c together to produce aggregated or joined records 27 .
[0097] refer to Figure 5B , the graphical user interface 40 is a graphical user interface 21 ( Figure 2). In this example, the graphical user interface 40 includes components 40a to 40e. In this example, component 40a specifies that the "customer engagement" table is used to segment customers by only including those customers who have been customers for more than six months. In this example, certain aggregates (e.g., counts) are associated with the customer engagement table. In some examples, each composite value will include aggregates of the same type. Therefore, each table can be associated with aggregates of the same type. In other examples, a table can be associated with only certain types of aggregates. In this example, if a composite key query is sent to the data repository and the composite key value returned does not include the aggregate required for segmentation, the execution system will simply discard the retained composite key value. In this example, component 40e specifies that segmentation is performed using the Visa card purchase table, and further, as specified by component 40d, only those customers who have more than two card purchases are included in the segmentation. Component 40c specifies that the records returned from the execution of the logic specified in components 40a to 40b, 40d, and 40e are combined together.
[0098] Generate real-time (or near-real-time) aggregates at scale
[0099] In some instances, the system 10 aggregates data in the field in real time (or near real time) as the data is received, and also aggregates the data at scale, such that the system 10 performs aggregations without noticeable delays when large volumes of data are received by the system 10. In some instances, these aggregates are used to generate data that is accessed or retrieved when the system performs segmentation.
[0100] Reference now Figure 6 , networking system 10( Figure 1 ) also includes a system 50 for generating real-time aggregates. In some examples, the system 50 is Figure 1 14. In this example, system 50 receives data records 52a to 52c from data source 12a and records 52d to 52f from data source 12b. Each of data records 52a to 52f includes one or more fields, such as a key field (i.e., a Subscriber Identifier (SubID) field) having a value that uniquely identifies a user. Each of data records 52a to 52f may also include a communication type ("Communication Type") field for storing a value that identifies the type of communication (i.e., voice, SMS, or data).
[0101] The networked system 10 is also the execution system 14 ( Figure 1 ), and includes a storage device including a memory 56 (e.g., a shared memory, a semiconductor memory, a low-persistence memory, etc.) and a persistent memory 58. The memories 56 and 58 may form Figure 1Memory 16. Typically, memory 56 includes memory accessible to system 50, with reduced latency, for example, relative to latency in retrieving data or data records from persistent storage 58. Memory 56 has reduced latency because memory 56 is not disk storage (e.g., data records are not stored to disk when stored in memory 56). In some instances, memory 56 includes a memory cache, sometimes referred to as cache memory or RAM cache, which is a portion of memory made of high-speed static RAM (SRAM) rather than the slower and dynamic RAM (DRAM) used for main memory (e.g., persistent storage 58). In this instance, memory 56 stores only recent data (or a record of the occurrence of recent data), where data is "recent" if it is received in less than a threshold amount of time (e.g., less than fourteen days). After the data is older than the threshold amount of time, system 50 or memory 56 sends the data to persistent storage 58 for more permanent storage. Memory cache on memory 56 is effective because system 50 accesses recent data most frequently. That is, the data stored in memory 56 is data actively used by system 50. By keeping as much of this information as possible in SRAM or memory 56 , system 50 avoids accessing slower DRAM or persistent storage 58 .
[0102] In this example, the system 50 stores records of events, rather than the received data or data records themselves. Typically, events include the occurrence of specific values for specific fields. In this example, the system 50 specifies that each possible value of the "communication type" field (i.e., voice, SMS, or data) is an event. The memory 56 stores a data record 60, which preserves the records of each detected event (and the subscriber ID for the event). Specifically, the data record 60 includes columns 60a to 60c. Column 60a stores data indicating the occurrence of a "voice event" for the detection of the "voice" value of the "communication type" field. Column 60b stores data indicating the occurrence of a "data event" for the detection of the "data" value of the "communication type" field. Column 60c stores data indicating the occurrence of an "SMS event" for the detection of the "SMS" value of the "communication type" field.
[0103] Specifically, system 50 receives data record 52a and detects the occurrence of a voice event in data record 52a. Therefore, system 50 inserts the value of the subscriber ID into column 60a of data record 60. System 50 receives data record 52b and detects the occurrence of an SMS event in data record 52b. Therefore, system 50 inserts the subscriber ID specified in the SubID field in data record 52b into column 60c.
[0104] System 50 receives data record 52c and detects the occurrence of a voice event in data record 52c. Therefore, system 50 inserts the subscriber ID specified in the SubID field in data record 52c into column 60a. System 50 receives data record 52d and detects the occurrence of a voice event in data record 52d. Therefore, system 50 inserts the value of the subscriber ID specified in the SubID field in data record 52d into column 60a. System 50 receives data record 52e and detects the occurrence of a voice event in data record 52e. Therefore, system 50 inserts the value of the subscriber ID specified in the SubID field in data record 52e into column 60a. System 50 receives data record 52f and detects the occurrence of a data event in data record 52f. Therefore, system 50 inserts the value of the subscriber ID specified in the SubID field in data record 52f into column 60b.
[0105] In this example, data record 60 is a data record with an increased amount of flexibility because data record 60 can be modified to also track the occurrence of other types of events (e.g., video conferencing events) by adding another column to data record 60. Therefore, data record 60 can be modified on the fly to track the aggregation of new events. This provides improved flexibility over saving the received data record itself because new events can be tracked by generating a new composite key for the event, as described in further detail below. In addition, the search of data record 60 provides a reduced delay in performing a query relative to the amount of delay when performing a query on a single data record. For example, system 50 can query data record 60 for those subscribers who are involved in voice communications. In this example, system 50 generates a query for "communication type = voice". Based on the query, memory 56 returns the values in column 60a, looking up only the values of the subscriber ID included in column 60a. System 50 returns the results of the query at an increased speed (relative to the speed required to search individual data records 52a-52f to identify data records that satisfy the query) because system 50 (or memory 56) only has to identify columns that match or satisfy the query, rather than searching data records to identify those records that store values that satisfy the query. In some examples, after a threshold amount of time, the data in data record 60 is transferred to persistent storage 58 and stored in one of data records 62a...62n.
[0106] In some examples, the data included in columns 60a to 60c are each referred to as in-memory aggregates because each of these columns represents an aggregate of a particular type of event. Typically, an in-memory aggregate (e.g., count, average, etc.) includes an aggregate of data stored in memory 56. In other examples, system 50 may perform operations on the data included in record 60 to generate an in-memory aggregate. For example, system 50 may query memory 56 for a count of records where "communication type = voice" and "SubID = 53054423". In this example, memory 56 will return a value of "2" because column 60a indicates that the subscriber with "SubID = 53054423" has made two voice communications. In this example, memory 56 generates an in-memory aggregate for the query, and the in-memory aggregate has a value of 2. Memory 56 (or system 50) stores the value of the in-memory aggregate in a shared variable. In this example, upon receiving the query "Count of Communication Type = Voice and SubID = 53054423", the memory 56 generates a shared variable named "Count of Communication Type = Voice and SubID = 53054423" and sets the value of the shared variable to "2". In this example, the shared variable stores the value of the in-memory aggregate. As previously described, these in-memory aggregates are retrieved from the memory 56 at an increased speed (relative to the speed at which these in-memory aggregates are retrieved from the persistent memory 58 or the speed at which these in-memory aggregates are constructed by searching the individual data records 52a to 52f).
[0107] Once the data in data record 60 is moved to disk (i.e., to persistent storage 58), the values in columns 60a to 60c are the aggregate on disk, including, for example, records of occurrences that were stored on disk rather than in memory. In some instances, the values of shared variables are also moved to persistent storage 58 after a threshold amount of time.
[0108] By recording the occurrence of events rather than storing the data records themselves, the system 50 determines aggregates at scale, e.g., as the number of records represented in the data record 60 increases, there is no incremental delay (or only minimal incremental delay) in determining the aggregates, because the system 50 need only identify the relevant fields (or relevant cells in a column) in the data record 60, rather than parsing and identifying the contents of the individual records 52a to 52f. The identification of relevant fields in the data records is a scalable process, because the number of fields does not increase as the number of occurrences in the records increases. Thus, the identification of these real-time aggregates is scalable and does not introduce delays even as the number of data records processed increases.
[0109] In a variation, the memory 56 stores a hash table in which a hash value of a composite key is stored in association with a composite value, as described in further detail below. Typically, a composite key comprises a key that is combined from (or includes) multiple different values. Typically, a composite value comprises a juxtaposition or combination of multiple different values.
[0110] refer to Figure 7 , showing a system 10 (e.g., Figure 1 In this example, the system causes various user interfaces to be rendered through which one or more data sources are selected, one or more data structures are selected, and one or more fields of those data structures are modified. In this example, data sources 72a to 72d (where data sources 72a to 72c correspond to data sources 12a to 12c, respectively) are candidate data sources that can be selected by rendering modules (e.g., Figure 1 The rendering module 20 in the example obtains data from the rendering module 20. Figure 1 ) provides various graphical user interfaces through which end users (e.g., business users) view and access curated subsets of data. The system generates instructions from the curated subsets to perform various operations and actions, for example, based on the data received through the graphical user interface. The data subsets are curated from a superset of data across data sources (e.g., data sources 72a to 72d) into subsets for specified operations (such as segmentation operations). The rendering module also provides a graphical user interface to receive instructions on how to curate data. In this example, data sources 72a to 72d are a superset of data from which subsets are generated (e.g., curated). The system selects data sources 72b, 72d as data sources for modifying various data structures (e.g., tables). In some instances, based on the selection of data sources 14, 18, the system identifies references to data sources 72a, 72d and stores them in memory 16 ( Figure 1 ) to find out which tables are associated with those identified references. The system then retrieves those tables from data sources 72b, 72d or from memory 16 when memory 16 stores the tables themselves.
[0111] In this example, data source 72a includes tables 73, 74, and 75. Data source 72d includes tables 78, 79, 80, and 81. Figure 1 ) renders a visual representation of table 26, the system selecting table 26 from tables 73, 74, 75 as the data structure to be modified (e.g., curated). Figure 1) renders a visual representation of table 32, the system selecting table 32 from tables 78, 79, 80, 81 as the data structure to be modified (e.g., curated). These selections are made based on user instructions received, for example, through the user interface to select tables 26, 32. That is, not all tables 73, 74, 75, 78, 79, 80, and 81 are modified and curated. Only those selected tables from those selected data sources are modified and made available in the user interface 24 ( Figure 1 ) is available in
[0112] View 75a of table 75 shows the contents of table 75. View 75a and table 75 may be collectively referred to herein as "table 75" without limitation and for convenience. Table 75 includes a title portion 75g that specifies the title of "plan sts." In this example, table 75 includes columns 75b, 75c, 75d (also referred to herein as "fields 75b, 75c, 75d," respectively). The names of fields 75b, 75c, 75d are "sub_id," "min_usd," "prc_pln_id," respectively. Table 75 also includes rows 75e, 75f. In one example, table 75 (or a visual representation of table 75) is rendered in a user interface to enable modification and / or renaming of titles and / or fields, and also to enable specification of one of the fields as a key, which, for example, will be used when combining fields of various tables. Table 76 is a modified version of table 75. Table 76 is rendered on client device 85a based on receipt of graphical user interface data from execution system 14, wherein the graphical user interface data specifies the contents of table 75. In this modified version of table 75, the original title specified in portion 75g has been modified to the title "Plan Statistics", as specified in portion 76a. In addition, each of fields 75b, 75c, 75d has been renamed to a more descriptive name (e.g., a name that is more meaningful to a business user). In this example, the name of field 75b is renamed to "Subscriber ID", as shown in field 76b. Typically, a subscriber includes a user of a system and is identified by a key (also referred to as a subscriber ID). In this example, as shown in icon 76c, field 76b is selected as a key. The name of field 75c is renamed to "Minutes Used", as specified in field 76e. The name of field 75d is renamed to "Price Plan Name", as specified in field 76f. Table 76 also includes rows 76g, 76h, the contents of each row corresponding to rows 75e, 75f, respectively. In this example, table 76 is presented to the end user by the system. In this example, only table 76 (and none of tables 73, 74, 75) is presented to the end user to enable viewing and / or selection of data available from data source 14. Table 76 (or a visual representation of table 76 (not shown)) represents a curated version or arrangement of data from data source 14. In some examples, a curated version of table 75 (e.g., table 76) may include only a subset of the fields in table 75. For example, field 75c or 75d may be removed and not included in table 76. In another example, a user may select a row in table 75 (or table 76) as a pivot row, for example, when there are multiple rows for a particular subscriber ID.
[0113] View 83 of table 81 shows the contents of table 81. View 83 and table 81 may be collectively referred to herein as "table 81" without limitation and for convenience. Table 81 includes a header portion 83a that specifies the title "Bndld_vc_data". In this example, table 81 includes columns 81b, 81c (also referred to herein as "fields 81b, 81c", respectively). The names of fields 81b, 81c are "sub_id" and "sub_bndledvd", respectively. Table 81 also includes rows 81d, 81e. In one example, table 81 is rendered in a user interface to enable modification and / or renaming of the title and / or fields, and also to enable specification of one of the fields as a key, which is to be used, for example, when combining fields of various tables. Table 83 is a modified version of table 81. Table 83 is rendered on client device 85b based on receipt of graphical user interface data from execution system 14, wherein the graphical user interface data specifies the contents of table 81. In this modified version, the original title specified in section 81a has been modified to the title "Binding Voice and Data", as specified in section 83g. In addition, each of fields 81b, 81c has been renamed to a more descriptive name (e.g., a name that is more meaningful to a business user). In this example, the name of field 81b has been renamed to "Subscriber ID", as shown in field 83a. In this example, field 83a has been selected as a key, as shown in icon 83b.
[0114] As specified by field 83c, the name of field 81c is renamed to "Binding Voice and Data". Table 83 also includes rows 83d, 83e, the contents of each row corresponding to rows 81d, 81e, respectively. In this example, table 83 is presented to the end user by the system. In this example, only table 83 (and no table in tables 78, 79, 80, 81) is presented to the end user to enable viewing and / or selection of data available from data source 72d. Table 83 represents a curated version or arrangement of data from data source 72d.
[0115] refer to Fig. 8A , a graphical user interface 90 is rendered by the system to enable selection of one or more data sources from which data can be modified, for example. In this example, the graphical user interface 90 is rendered by the rendering module 20 ( Figure 1 ) is one of the graphical user interfaces rendered by . The graphical user interface 90 includes a menu portion 92 having a control 92a, the selection of which causes the graphical user interface 90 to display visual representations 93a to 93d of available data sources in a portion 94 of the graphical user interface 90. In this example, the visual representations 93a to 93d represent the data sources 72a to 72d ( Figure 7 ). Through the graphical user interface 90, the user selects the data source 72a, 72d ( Figure 7) or 12, 14( Figure 2 ) as data sources from which data structures are selected for modification, as shown by visual representations 95a, 95d juxtaposed with visual representations 93a and 93d, respectively. In this example, column 96 includes selectable controls (not shown), the selection of which results in displaying a visual representation, such as one of visual representations 93a and 93d.
[0116] refer to Figure 8B , displays an advanced state of the graphical user interface 90 to enable selection of one or more data structures (e.g., tables) from the selected data source for modification. In this example, for each selected data source 72a, 72d ( Figure 7 ) data structure, the graphical user interface 90 displays a menu portion 92 (for example, which may correspond to Fig. 8A 92) has a control 92a, the selection of which causes the graphical user interface 90 to be displayed in section 94. For example, section 94 displays a table 96 including columns 95a to 95j. Column 95a displays visual representations 96a to 96g having the name of the selected data source, such as Figure 3 or Figure 7 Visual representations 96a to 96g represent, for example, the selection according to visual representation 95d ( Fig. 8A ) selected data source 72d, thereby designating data source 72d as the data source to be curated from its selection list. Visual representations 96a to 96g represent, for example, Fig. 8A ) of data source 72d, thereby designating data source 72d as the data source from which the table is selected for curation. Column 95b displays visual representations 97a to 97g, each of which represents the name of a table in the data source represented in a corresponding one of visual representations 96a to 96g. Column 95c displays the data type of each table represented in column 95b. Column 95d provides controls for entering a description of each table represented in column 95a. Column 95e displays selectable controls, the selection of which specifies (e.g., by displaying visual representations, such as visual representations 95e', 95e") the table from which data and / or data structures are selected for modification. In this example, visual representations 95e', 95e" are displayed in column 95e to specify that the tables represented by visual representations 97c, 97f, respectively, are the tables selected for modification.
[0117] Table 96 also includes columns 95f through 95h, each of which specifies a particular function that may be selected and applied. Table 96 includes a "Last Updated" column 95i that displays, for each row in table 96, data specifying the user who last updated the table represented by the row and when the update was performed. Table 96 also includes an edit column 95j that displays controls (e.g., controls 95j', 95j") for each row in table 96. For a particular row for which column 95e specifies that the table represented by the row is editable, selection of a control displayed in the edit column 95j for the row enables editing and modification of the table. For example, selection of control 95j' enables modification of the table represented by visual representation 97c. In this example, visual representation 97c represents table 75( Figure 7 ) and modify table 75 as previously described. Selection of control 95j" enables modification of the table represented by visual representation 97f. In this example, visual representation 97f represents table 81 ( Figure 7 ) and modify Table 81 as described above.
[0118] refer to Figure 8C , displaying a graphical user interface 150 (e.g., via Figure 1 The graphical user interface 150 includes a menu portion 152 that includes controls, the selection of which enables various types of instructions to be generated. In this example, the menu portion 152 includes a control 154, the selection of which enables the specification of one or more fields in one or more selected data structures (e.g., 72a, 72d), from which data records are selected (and / or operations are performed on those data records).
[0119] Graphical user interface 150 includes an editor interface 156 for specifying data segmentation and various other operations (e.g., like filtering, combining, etc.). When control 154 is selected, component 158 is displayed in editor interface 156. Usually, component represents executable logic (or instruction), such as segmentation logic, to perform various operations. The component receives input such as selection data or other input data (via editor interface 156), and the system uses the received input to generate executable logic. In one example, the system stores preconfigured mappings between executable logic and components. Then, based on input or otherwise specified by component, executable logic (for the component) is updated or modified to include input. Component 158 enables specifying instructions to select specific tables (e.g., planning tables) such as 97a to 97g. Component 158 includes icon 160, the selection of which enables selection of specific planning tables.
[0120] refer to Fig.8D , showing a graphical user interface 170. The graphical user interface 170 is a graphical user interface 150 ( Figure 8C ), for example, it is updated after selecting icon 160. When icon 160 is selected, overlay portion 172 is rendered in graphical user interface 170. Overlay portion 172 includes (the modified and curated table 83 ( Figure 2 )、97f( Figure 8B ) of the visual representation 172a and the modified and curated table 76 ( Figure 7 ) of the visual representation 172b. In this example, the visual representation 172a is selected.
[0121] refer to Fig. 8E , showing a graphical user interface 174. The graphical user interface 174 is a graphical user interface 170 ( Fig.8D ). When visual representation 172a is selected, overlay 176 is shown. Overlay 176 shows table 38 ( Figure 7 ) and includes a selectable portion 176a, the selection of which enables a user to select the fields represented in the selectable portion 176a (i.e., the "bound voice and data fields") for inclusion in the executable logic represented by component 158. Overlay 176 also includes portion 176b, which represents a subscriber ID field. In this example, selection of selectable portion 176a automatically causes selection of portion 176b because the values in the fields represented in selectable portion 176a need to be associated with a subscriber ID in order to attribute the values to the appropriate subscriber. In some examples, the executable logic represented by component 158 is modified or updated based on the fields selected by selecting selectable portion 176a.
[0122] refer to Fig.8F , showing a graphical user interface 180. The graphical user interface 180 is a graphical user interface 174 ( Fig. 8E ). In this example, component 158 is updated with sections 158a, 158b. Section 158a specifies the title of component 158, where the title is based on Fig. 8E. Portion 158b specifies that executable logic (represented by component 158) is configured to select, for example, from data records received or stored by the system, those data records for which the value of the "bound voice and data" field is equal to "1". More generally, portion 158b specifies segmentation of received or stored data records by identifying which of the received data records have one or more fields corresponding to the one or more fields represented in the selected one or more selectable portions. Typically, segmentation includes assigning data records to specified groups, partitioning data records and / or excluding data records from specified sets and including data records in other sets. This allows a user to initiate segmentation of data records "on the fly" through the editor interface. The representation displayed via the editor interface thus provides a graphical shortcut for setting conditions for the segmentation process, for example, compared to defining these conditions step by step (such as by entering the conditions), which results in more efficient (time and resource) segmentation of incoming data records. Overall, a user is provided with more direct, less error-prone and faster control over the segmentation of incoming data records. Fig.8F In the example of selecting the optional portion 176a ( Fig. 8E ), portion 158b is automatically populated with the following string: "Subscriber with bound voice and data = ____". In this example, graphical user interface 180 displays a prompt (not shown) prompting the user to fill in the empty field "_____" in the aforementioned string with a value of "1" or "0". In this example, the user selects the value "1". In this example, the subscriber referenced in the aforementioned string is represented by portion 176b ( Figure 7 ) is represented by the subscriber ID field represented in .
[0123] In this example, the user also selects control 154 to cause component 182 to be added to editor interface 156. Component 182 enables instructions to be specified to select one or more fields from another specific table (e.g., a curated table). Component 182 includes icon 182a, selection of which enables selection of a specific curated table and / or selection of fields from a specific curated table.
[0124] refer to Figure 8G , showing a graphical user interface 184. The graphical user interface 184 is a graphical user interface 180 ( Fig.8F ), for example, it is updated after selecting icon 182a. When icon 182a is selected, overlay portion 186 is rendered in graphical user interface 184. Overlay portion 186 includes (the table 83 (which has been modified and curated) Figure 7 ) of the visual representation 186a and the modified and curated table 76 ( Figure 7) of the visual representation 186b. In this example, the visual representation 186b is selected.
[0125] refer to Figure 8H , showing a graphical user interface 188. The graphical user interface 188 is a graphical user interface 184 ( Figure 8G ). In Select Visual Representation 186b ( Figure 8G ), stack 190 is shown. Stack 190 shows Table 76 ( Figure 7 ) and includes selectable portions 190a, 190b, 190c, the selection of which enables a user to select a subscriber ID field, a usage minutes field, and a price plan name field, respectively, for inclusion in the executable logic represented by component 182. In this example, selection of one or more of selectable portions 190b, 190c automatically results in selection of selectable portion 190a because the values in the fields represented in selectable portions 190a, 190b need to be associated with a subscriber ID in order to attribute the values to the appropriate subscriber (e.g., user). In some examples, the executable logic represented by component 182 is modified or updated based on the fields selected by selecting selectable portion 190b, which is selected in this example.
[0126] refer to Figure 8I , showing a graphical user interface 192. The graphical user interface 192 is a graphical user interface 188 ( Figure 8H ). In this example, component 182 is updated with sections 182b, 182c. Section 182c specifies the title of component 182, where the title is based on Figure 8H Section 182b specifies that executable logic (represented by component 182) is configured to select, for example, from data records received or stored by the system, those data records that include a "minutes of use" field, as indicated in optional section 190b ( Figure 8H ). In this instance, the "Minutes of Use" field is a curated field and does not actually match the name of the field in the actual data record. Therefore, the system stores Figure 7 Table 75 in (including the actual names of the fields in the data records themselves) and Figure 7 75 (including the curated names of the fields) and a mapping between each field name in table 75 and the field name in table 76. Based on the mapping, the system looks up the actual field name against the curated field name. For example, the system uses the mapping to recognize that the "minutes used" field referenced in section 182b is actually the "min_used" field in the data record.
[0127] refer to Figure 8J, graphical user interface 194 shows that the editor interface is updated with a combine component 200 after the control 198 is selected. In this example, combine component 200 represents executable logic that combines two different data streams or sets of data records together. In this example, combine component 200 represents the output of component 158 (those data records whose value of the "bound voice and data" field is equal to "1") and the output of component 182 (those data records with a value in the "subscriber minutes used" field) are combined. In a variation, the output of component 158 is the "bound voice and data" field when the value is equal to "1" (i.e., the data records have a value in the "subscriber minutes used" field). Figure 7 The value of field 81c or field 82c in the Figure 7 In this variation, the output of component 182 is the "Minutes Used" field ( Figure 7 The value of field 76c or field 75c in the Figure 7 182). The executable logic represented by the join component 200 joins the outputs of the components 158, 182 together by the subscriber ID. In this example, connectors 201, 203 may be selected from the menu portion 152, for example, via selection of the control 197, to specify that the outputs of the components 158, 182 are inputs into the join component 200 to join the outputs of the components 158, 182 together.
[0128] In this example, editor interface 156 displays the definition of a particular snippet that can be saved (eg, for future use) by selecting save control 196, which prompts the user to enter a name for the snippet so that the snippet can be subsequently retrieved by that name.
[0129] refer to Figure 8K , a graphical user interface 206 is displayed to enable the creation of predefined data aggregates (also referred to as "entities"). Specifically, for example, based on instructions received through the user interface 206, the system combines data from different tables to generate these entities, which are then available when generating segments (e.g., by the system). These entities organize various data into specified categories.
[0130] The graphical user interface 206 includes a menu portion 207 with a subscriber control 207a, the selection of which causes the display of an entity portion 208. The entity portion 208 displays defined entities and includes a generate control 205, the selection of which displays a series of prompts and controls for the user to define a new entity. In this example, the entity portion displays a visual representation 209 of a previously defined entity that specifies an aggregate of data associated with a handset or device associated with a particular key (e.g., representing a subscriber).
[0131] refer to Figure 8L , for example, when selecting Generate Control 205 ( Figure 8K ), the graphical user interface 210 is displayed as the graphical user interface 206 ( Figure 8K ). The graphical user interface 210 enables the creation of a new entity and includes a name portion 210a for entering information specifying the name of the entity being created; a prefix portion 210b for entering a prefix specifying a technical or database field name of the entity being created; and a description portion 210c for entering information specifying a description of the entity being created. The graphical user interface 210 also includes a fields portion 212 that specifies fields 212a through 212j that are included in the entity defined in the graphical user interface 210. In this example, the fields 212a through 212j are derived from data sources included in various data sources (e.g., Figure 1 In this example, field section 212 displays the original field names (e.g., from the uncurated table) in column 212k and the modified or curated field names in column 212l. In this example, field 212h corresponds to Figure 2 212h. Field 212m corresponds to field 75d in Figure 7 76f in the example to illustrate how the field section 212 enables selection of fields by their original field names and their modified field names. The field section 212 also includes a search control 212n for entering a search query or one or more search terms. The system uses the input of the search control 212n to search (from a table in the data source) for field names that match or correspond to the search criteria. After selecting the appropriate fields, these fields are displayed in the field section 212.
[0132] refer to Figure 8M , the graphical user interface 213 is the graphical user interface 206 ( Figure 8K ). In this example, entity portion 208 is updated to display visual representation 214, which represents the modified version of the entity portion 208 according to the graphical user interface 210 ( Figure 8L ) (hereinafter referred to as "subscriber enriched entities"). In this example, the entities represented in the visual representations 209, 214 are made available to the user in the definition segment, as described in further detail below.
[0133] refer to Figure 8N , graphical user interface 216 is displayed and is associated with graphical user interface 194 ( Figure 8J) The same graphical user interface. Selecting control 218 from menu portion 152 accesses predefined entities such as those represented in entity portion 208 (FIG. 15).
[0134] refer to Fig.8O , graphical user interface 220 is displayed and is a graphical user interface 216 ( Figure 8N ) wherein an overlay portion 222 is rendered in the editor interface 156. The overlay portion 222 includes (in Figure 8L ) visual representation 222a of the subscriber enriched entity defined in the graphical user interface 210 in the Figure 8K 209 in the visual representation of the cell phone entity) visual representation 122b. In this example, the visual representation 222a is selected, for example, to add a subscriber who meets certain criteria specified by the subscriber enrichment entity to the segment defined in the editor interface 156.
[0135] refer to Figure 8P , displaying graphical user interface 224. Graphical user interface 224 is a graphical user interface 220 ( Fig.8O ) in which an entity component 226 is added to the editor interface 156. In this example, the entity component 226 represents executable logic that, when executed, retrieves a Figure 8M In one variation, entity component 226 represents executable logic that, when executed, retrieves fields 212k to 212j ( Figure 8M ) and the values of the keys associated with those fields. In this example, profile data is output from entity component 226 and coupled to coupling component 200 via connector 228, coupled with the output of components 158, 182. By adding entity component 226 to editor interface 156, segment 230 is defined to include only those subscribers specified by entity component 226, subscribers with bound voice and data plans (as specified by component 158) and subscribers with used minutes (as specified by component 183). In this example, segment 230 is saved for subsequent use by selecting save control 196. In this example, selecting save control 196 causes executable logic represented by components 158, 182, 200, 226 and by connectors 201, 203, 228 to be saved (e.g., in a data structure) for subsequent retrieval, such as to further define other segments. In this example, execution system 14 ( Figure 1 ) can perform segmentation 230, for example by storing the segments in memory 16 ( Figure 1) to include only those data records having fields and / or having values of fields that satisfy the definition specified by segment 230. In this example, segment 230 may be accessed via segment control 232, which provides for selection of segment components. Segment components allow defined segments to be used as a source of data selection when building segments.
[0136] In this example, segment 230 is composed of Figure 1 Segmentation module 22 (or Fig. 9 The segmentation module 22 in the system 14 (executable data flow graph) is executed to execute the segmented executable data flow graph. Typically, the executable data flow graph includes a directed data flow graph, the vertices in the graph represent components (data files or processes), and the links or "edges" in the graph indicate the data flow between the components. A system for executing such graph-based computations and data flow graphs is described in prior U.S. Patent No. 5,966,072, entitled "EXECUTING COMPUTATIONS EXPRESSED AS GRAPHS", which is incorporated herein by reference. By executing the segmentation as in the system 14 ( Figure 1 ) when the system is performing functions such as sorting, filtering, combining, etc. on data and data records (by executing the data flow graph) rather than directly in memory 16 ( Figure 1 ) or other data storage device to perform the function, the system resources of the system 14 and the memory 16 ( Figure 1 That is, when the operations required for segmentation are performed directly in the memory 16, the memory 16 ( Figure 1 )'s processing power and speed are increased relative to the processing power and speed of memory 16.
[0137] In some examples, the system described herein identifies segments for various activities. Typically, an activity is a definition of a selection of offers, such as those sent to a specified user at a specified time. A data flow graph may define an activity, such as when the executable logic of the data flow graph specifies how to determine which offers are sent to the segments assigned to the activity. A retention type may be assigned to an activity, including, for example, instructions for specifying or limiting membership of the activity. There are various retention types, including, for example, a "none" type, a "global" type, a "voice" type, a "data" type, a "SMS" type, a "package" type, a "reload" type, and the like. An activity with a retention type of "none" has no restrictions on subscribers. An activity with a "global" retention type specifies that a subscriber can be in the activity but not in other activities at the same time. An activity with a "voice" retention type specifies that a subscriber can only be in a single activity of the voice retention type at a time. An activity with a "data" retention type specifies that a subscriber can only be in a single activity of the data retention type at a time. An activity with a "SMS" retention type specifies that a subscriber can only be in a single activity of the SMS retention type at a time. An activity with a hold type of "package" specifies that a subscriber can only be in a single activity of the package hold type at a time. An activity with a hold type of "reload" specifies that a subscriber can only be in a single activity of the reload hold type at a time. When configuring an activity, the user can choose whether to release the subscriber from the activity hold at the end of the activity period.
[0138] The system also assigns each activity a topic (e.g., a data structure storing data representing the topic) that represents the goal of the activity. Activity topics have a priority. As described below, the system uses this priority during the activity arbitration process using the contact strategy.
[0139] At any point in time, a subscriber may be eligible for one or more campaigns. Importantly, and in some cases regulated by a governing body, this is not about spamming a subscriber with too many offers, but rather targeting the most important offers to the subscriber. Contact policies control how often the system communicates with a subscriber during a campaign. Contact policies set limits on the number of outbound offers that the system can transmit. If a subscriber is eligible for multiple campaigns, the system needs to extend those offers according to the contact policies and according to the relative priority of the various executing campaigns so that offers are not extended for lower priority campaigns when offers could be extended for higher priority campaigns. For example, a subscriber may be in a particular phase of a high priority campaign, but has begun to fall into a low engagement segment. As described below, the system enforces campaign arbitration instructions to ensure that subscribers are not assigned lower priority offers when they should be assigned higher priority offers.
[0140] In the event that the contact policy limits the number of offers that can be sent to a target customer, the system executes a campaign arbitration instruction to select the best offer based on the campaign subject and priority. For example, if the contact policy states that only two offers can be sent to a customer per day, and the customer is eligible for five offers, the system selects the top two offers based on the campaign subject and priority (e.g., the system selects two offers that are each associated with one of the top two priorities relative to the priorities of the other campaigns).
[0141] For example, when thousands of activities are configured, an activity scheduled to execute earlier in the day may consume contact policy limits that the system would like to provide to higher priority activities. To address this issue, the system uses the priority of the activity topic to reserve communication slots for subscribers with communication subsystems included in the system. Typically, the system stores a data structure or queue for each subscriber and populates entries in the data structure with data indicating when a message is to be sent to the subscriber and / or populates entries in the data structure with data that reserves the entry for a particular activity. When a message needs to be sent, the system then checks the contact policy of the subscriber and the data structure for that subscriber so that lower priority activities do not consume contact policy limits that are needed later in the day.
[0142] refer to Figure 8Q , displaying the graphical user interface 270 to enable modification of the graphical user interface 210 ( Figure 8L ). In this example, a create control 272 is selected, for example, to add one or more additional fields to the definition of the subscriber enriched entity. In this example, upon selecting the create control 272, one or more in-memory aggregates are added to the subscriber enriched entity.
[0143] refer to Figure 8R , display stack 274 as, for example, graphical user interface 270 ( Figure 8Q ). In this example, the overlay 274 shows various types of in-memory aggregates 274a, 274b, 274c, 274d that can be added for inclusion in a subscriber enrichment entity. In this example, an in-memory aggregate 274d (i.e., in-memory aggregate 274d') is selected for inclusion in the subscriber enrichment entity. In this example, the in-memory aggregate 274d' is an in-memory aggregate that specifies a voice usage count (e.g., the number of voice calls made by the user).
[0144] refer to Figure 8S , graphical user interface 276 is graphical user interface 270 ( Figure 8Q) in which field portion 212 is updated to include field 278 based on the selection of in-memory aggregate 274d' in FIG. 21. Field 278 is a field for storing the value of in-memory aggregate 274d', thereby adding in-memory aggregate 274d' to the subscriber enrichment entity. In this example, in-memory aggregate 274d' is a voice usage count in-memory aggregate that provides a count of the number of voice calls per key.
[0145] refer to Figure 8T , the graphical user interface 280 is a graphical user interface 224 ( Figure 8N ), wherein, for example, after selecting filter control 284, filter component 282 is added to editor interface 156. Filter component represents executable logic to filter data on its stream according to specified rules. As specified by connector 286, profile data output from entity component 226 is input into filter component. In this example, profile data output from entity component 226 includes values for aggregates in voice usage count memory (e.g., for each key value). Filter component 282 is configured to exclude those data records from data records included in output profile data, wherein the value of the aggregate in voice usage count memory is greater than or equal to value 2. In this example, only data records received that the specified subscriber has made less than two voice calls will pass through the logic represented by filter component 282, because these are only data records received that the specified subscriber has made less than two voice calls. Those data records that pass the criteria or logic represented by filter component 282 are filtered data, and they are input into combination component 200 (as specified by connector 288). The contents of editor interface 156 define a new segment, segment 290 .
[0146] refer to Fig. 9 , execution environment 300 uses data source 303 (e.g., as previously explained, for receiving data records for which fields are to be curated or otherwise modified), data source 302 (for receiving data records to be processed), and includes system 314 for implementing collect-detect-act (CDA). Generally, CDA refers to the process by which system 314 collects data records, processes those data records to detect which data records include values that meet specified criteria, and performs one or more actions with reference to those data records. As described above, the environment also includes pre-execution module 14' (similar to execution module 14), which includes data structure modification module 18 ( Figure 1) for selecting one or more data sources from which data can be obtained and one or more data structures in those selected one or more data sources for modifying the one or more data structures (e.g., by modifying field names). The pre-execution module 14' also includes a rendering module 20 ( Figure 1 ) for use in rendering a visual representation of the modified data structure in a user interface (displayed on the client device 301), such as Figure 1 discussed in .
[0147] refer to Fig.10 , the system 314 includes a collection module 316 for collecting data records (e.g., data records 302a to 302c and other data received from the data source 302), converting the data in the data records 302a to 302c into transformed data 306, and distributing the transformed data 306 to downstream applications, including, for example, a segmentation module 326, a detection module 318, and an action module 320. The content of the data record 302a includes "ID: 34213, event type: voice, date: 4 / 3 / 2018". The content of the data record 302b is "ID: 34214, event type: SMS, date: 4 / 3 / 2018". The content of the data record 302c is "ID: 34215, plan type: binding plan, date: 4 / 3 / 2018". In this example, the action module 320 includes an interface to a third-party system and / or external system. Specifically, the acquisition module 316 collects data in batch or real-time from various sources (such as data source 302) or from different servers located at different locations and interconnected via a network, and collects data from real-time data streams, such as real-time data from different servers located at different locations and interconnected via a network. The storage device providing the data source 302 can be local to the system 314, such as stored on a storage medium (e.g., a hard drive) connected to the computer operating system 314, or can be remote from the system 314, such as hosted on a remote system that communicates with the system 314 via a local area data network or a wide area data network.
[0148] The collection module 316 records in the memory 322 a record of each event that occurs in the received data record. As previously described, the collection module 316 records these occurrences in a data record or table. In this example, the collection module 316 records the occurrences of the received events in a hash table in the memory 322. For each received record, the collection module 316 generates (i) a composite key value by generating a composite key, then hashing the composite key to generate a hashed composite key, as shown in column 346a, and generates (ii) a composite value, as shown in column 346b. In this example, the composite value is generated from data included in the fields in the received data record and / or from previously stored data (e.g., stored in the memory 322 or the memory 324) representing an aggregate (e.g., count, minimum value, average value, maximum value, etc.). In this example, the entry 346c in the hash table 346 is generated from the received record 302a. To generate entry 346c, collection module 316 hashes the value of the ID field in record 302a ("34213") to generate a hash value of "0111", which is then stored in column 346a for entry 346c. In this example, collection module 316 includes the value "voice" for the event field in record 302a in composite value column 346b of entry 346c. Collection module 316 also includes other aggregates (e.g., retrieved from memory 322 or persistent storage 324) for ID: 34213 in composite value column 346b of entry 346c. In this example, the retrieved aggregate data represents a count ("4") of the number of SMS messages used in a specified time period (e.g., in the past thirty days). In this example, hash table 346 also includes entries 346d, 346e having the values shown in columns 346a and 346b. In this example, entry 346d includes a compound value of "Binding Plan, Average 23 Minutes", indicating that for an ID with a hash value of "0010", the ID is associated with a binding plan (the value is retrieved from a field of the received data record), and the average number of minutes for the subscriber with the ID is twenty-three minutes (the value is an aggregate retrieved from memory 322 or persistent storage 324). Entry 346e contains a compound value of "50 Minutes, Average 2340 Minutes", indicating that for an ID with a hash value of "1101", the ID is a current event (e.g., a phone call) with a length of fifty minutes (the value is retrieved from a field of the received data record), and the average number of minutes for the subscriber with the ID is two thousand three hundred and forty minutes (the value is an aggregate retrieved from memory 322 or persistent storage 324). As described in further detail below, segmentation module 326 then segments the data records by identifying which of the data records include values for the fields that meet various criteria of one or more segment definitions stored in memory 322. In this example, segmentation module 326 includes segmentation logic 326a.
[0149] Now also refer to Fig.10 In this example, the detection module 318 executes segmentation logic 326a stored or otherwise included in the segmentation module 326, which can be connected to Figure 1 326a). Segmentation module 326 executes one or more segmentation definitions to identify subscribers (identified by a key or subscriber ID) that meet various criteria (e.g., segmentation logic 326a) included in one or more segmentation definitions. For example, segmentation module 326 executes segmentation definitions against one or more sets of data records stored, for example, in memory 322 or persistent storage 324 to identify a subset of those data records that meet various criteria of the segmentation definitions. Typically, a segmentation definition includes a data structure that stores data representing the definition of the segment. In this example, memory 322 stores records of event occurrences for fourteen days. Records of event occurrences older than fourteen days are stored in persistent storage 324.
[0150] In some examples, the segment definition requires real-time aggregates (or near real-time (e.g., live time) aggregates) of events that occurred within the last fourteen days. In this example, the segment module 326 generates the real-time aggregates by generating appropriate queries 344a-344c (for the segment definition) and submitting the queries to the memory 322. In response, the memory 322 executes an appropriate one of the queries 344a-344c against the hash table 346. In this example, each composite value of each corresponding hash key value in the hash table 346 is a result returned to the query 344a-344c. In this example, the memory returns query results 347, which include returned entries 347a-347c, as described in further detail below.
[0151] In this example, the segmentation module 326 generates a query 344a from the content of the record 302a (and / or from data including in the transformed data 306 that represents the content of the record 302a). In this example, the segmentation module 326 detects that the record 302a includes a speech value for the event type field. Based on this field, the segmentation module 326 generates a query 344a that includes a composite key "34213.speech" that is the concatenation of the values of the ID field and the event type field in the data record 302a. Upon receiving the query 344a, the memory 322 is configured to hash the first portion of the composite key because the first portion represents the value of the ID. In this example, the hash value "34213" is "0111", and the memory 322 returns to the segmentation module 326 entry 346c as a return entry 347a. In this example, when returning the value of entry 346c, memory 322 does not hash the hashed key value, so that the returned entry 347a includes the ID value "34213".
[0152] Segmentation module 326 generates query 344b from the content of record 302b (and / or from data including in transformed data 306 that represents the content of record 302b). In this example, segmentation module 326 detects that record 302b includes a value of SMS for the event field. Based on this field, segmentation module 326 generates query 344b that includes a composite key "34214.SMS" that is the concatenation of the values of the ID field and the event type field in data record 302b. Upon receiving query 344b, memory 322 is configured to hash the first portion of the composite key because the first portion represents the value of ID. In this example, the hash value "34214" is "0010", and memory 322 returns to segmentation module 326 entry 346d as return entry 347b. In this example, when returning the value of entry 346d, memory 322 does not hash the hashed key value, so that the returned entry 347b includes the ID value "34214".
[0153] The segmentation module 326 generates a query 344c from the content of the record 302c (and / or from data including in the transformation data 306 that represents the content of the record 302c). In this example, the segmentation module 326 detects that the record 302c includes a binding plan value for the event field. Based on this field, the segmentation module 326 generates a query 344c that includes a composite key "34215.binding plan", which is the concatenation of the values of the ID field and the event type field in the data record 302c. Upon receiving the query 344c, the memory 322 is configured to hash the first part of the composite key because the first part represents the value of the ID. In this example, the hash value "34215" is "1101", and the memory 322 returns to the segmentation module 326 entry 346e as a return entry 347c. In this example, when returning the value of entry 346e, memory 322 does not hash the hashed key value, so that the returned entry 347c includes the ID value "34215".
[0154] Upon receiving the query result 347, the segmentation module 326 executes each of the return entries 347a to 347c for the segmentation logic 326a. In this example, the return entry 347a passes filter 1, and therefore the user represented by the ID in the return entry 347a is included in the segment. In this example, the return entry 347b passes filter 2, and therefore the user represented by the ID in the return entry 347b is included in the segment. In this example, the return entry 347c passes filter 3, and therefore the user represented by the ID in the return entry 347c is included in the segment. Based on each of the entries 347a to 347c that pass at least one filter included in the segmentation logic 326a, the segmentation module 326 executes the logic of "combine: output filter 1, output filter 2, output filter 3" (specified in the segmentation module 326), and generates a combined data record 327, which specifies the value of the ID field of the data record contained in the segment defined by the segmentation logic 326a. Segmentation module 326 transmits combined data record 327 to logic module 328 for further processing, as described in more detail below.
[0155] In some instances, the segmentation module 326 stores a shared variable representing the requested real-time aggregate. The segmentation module 326 stores the value or values or entries returned from the memory 322 in a shared variable, which can then be accessed by the various segmentation definitions requesting the shared variable. In this instance, the aggregate returned from the memory 322 (e.g., as one or more composite values included in the entry returned, for example, from the hash table 346) is a real-time aggregate (or a near real-time aggregate) because the system 314 does not need to retrieve the data from the disk (e.g., the persistent memory 324). Instead, the aggregate can be retrieved from the memory on the system (e.g., the memory 322). In addition, the system 314 pre-computes the aggregate, for example, by recording the occurrence of the event rather than storing the record itself. By recording the occurrence of the event, the system 314 can execute queries faster by simply identifying the column with a name that matches (or otherwise corresponds to) the requested data type. Then, if the requested aggregate is a count, for example, the system 314 can count the number of occurrences in the identified column, which has reduced processing time compared to the processing time required to parse the data records and fields in the data records to identify those data records having values that meet the specified criteria for the segmentation.
[0156] In another example, the segmentation module 326 requests a real-time aggregate of data records that occurred within the last twenty days. Therefore, the system 314 needs to query both the memory 322 and the persistent storage 324 for the real-time aggregate. In this example, the system 314 queries the memory 322 as described above. The system 314 also queries the persistent storage 324 for data (and / or occurrences of data) that meet the criteria required for the real-time aggregate. Based on the requested criteria, the persistent storage 324 retrieves the appropriate and / or relevant data from the data records (e.g., from a hash table 324a that hashes the contents of older records (e.g., records received before a specified date)) and sends the retrieved data (as data on disk) to the detection module 318.
[0157] In this example, data from persistent storage 324 includes data specifying event occurrences, where those occurrences occurred more than fourteen days ago. In this example, segmentation module 326 aggregates the data from persistent storage 324 with data retrieved from storage 322 to generate the requested real-time aggregate (e.g., an aggregate included in the composite value portion of the composite key value). Specifically, the segmentation definition implemented by segmentation module 326 specifies that only users who have made more than three voice calls in the past twenty days are included in the segment. In this example, executable logic implemented by logic module 328 is executed on data records for users in the segment (e.g., data records including keys representing users in the segment). In this example, system 314 queries storage 322 for a count of voice calls associated with a particular subscriber ID.
[0158] In this example, memory 322 returns a count of two voice calls that the user represented by the particular subscriber ID has made. System 314 then queries persistent memory 324 for a count of voice calls (made in the last six days) and the associated specified subscriber ID. The data returned from persistent memory 324 (e.g., based on a query with table 324a) specifies that the user associated with the particular subscriber ID has made one voice call. Thus, the data on disk specifies a count of one voice call that the user represented by the particular subscriber ID has made. Detection module 318 receives the data on disk and aggregates the count for the particular subscriber ID (included in the data on disk) with the count for the particular subscriber ID retrieved from memory 322 to identify that the user associated with the particular subscriber ID has made three calls in the last 20 days and therefore meets the criteria defined for the segment and is included in the segment.
[0159] In this example, the segmentation module 326 sends data items specifying the subscriber IDs of subscribers that meet the criteria of one or more segment definitions to the logic module 328. In this example, each data item is a wide record that contains all composite values used by the system 314. That is, a wide record is a wide record of all events or composite keys used by the system. In this example, the system stores all composite keys and associated composite values, as previously described. However, the system only includes in the wide record those composite keys that are actually used by the system 314 (e.g., by the segmentation module 326, the logic module 328, or the action module 320). In this example, the system pre-identifies which composite keys are being used and / or accessed, and the system only adds those accessed composite keys (and associated composite values) to the wide record to optimize system performance and ensure that no delays in data processing are added.
[0160] As previously described, logic module 328 stores and executes executable logic represented as a data flow graph. In this example, logic module 328 executes the data flow graph for a particular segment of subscribers, as identified in segment module 326. The data flow graph identifies different actions to be performed with respect to different subscribers, for example, based on the attributes of the subscribers included in the segment.
[0161] Upon detecting a subscriber (included in a segment) that meets various criteria for action execution, the detection module 318 publishes a trigger 332 (e.g., an instruction or message) to a queue, the contents of which are received and processed by the action module 320. Typically, the trigger 332 specifies one or more instructions to perform one or more actions.
[0162] The action module 320 performs the action that has been triggered, such as sending a text message or email, opening a ticket for a work order in a case management system, immediately disconnecting service, providing a web service to a target system or device, transmitting packet data using one or more notifications, etc. In another example, the action module 320 generates instructions and / or content for a message and sends these instructions (and / or content) to a third-party system, which in turn performs an action based on the instructions, such as transmitting a text message, providing a web service, etc. In one example, the action module 320 is configured to generate customized content for various recipients. In this example, the action module 320 is configured with rules or instructions that specify which customized content is sent or transmitted to which recipients.
[0163] Reference now Fig.11 , a process 350 for processing a data structure to modify properties of the data structure is shown. The process selects 352 one or more of a plurality of data sources to be represented in an editor interface, generates 354 a subset of data included in the plurality of data sources, and selects 356 one or more data structures from the selected data source(s), wherein each data structure includes one or more fields, and modifies the one or more fields by modifying 358 one or more properties of the one or more fields in the selected data structure(s). The modified data structure(s) are stored 360 in a memory (e.g., Figure 1 Memory 16 or Figure 6 56 or Figure 6 58), and the selected data structure is included in the subset. Displayed in the editor interface is a representation of the stored data structure. The process receives 364 selection data specifying a selection of one or more selectable portions through the editor interface, and the process 350 segments 366 the plurality of received data records by identifying which received data records have one or more fields corresponding to the one or more fields represented in the selected one or more selectable portions. Now referring to Fig.12, showing a process 380 for aggregating data records. Process 380 intermittently collects data from one or more data sources (e.g., 72a to 72d ( Figure 7 )) receives 382 data records and identifies 384 at least a first field and a second field in a given data record from one or more data sources. Process 380 detects 386 the presence of a first value in the first field and a second value in the second field of a given record. As described above, process 380 generates 388 a composite key value. The process retrieves 384 a composite key value from memory 322 ( Figure 7 ) accesses 390 aggregate data associated with at least a first field or a second field of a given record, generates 392 a composite key value, and records 394 an occurrence of a given data record.
[0164] Reference now Fig.13 , execution process 400, which shows the functional modules executed by each of the data structure modification module 18, the rendering module 20, the segmentation module 22, and the composite key module 30 and the logic module 25. The data structure modification module 18 receives a data structure 402, causes a visual rendering 404 of the data structure, and receives 406 a modified data structure 418 resulting from the execution system modifying the data structure in the data structure modification module 18.
[0165] The rendering module 20 receives the modified data structure from the data structure modification module 18 and causes 410 rendering of the segmentation template having the modified data structure. The rendering module also receives 412 the segmentation logic and sends 414 the segmentation logic to the segmentation module 22.
[0166] The segmentation module 22 receives 420 the segmentation logic and generates 422 compound key queries, which are sent 424 to the compound key module 30 .
[0167] The composite key module 30 receives 430 a data record (e.g., from Figure 1 The composite key module 30 stores 436 the composite key value (e.g., in Figure 3 in the data repository 12e).
[0168] Reference now Fig.14 , a process 450 is shown, in which functional modules performed by each of the segmentation module 22, the compound key module 30, and the logic module 25 are shown. The compound key module 30 receives 438 a compound key query and retrieves 440 those records having a compound key that meets the specified criteria and sends the retrieved records to the segmentation module 22. The segmentation module 22 receives 426 the retrieved query records from the compound key module 30 and sends 428 the retrieved records to the logic module 25.
[0169] Logic module 25 receives 450 the records sent from segmentation module 22 and applies 452 the logic specified by the segmentation logic, such as the executable logic represented by component 158, and thereafter outputs 454 the data set resulting from the processing.
[0170] The above techniques can be implemented using software to be executed on a computer. For example, the software forms a process in one or more computer programs that is executed on one or more programming or programmable computer systems (which can be various architectures such as distributed, client / server or grid), each of which includes at least one processor, at least one data storage system (including volatile and non-volatile memory and / or storage elements), at least one input device or port, and at least one output device or port. The software can form one or more modules of a larger program (e.g., providing other services related to the design and configuration of diagrams and flow charts). The nodes, links, and elements of the diagram can be implemented as data structures stored in a computer-readable medium or other organized data that conforms to a data model stored in a data repository.
[0171] The techniques described herein may be implemented in digital electronic circuit systems, or in computer hardware, firmware, software, or a combination thereof. The apparatus may be implemented in a computer program product tangibly embodied or stored in a machine-readable storage device (e.g., a non-transitory machine-readable storage device, a machine-readable hardware storage device, etc.) for execution by a programmable processor; and the method actions may be performed by a programmable processor executing an instruction program to perform functions by operating on input data and generating outputs. The embodiments described herein, as well as the claims and other embodiments of the techniques described herein, may be advantageously implemented on one or more computer programs that may be executed on a programmable system comprising: at least one programmable processor coupled to receive data and instructions from a data storage system, at least one input device, and at least one output device, and to send data and instructions to a data storage system, at least one input device, and at least one output device. Each computer program may be implemented in a high-level procedural or object-oriented programming language, or in an assembly language or machine language if desired; and in any case, the language may be a compiled language or an interpreted language.
[0172] Processors suitable for executing computer programs include, for example, both general-purpose microprocessors and special-purpose microprocessors, and any one or more processors of any kind of digital computer. Typically, the processor will receive instructions and data from a read-only memory or a random access memory or both. Essential elements of a computer are a processor for executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices (e.g., magnetic disks, magneto-optical disks, or optical disks) for storing data, or be operably coupled to receive data from or transmit data to one or more mass storage devices for storing data, or both receive and transmit data. Computer-readable media for embodying computer program instructions and data include all forms of non-volatile memory, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD ROM and DVD ROM disks. The processor and memory may be supplemented by or incorporated into a dedicated logic circuit system. Any of the above may be supplemented by or incorporated into an ASIC (Application Specific Integrated Circuit).
[0173] To provide interaction with a user, embodiments may be implemented on a computer having a display device (e.g., an LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including sound input, voice input, or tactile input.
[0174] Embodiments may be implemented in a computing system that includes a back-end component (e.g., as a data server), or includes a middleware component (e.g., an application server), or includes a front-end component (e.g., a client computer with a graphical user interface or a web browser through which a user can interact with an implementation of the embodiments), or any combination of these back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks (LANs) and wide area networks (WANs) (e.g., the Internet).
[0175] The system and method or part thereof may use the "World Wide Web" (Web or WWW), which is a collection of servers on the Internet that utilize the Hypertext Transfer Protocol (HTTP). HTTP is a known application protocol that provides users with access to resources, which may be information in different formats, such as text, graphics, images, sound, video, Hypertext Markup Language (HTML), and programs. After the user specifies a link, the client computer issues a TCP / IP request to the Web server and receives information, which may be another Web page formatted according to HTML. The user may also access other pages on the same or other servers by following on-screen instructions, entering specific data, or clicking on selected icons. It should also be noted that any type of selection device known to those skilled in the art, such as check boxes, drop-down boxes, etc., may be used for embodiments that use web pages to allow users to select options for given components. The server runs on a variety of platforms, including UNIX machines, although other platforms, such as Windows 2000 / 2003, Windows NT, Sun, Linux, and Macintosh, may also be used. Computer users may view information available on a server or network on the Web using browsing software such as Firefox, Netscape Navigator, Microsoft Internet Explorer, or Mosaic browsers. A computing system may include clients and servers. Clients and servers are generally remote from each other and generally interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship with each other.
[0176] Other embodiments are within the scope and spirit of the specification and claims. For example, due to the nature of software, the functions described above may be implemented using software, hardware, firmware, hardwiring, or any combination of these. Features that implement the functions may also be physically located in various locations, including being distributed so that parts of the functions are implemented at different physical locations. The use of the term "a" herein and throughout the application is not used in a restrictive manner, and therefore is not meant to exclude multiple meanings or "one or more" meanings of the term "a". In addition, with respect to claiming priority to a provisional patent application, it should be understood that the provisional patent application is not restrictive, but includes examples of how the technology described herein may be implemented.
[0177] Several embodiments of the present invention have been described. However, it will be appreciated by those skilled in the art that various modifications may be made without departing from the spirit and scope of the claims and the technology described herein.
Claims
1. A data processing system for identifying a subset of first data records from a plurality of data sources, and naming one or more fields of a second data record corresponding to the first data record in the subset, wherein the named fields of the second data record represent a renaming of the fields of the first data record, the data processing system comprising: A memory for storing a plurality of data sources to be represented in the editor interface; an identification module that identifies a plurality of data sources to be represented in an editor interface and identifies a subset of first data records contained in the plurality of data sources by: for each of the data sources, identifying one or more first data records from the data source, wherein each first data record includes one or more fields having one or more names; and for at least one first data record in the subset, naming one or more fields in a second data record, wherein at least one named field of the second data record is a renamed field, and the renamed field is a version of a field of the first data record whose field is renamed; and a rendering module that displays a representation of the renamed field in the editor interface, wherein second data records are stored in the memory, wherein at least one of the second data records includes the rename field; The rendering module receives, through the editor interface, selection data specifying a selection of a representation of the rename field; The identification module identifies one or more received data records having at least one field corresponding to the renamed field; as well as One or more indicators of the identified one or more data records are stored in the memory.
2. A method implemented by a data processing system, the method being for identifying a subset of first data records from a plurality of data sources, and naming one or more fields of a second data record corresponding to the first data record in the subset, wherein the named fields of the second data record represent a renaming of the fields of the first data record, the method comprising: identifying multiple data sources to be represented in the editor interface; A subset of first data records contained in the plurality of data sources is identified by: For each of these data sources, identifying one or more first data records from the data source, wherein each first data record includes one or more fields having one or more names; For at least one first data record in the subset, naming one or more fields in the second data record, wherein at least one named field of the second data record is a renamed field, wherein the renamed field is a version of the field of the first data record in which the field is renamed; displaying a representation of the renamed field in the editor interface; storing second data records in a memory, wherein at least one of the second data records includes the rename field; Receiving, via the editor interface, selection data specifying a selection of a representation for the renamed field; identifying one or more received data records having at least one field corresponding to the renamed field; as well as One or more indicators of the identified one or more data records are stored.
3. The method of claim 2, wherein the first data record includes a key field representing a key for the first data record, a record associated with a value of the key, the method further comprising: selecting a plurality of fields from the plurality of identified first data records; Stores executable instructions in memory that, when executed: selects values for the corresponding selection fields for the specified value of the key; combining the selected values with the specified value for the key; and Output these combined values.
4. A method as claimed in claim 3, wherein the representations are first representations, and wherein, The method further comprises: A second representation of the executable instructions is displayed in the editor interface.
5. The method of claim 4, further comprising: Additional selection data is received through the editor interface, the additional selection data specifying a selection of the second representation and further specifying one or more criteria to be applied to those outputs, the combined values of the one or more fields represented by the representation of the renamed field selected through the editor interface.
6. The method of claim 2, comprising: A user interface is displayed having one or more first controls for identifying the first data record and having one or more second controls for naming one or more fields of the second data record.
7. The method of claim 2, further comprising: receiving, via the editor interface, additional data specifying one or more criteria to be applied to one or more given fields represented by the representation of the renamed field selected via the editor interface; Wherein storing includes storing one or more indicators of one or more data records in the identified one or more data records having one or more values of one or more fields that satisfy the one or more criteria.
8. The method of claim 2, wherein each data record has one or more values for a particular field.
9. The method of claim 2, wherein at least one of the data sources comprises unidentified data records.
