Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Aggregator transformation
  6. Cleanse transformation
  7. Data Masking transformation
  8. Deduplicate transformation
  9. Expression transformation
  10. Filter transformation
  11. Hierarchy Builder transformation
  12. Hierarchy Parser transformation
  13. Hierarchy Processor transformation
  14. Input transformation
  15. Java transformation
  16. Java transformation API reference
  17. Joiner transformation
  18. Labeler transformation
  19. Lookup transformation
  20. Mapplet transformation
  21. Normalizer transformation
  22. Output transformation
  23. Parse transformation
  24. Python transformation
  25. Rank transformation
  26. Router transformation
  27. Rule Specification transformation
  28. Sequence Generator transformation
  29. Sorter transformation
  30. SQL transformation
  31. Structure Parser transformation
  32. Transaction Control transformation
  33. Union transformation
  34. Velocity transformation
  35. Verifier transformation
  36. Web Services transformation

Transformations

Transformations

Compiling the code

Compiling the code

To validate a Java transformation, you must compile the Java code snippets that you enter in the Java editor.
Data Integration
uses the Secure Agent to compile the Java code snippets. Compile the code and view compilation results on the
Java
tab.
When you create a Java transformation, it contains a Java class that defines the base functionality for the transformation. When you compile the transformation, the Secure Agent adds the code that you enter in the Java editor to the template class for the transformation. This generates the full class code for the transformation.
The Secure Agent calls the JDK to compile the full class code. The JDK compiles the transformation and generates the byte code for the transformation.
In a mapplet, the Java transformation compiles based on the data types and APIs that you can use in
non-elastic mappings
. If the code contains data types or APIs that you can use only in
elastic mappings
, such as the invokeJExpression API method, the code fails to compile.
Before you can compile the code, you must complete the following tasks:
  1. If you use non-standard Java packages, configure the classpath.
    For more information about configuring the classpath, see Classpath configuration.
  2. Select the runtime environment to use for compilation.
    Select the runtime environment on the
    Java
    tab. The Hosted Agent is not supported for compilation.
To compile the code, click
Compile
in the Java editor.
The compilation results shows the results of the compilation. Use the compilation results to identify and locate Java code errors.