Interface FieldRemapping


  • public interface FieldRemapping
    A transformation on a record type. Users should not need to directly implement instances of this interface. Instead, they should use the convenience methods provided in RemapFields for constructing transformations.
    • 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 transformed
        mapping - 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.