Table of Contents

Search

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