See: Description
Interface | Description |
---|---|
TransformationConfigurationContext |
Allows to access the configuration of a transformation.
|
TransformationDefinition<I,O> |
Definition of a transformation.
|
TransformationExecutionContext<I> |
Accesses the data to be transformed.
|
TransformationFunction<I,O> |
Transforms data based on
TransformationDefinition . |
Class | Description |
---|---|
InputDefinition |
The definition of a transformation's input.
|
OutputDefinition |
The definition of a transformation's output.
|
ParameterDefinition |
The definition of a transformation's parameter.
|
TransformationRegistry |
Registers
TransformationDefinition s to be displayed in the mapping screen. |
Enum | Description |
---|---|
TransformationCategory |
Categories of transformations.
|
Provides classes and interfaces to define and register transformations.
A transformation can be add to SourceFieldMappingStep or the other TransformationMappingStep. The Java API allows to execute many transformations as a chain. For example:User wants to upper case the string data before insert to the target table:
- First, get SourceFieldMappingStep from TableMapping. - Use StringUpperCase transformation to upper this source field. - Finally, map with the target field.User wants to add more prefix 'Mr/Ms' to name field and insert to the target table:
- First get ConstantTransformationMappingStep from TableMapping. - Use StringConcat transformation to concatenate with the name field from the source table. - Finally, map with the target field.User wants to upper case only the first name of the full name string and insert to the target table:
- First, get SourceFieldMappingStep from TableMapping. - Use StringSplit transformation to split full name string into two variable 'firstName' and 'lastName'. - Use StringUpperCase transformation to upper case the variable 'firstName'. - Use StringConcat transformation to concatenate with the variable 'lastName', the output of the previous split step. - Finally, map with the target field.A custom transformation needs to be registered to be displayed in the mapping screen:
TransformationRegistry.getInstance().add(new ACustomTransformationDefinition());Please refer to the corresponding package for the detail and examples.