Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Working with Transformations
  3. Address Validator Transformation
  4. Aggregator Transformation
  5. Association Transformation
  6. Bad Record Exception Transformation
  7. Case Converter Transformation
  8. Classifier Transformation
  9. Cleanse transformation
  10. Comparison Transformation
  11. Custom Transformation
  12. Custom Transformation Functions
  13. Consolidation Transformation
  14. Data Masking Transformation
  15. Data Masking Examples
  16. Decision Transformation
  17. Duplicate Record Exception Transformation
  18. Dynamic Lookup Cache
  19. Expression Transformation
  20. External Procedure Transformation
  21. Filter Transformation
  22. HTTP Transformation
  23. Identity Resolution Transformation
  24. Java Transformation
  25. Java Transformation API Reference
  26. Java Expressions
  27. Java Transformation Example
  28. Joiner Transformation
  29. Key Generator Transformation
  30. Labeler Transformation
  31. Lookup Transformation
  32. Lookup Caches
  33. Match Transformation
  34. Match Transformations in Field Analysis
  35. Match Transformations in Identity Analysis
  36. Merge Transformation
  37. Normalizer Transformation
  38. Parser Transformation
  39. Rank Transformation
  40. Router Transformation
  41. Sequence Generator Transformation
  42. Sorter Transformation
  43. Source Qualifier Transformation
  44. SQL Transformation
  45. Using the SQL Transformation in a Mapping
  46. Stored Procedure Transformation
  47. Standardizer Transformation
  48. Transaction Control Transformation
  49. Union Transformation
  50. Unstructured Data Transformation
  51. Update Strategy Transformation
  52. Weighted Average Transformation
  53. XML Transformations

Transformation Guide

Transformation Guide

Creating Java Code Snippets

Creating Java Code Snippets

To create Java code snippets to define transformation behavior, use the
Code
Java Code
window on the
Java Code
code entry
tab
s
.
  1. Click the appropriate code entry tab.
    The following table describes the tasks that you can complete on the code entry tabs in the
    Java
    view:
    Tab
    Description
    Imports
    Imports third-party, built-in, and custom Java packages for an active or passive Java transformation. After you import packages, you can use them on the other code entry tabs.
    Helpers
    Declares user-defined variables and methods for the Java transformation class in an active or passive Java transformation. After you declare variables and methods, you can use them in any other code entry tab except the
    Imports
    tab.
    On Input
    Defines how an active or passive Java transformation behaves when it receives an input row. The Java code that you define on this tab runs one time for each input row.
    On this tab, you can also access and use input and output port data, variables, and Java transformation API methods.
    At End
    Defines how an active or passive Java transformation behaves after it processes all input data.
    On this tab, you can also set output data for active transformations, and call Java transformation API methods.
    Functions
    Defines functions that invoke expressions in a Java transformation with the Java programming language. For example, you can define a function that invokes an expression that looks up the values of input or output ports or looks up the values of Java transformation variables.
    On the
    Functions
    tab, you can manually define functions or click
    New Function
    to invoke the
    Define Function
    dialog box, which enables you to easily define a function.
    Optimizer Interfaces
    Defines early selection or push-into filter optimization. Select the optimization method in the navigator. Update the code snippets to enable the optimization. Define the input ports and associated output ports to push filter logic through.
    Full Code
    Read-only. On this tab, you can view and compile the full class code for the Java transformation.
  2. To access input or output column variables in the snippet,
    double-click the name of the port in the navigator
    expand the
    Input
    or
    Output
    list in the navigator and double-click the name of the port
    .
  3. To call a Java transformation API in the snippet,
    double-click the name of the API in the navigator. If necessary, configure the appropriate API input values
    expand the
    Callable APIs
    list in the navigator and double-click the name of the method. If necessary, configure the appropriate input values for the method
    .
  4. Write appropriate Java code, based on the
    code snippet
    code entry tab type
    .
    View the full class code for the Java transformation in the
    Full Code
    Java code
    window
    s
    on the
    Full Code
    tab
    .

0 COMMENTS

We’d like to hear from you!