Package com.orchestranetworks.addon.dint.transformation.split
Provides classes and interfaces for creating a split transformation.
Example code for StringSplit transformation:
-
Create a mapping that allows to split field 'full_name' from source into two fields 'firstName' and 'lastName' in target:
TableMapping<CSVField, EBXField> tableMapping = TableMapping.of(sourceTable, targetTable); CSVTable csvTable = sourceTable.getTable(); EBXTable ebxTable = targetTable.getTable(); SplitTransformationMappingStep nameSplitStep = tableMapping.fromSourceFieldStep(csvTable.get("full_name")) .split(StringSplit.getInstance()) .param(StringSplit.SEPARATOR, " ") .into("firstName", "lastName"); nameSplitStep.toField("firstName", ebxTable.get(Path.parse("/firstName"))); nameSplitStep.convert("lastName", StringUpperCase.getInstance()) .toField(ebxTable.get(Path.parse("/lastName")));
-
Class Summary Class Description SplitToAMultiValuedField Represents a transformation function definition that splits the input string at the location of the defined separator and outputs an unbounded list of values.SplitTransformationDefinition<I,O> Represents a transformation function ofTransformationCategory.SPLIT
.StringSplit Represents a transformation definition for splits the input string at the location of the defined separator.