Configuring tSortRow - Cloud - 8.0

Talend Studio User Guide

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-29
Available in...

Big Data

Big Data Platform

Cloud API Services Platform

Cloud Big Data

Cloud Big Data Platform

Cloud Data Fabric

Cloud Data Management Platform

Data Fabric

Data Management Platform

Data Services Platform

MDM Platform

Real-Time Big Data Platform

Procedure

  1. Double-click tSortRow to open its Component view.
    Basic settings view.
  2. Under the Criteria table, click the Add button three times to add three rows to the table.
  3. In the Schema column column, select, for each row, the schema column to be used as the sorting criterion. In this example, select ZipCode, City and Address, sequentially.
  4. In the Sort num or alpha? column, select alpha for all the three rows.
  5. In the Order asc or desc column, select asc for all the three rows.
  6. If the schema does not appear, click the Sync columns button to retrieve the schema from the preceding component.
  7. Click Advanced settings to open its view.
    Advanced settings view.
  8. Select Sort on disk. Then the Temp data directory path field and the Create temp data directory if not exist check box appear.
  9. In Temp data directory path, enter the path to, or browse to the folder you want to use to store the temporary data processed by tSortRow. In this approach, tSortRow is enabled to sort considerably more data.
    As the threads will overwrite each other if they are written in the same directory, you need to create the folder for each thread to be processed using its thread ID.
    To use the variable representing the thread IDs, you need to click  Code  to open its view and in that view, find this variable by searching for thread_id. In this example, this variable is  tCollector_1_THREAD_ID.
    Searching for thread_id in the Code view.
    Then you need to enter the path using this variable  This path reads like:
    "E:/Studio/workspace/temp"+((Integer)globalMap.get("tCollector_1_THREAD_ID")).
  10. Ensure that the Create temp data directory if not exists check box is selected.