Appendix A. Common Type Conversions
The following table is a set of Java and Talend methods that allow conversion between different data types. This is by no means an exhaustive list, but will cover many of type conversions that you will encounter.
From Type |
To Type |
Example |
---|---|---|
String |
Integer |
|
String |
Date |
|
String |
BigDecimal |
|
String |
Float |
|
String |
Long |
|
Integer |
String |
variable+"" or |
Date |
String |
|
BigDecimal |
String |
|
Get Talend Open Studio Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.