Class StringStringConverter

java.lang.Object
org.apache.flink.table.data.conversion.StringStringConverter
All Implemented Interfaces:
Serializable, DataStructureConverter<org.apache.flink.table.data.StringData,String>

@Internal public class StringStringConverter extends Object implements DataStructureConverter<org.apache.flink.table.data.StringData,String>
Converter for CharType/VarCharType of String external type.
See Also:
  • Constructor Details

    • StringStringConverter

      public StringStringConverter()
  • Method Details

    • toInternal

      public org.apache.flink.table.data.StringData toInternal(String external)
      Description copied from interface: DataStructureConverter
      Converts to internal data structure.

      Note: Parameter must not be null. Output must not be null.

      Specified by:
      toInternal in interface DataStructureConverter<org.apache.flink.table.data.StringData,String>
    • toExternal

      public String toExternal(org.apache.flink.table.data.StringData internal)
      Description copied from interface: DataStructureConverter
      Converts to external data structure.

      Note: Parameter must not be null. Output must not be null.

      Specified by:
      toExternal in interface DataStructureConverter<org.apache.flink.table.data.StringData,String>