Class RawObjectConverter<T>

java.lang.Object
org.apache.flink.table.data.conversion.RawObjectConverter<T>
All Implemented Interfaces:
Serializable, DataStructureConverter<org.apache.flink.table.data.RawValueData<T>,T>

@Internal public class RawObjectConverter<T> extends Object implements DataStructureConverter<org.apache.flink.table.data.RawValueData<T>,T>
Converter for RawType of object external type.
See Also:
  • Method Details

    • toInternal

      public org.apache.flink.table.data.RawValueData<T> toInternal(T 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.RawValueData<T>,T>
    • toExternal

      public T toExternal(org.apache.flink.table.data.RawValueData<T> 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.RawValueData<T>,T>
    • create

      public static RawObjectConverter<?> create(org.apache.flink.table.types.DataType dataType)