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. Data Services transformation
  9. Deduplicate transformation
  10. Expression transformation
  11. Filter transformation
  12. Hierarchy Builder transformation
  13. Hierarchy Parser transformation
  14. Hierarchy Processor transformation
  15. Input transformation
  16. Java transformation
  17. Java transformation API reference
  18. Joiner transformation
  19. Labeler transformation
  20. Lookup transformation
  21. Machine Learning transformation
  22. Mapplet transformation
  23. Normalizer transformation
  24. Output transformation
  25. Parse transformation
  26. Python transformation
  27. Rank transformation
  28. Router transformation
  29. Rule Specification transformation
  30. Sequence Generator transformation
  31. Sorter transformation
  32. SQL transformation
  33. Structure Parser transformation
  34. Transaction Control transformation
  35. Union transformation
  36. Velocity transformation
  37. Verifier transformation
  38. 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 run on the Data Integration Server. If the code contains data types or APIs that you can run only on an
advanced cluster
, 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.

0 COMMENTS

We’d like to hear from you!