Class RawByteArrayConverter<T>

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

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

    • toInternal

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

      public byte[] 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>,byte[]>
    • create

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