Table of Contents

Search

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