-
public interface FieldRemappingA transformation on a record type. Users should not need to directly implement instances of this interface. Instead, they should use the convenience methods provided inRemapFieldsfor constructing transformations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecordTokenTypeapply(RecordTokenType srcType, Map<String,String> mapping)Computes the result of applying the transformation to a record type.List<String>getMappings(String name)Gets the fields in the target to which the specified source field is mapped.
-
-
-
Method Detail
-
apply
RecordTokenType apply(RecordTokenType srcType, Map<String,String> mapping)
Computes the result of applying the transformation to a record type. A target-to-source mapping is also computed.- Parameters:
srcType- the type being transformedmapping- a map for holding the inverted field mapping- Returns:
- the resulting record type
-
getMappings
List<String> getMappings(String name)
Gets the fields in the target to which the specified source field is mapped.- Parameters:
name- the name of a field in the source record- Returns:
- the names of fields in the target which correspond to the field. If the field is not mapped to the target, an empty list is returned.
-
-