The list of Reference tables available for TDM tasks is populated in the trnRefList translation object. TDM Extract tasks store the selected Reference data in the Cassandra DB and the TDM Load tasks select the Reference tables from Cassandra and load them into the target.
The Cassandra table of each Reference table must be created before running TDM Extract tasks to store data in Cassandra.
This job creates the schema of each Reference table in the Cassandra DB under the k2view_tdm keyspace.
The job scans the trnRefList and checks whether a table exists in Cassandra:
This job is executed on each Reference table by the main task execution process of the Extract task and populates the Reference table in the Cassandra DB. It selects the data of the Reference table from the source DB. The source DB Interface Name and Schema Name settings are taken from trnRefList. The selected records are populated into the Reference Cassandra table.
The job updates the status of the processed Reference table in the task_ref_exe_stats TDM DB table:
TDM Extract tasks can extract data from different source environments or can create different versions of a selected Reference table. As a result, each Cassandra table created for a Reference table, must store different versions of the Reference table. Each Cassandra table created for a Reference table contains the following columns to store Reference data for different source environments and different versions:
In addition to the columns above, each Cassandra table also contains the list of columns of the Reference table in the source DB.
The PK (primary key) of each Cassandra table consists of the following columns:
Example:
| CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | ------------- | ----------------- | ----------------- | | I | Private | Private customer | | B | S | Small business |
| CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | ------------- | ----------------- | ------------------- | | I | Private | Private customer | | B | S | Small business | | B | M | Medium business | | B | C | Corporate customer |
| SOURCE_ENV_NAME | TASK_EXECUTION_ID | REC_ID | CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | --------------- | ----------------- | ------ | ------------- | ----------------- | ----------------- | | ENV1 | ALL | 1 | I | Private | Private customer | | ENV1 | ALL | 2 | B | S | Small business |
| SOURCE_ENV_NAME | TASK_EXECUTION_ID | REC_ID | CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | --------------- | ----------------- | ------ | ------------- | ----------------- | ----------------- | | ENV1 | ALL | 1 | I | Private | Private customer | | ENV1 | ALL | 2 | B | S | Small business | | ENV1 | 1234 | 1 | I | Private | Private customer | | ENV1 | 1234 | 2 | B | S | Small business |
| SOURCE_ENV_NAME | TASK_EXECUTION_ID | REC_ID | CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | --------------- | ----------------- | ------ | ------------- | ----------------- | ------------------- | | ENV1 | ALL | 1 | I | Private | Private customer | | ENV1 | ALL | 2 | B | S | Small business | | ENV1 | 1234 | 1 | I | Private | Private customer | | ENV1 | 1234 | 2 | B | S | Small business | | ENV2 | ALL | 1 | I | Private | Private customer | | ENV2 | ALL | 2 | B | S | Small business | | ENV2 | ALL | 3 | B | M | Medium business | | ENV2 | ALL | 4 | B | C | Corporate customer |
| SOURCE_ENV_NAME | TASK_EXECUTION_ID | REC_ID | CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | --------------- | ----------------- | ------ | ------------- | ----------------- | ------------------ | | ENV1 | ALL | 1 | I | Private | Private customer | | ENV1 | ALL | 2 | B | S | Small business | | ENV1 | ALL | 3 | B | G | Government | | ENV1 | 1234 | 1 | I | Private | Private customer | | ENV1 | 1234 | 2 | B | S | Small business | | ENV2 | ALL | 1 | I | Private | Private customer | | ENV2 | ALL | 2 | B | S | Small business | | ENV2 | ALL | 3 | B | M | Medium business | | ENV2 | ALL | 4 | B | C | Corporate customer |
The list of Reference tables available for TDM tasks is populated in the trnRefList translation object. TDM Extract tasks store the selected Reference data in the Cassandra DB and the TDM Load tasks select the Reference tables from Cassandra and load them into the target.
The Cassandra table of each Reference table must be created before running TDM Extract tasks to store data in Cassandra.
This job creates the schema of each Reference table in the Cassandra DB under the k2view_tdm keyspace.
The job scans the trnRefList and checks whether a table exists in Cassandra:
This job is executed on each Reference table by the main task execution process of the Extract task and populates the Reference table in the Cassandra DB. It selects the data of the Reference table from the source DB. The source DB Interface Name and Schema Name settings are taken from trnRefList. The selected records are populated into the Reference Cassandra table.
The job updates the status of the processed Reference table in the task_ref_exe_stats TDM DB table:
TDM Extract tasks can extract data from different source environments or can create different versions of a selected Reference table. As a result, each Cassandra table created for a Reference table, must store different versions of the Reference table. Each Cassandra table created for a Reference table contains the following columns to store Reference data for different source environments and different versions:
In addition to the columns above, each Cassandra table also contains the list of columns of the Reference table in the source DB.
The PK (primary key) of each Cassandra table consists of the following columns:
Example:
| CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | ------------- | ----------------- | ----------------- | | I | Private | Private customer | | B | S | Small business |
| CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | ------------- | ----------------- | ------------------- | | I | Private | Private customer | | B | S | Small business | | B | M | Medium business | | B | C | Corporate customer |
| SOURCE_ENV_NAME | TASK_EXECUTION_ID | REC_ID | CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | --------------- | ----------------- | ------ | ------------- | ----------------- | ----------------- | | ENV1 | ALL | 1 | I | Private | Private customer | | ENV1 | ALL | 2 | B | S | Small business |
| SOURCE_ENV_NAME | TASK_EXECUTION_ID | REC_ID | CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | --------------- | ----------------- | ------ | ------------- | ----------------- | ----------------- | | ENV1 | ALL | 1 | I | Private | Private customer | | ENV1 | ALL | 2 | B | S | Small business | | ENV1 | 1234 | 1 | I | Private | Private customer | | ENV1 | 1234 | 2 | B | S | Small business |
| SOURCE_ENV_NAME | TASK_EXECUTION_ID | REC_ID | CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | --------------- | ----------------- | ------ | ------------- | ----------------- | ------------------- | | ENV1 | ALL | 1 | I | Private | Private customer | | ENV1 | ALL | 2 | B | S | Small business | | ENV1 | 1234 | 1 | I | Private | Private customer | | ENV1 | 1234 | 2 | B | S | Small business | | ENV2 | ALL | 1 | I | Private | Private customer | | ENV2 | ALL | 2 | B | S | Small business | | ENV2 | ALL | 3 | B | M | Medium business | | ENV2 | ALL | 4 | B | C | Corporate customer |
| SOURCE_ENV_NAME | TASK_EXECUTION_ID | REC_ID | CUSTOMER_TYPE | CUSTOMER_SUB_TYPE | DESCRIPTION | | --------------- | ----------------- | ------ | ------------- | ----------------- | ------------------ | | ENV1 | ALL | 1 | I | Private | Private customer | | ENV1 | ALL | 2 | B | S | Small business | | ENV1 | ALL | 3 | B | G | Government | | ENV1 | 1234 | 1 | I | Private | Private customer | | ENV1 | 1234 | 2 | B | S | Small business | | ENV2 | ALL | 1 | I | Private | Private customer | | ENV2 | ALL | 2 | B | S | Small business | | ENV2 | ALL | 3 | B | M | Medium business | | ENV2 | ALL | 4 | B | C | Corporate customer |