Example - 6.5

Talend Job Script Reference Guide

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
EnrichPlatform
Talend CommandLine
Talend Studio
task
Design and Development > Designing Jobs

In the following Job script example of tPartition, the number of partitions is set to 8, and columns name and city are defined as keys for partitioning, leaving all the other settings as default.

	setSettings {
		NBPARTITIONS : "8",
		PARTITION_KEY {
			SCHEMA_COLUMN : "id",
			KEY_ATTRIBUTE : "false",
			SCHEMA_COLUMN : "name",
			KEY_ATTRIBUTE : "true",
			SCHEMA_COLUMN : "city",
			KEY_ATTRIBUTE : "true"
		}
	}