Class ReplaceStringTransform

    • Constructor Detail

      • ReplaceStringTransform

        public ReplaceStringTransform​(String columnName,
                                      Map<String,​String> map)
        Constructs a new ReplaceStringTransform using the specified
        Parameters:
        columnName - Name of the column
        map - Key: regular expression; Value: replacement value
    • Method Detail

      • map

        public Text map​(Writable writable)
        Description copied from class: BaseStringTransform
        Transform the writable in to a string
        Specified by:
        map in class BaseStringTransform
        Parameters:
        writable - the writable to transform
        Returns:
        the string form of this writable
      • map

        public Object map​(Object o)
        Description copied from interface: Transform
        Transform an object in to another object
        Parameters:
        o - the record to transform
        Returns:
        the transformed writable