Calling a Java class method

tMap

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
Talend Big Data
Talend MDM Platform
Talend Open Studio for MDM
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Talend Data Integration
Talend Data Management Platform
Talend Open Studio for Data Integration
Talend Big Data Platform
Talend Data Services Platform
Talend Open Studio for Big Data
Talend Data Fabric
Talend ESB
task
Design and Development > Third-party systems > Processing components (Integration) > tMap
Data Quality and Preparation > Third-party systems > Processing components (Integration) > tMap
Data Governance > Third-party systems > Processing components (Integration) > tMap
EnrichPlatform
Talend Studio

You can call a Java class method to transform the input fields in the Expression Builder. For exmaple, you can call a Java method to cut the first 4 characters from the input field of long type, and convert the result to a value of Integer/int type.

The input data will be transformed to output data after being processed in the tMap component.

Input table:

customer_id account_num
1 87462024688
2 87514054179

Output table:

customer_id account_num
1 8746
2 8751