Class RawByteArrayConverter<T>
- java.lang.Object
-
- org.apache.flink.table.data.conversion.RawByteArrayConverter<T>
-
- All Implemented Interfaces:
Serializable
,DataStructureConverter<RawValueData<T>,byte[]>
@Internal public class RawByteArrayConverter<T> extends Object implements DataStructureConverter<RawValueData<T>,byte[]>
Converter forRawType
ofbyte[]
external type.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RawByteArrayConverter<?>
create(DataType dataType)
byte[]
toExternal(RawValueData<T> internal)
Converts to external data structure.RawValueData<T>
toInternal(byte[] external)
Converts to internal data structure.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.data.conversion.DataStructureConverter
isIdentityConversion, open, toExternalOrNull, toInternalOrNull
-
-
-
-
Method Detail
-
toInternal
public 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 interfaceDataStructureConverter<RawValueData<T>,byte[]>
-
toExternal
public byte[] toExternal(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 interfaceDataStructureConverter<RawValueData<T>,byte[]>
-
create
public static RawByteArrayConverter<?> create(DataType dataType)
-
-