Deduplicating the email addresses - 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

Use the procedure below to add and configure a tUniqRow component that will be used to identify duplicate email addresses.

Procedure

  1. Next the tFileInputDelimited component, add a new addComponent {} function and its sub-function setComponentDefinition {} to add the tUniqRow component.
    addComponent {
    	setComponentDefinition {
    		TYPE: "tUniqRow",
    		NAME: "tUniqRow_1",
    		POSITION: 416, 192
    	}
    
    }
  2. Next to the setComponentDefinition {} function, enter the setSettings {} function to define the deduplication process and label the component.
    	setSettings {
    		UNIQUE_KEY {
    			SCHEMA_COLUMN : "email",
    			KEY_ATTRIBUTE : "true"
    		},
    		LABEL : "deduplicate"
    	}
  3. Next to the setSettings {} function, enter two addSchema {} functions to define the schemas for the output flows, one for the unique emails addresses and the other for the duplicates.
    	addSchema {
    		NAME: "UNIQUE",
    		CONNECTOR: "UNIQUE"
    		addColumn {
    			NAME: "email",
    			TYPE: "id_String"
    		}
    	}
    	addSchema {
    		NAME: "DUPLICATE",
    		CONNECTOR: "DUPLICATE"
    		addColumn {
    			NAME: "email",
    			TYPE: "id_String"
    		}
    	}