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

Active and passive Java transformations

Active and passive Java transformations

When you create a Java transformation, you define the behavior as active or passive. Define the behavior on the
Advanced
tab.
A Java transformation runs the Java code that you define in the On Input Row section of the Java editor one time for each row of input data.
A Java transformation handles output rows based on the behavior as follows:
  • An active Java transformation generates multiple output rows for each input row in the transformation.
    Use the generateRow method to generate each output row. For example, the transformation contains two input fields that represent a start date and an end date. You can use the generateRow method to generate an output row for each date between the start date and the end date.
  • A passive Java transformation generates one output row for each input row in the transformation after processing each input row.
You can change the transformation behavior. However, when you change the behavior, you must recompile the Java code.