Merging the input flows - Cloud - 8.0

Talend Job Script Reference 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 CommandLine
Talend Studio
Content
Design and Development > Designing Jobs
Last publication date
2024-02-22

Use the procedure below to add and configure a tUnite component that will be used to merge the input flows.

Procedure

  1. Next the tFileInputDelimited components, add a new addComponent {} function and its sub-functions setComponentDefinition {} and setSettings {} to add and label the tUnite component.
    addComponent {
    	setComponentDefinition {
    		TYPE: "tUnite",
    		NAME: "tUnite_1",
    		POSITION: 384, 192
    	}
    	setSettings {
    		LABEL : "merge"		
    	}
    
    }
  2. Next to the setSettings {} function, enter the addSchema {} function to define the schema of the tUnite component, which must be the same as the input flows.
    	addSchema {
    		NAME: "tUnite_1",
    		CONNECTOR: "FLOW"
    		addColumn {
    			NAME: "subject",
    			TYPE: "id_String"
    		}
    		addColumn {
    			NAME: "score",
    			TYPE: "id_Double",
    			PRECISION: 2
    		}
    	}