Merging the input flows - 6.5

Talendジョブスクリプトリファレンス

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Big Data
Talend Big Data Platform
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
task
ジョブデザインと開発 > ジョブデザイン
EnrichPlatform
Talend CommandLine
Talend Studio

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
    		}
    	}