Package org.apache.flink.table.data
Interface RawValueData<T>
- Type Parameters:
T- originating class for the raw value
- All Known Implementing Classes:
BinaryRawValueData
@PublicEvolving
public interface RawValueData<T>
An internal data structure representing data of
RawType.
This data structure is immutable.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> RawValueData<T>fromBytes(byte[] bytes) Creates an instance ofRawValueDatafrom the given byte array.static <T> RawValueData<T>fromObject(T javaObject) Creates an instance ofRawValueDatafrom a Java object.byte[]Converts thisRawValueDatainto a byte array.Converts thisRawValueDatainto a Java object.
-
Method Details
-
toObject
Converts thisRawValueDatainto a Java object.The given serializer is required because the "raw value" might be represented in a binary format and needs to be deserialized first.
Note: The returned Java object may be reused.
-
toBytes
Converts thisRawValueDatainto a byte array.The given serializer is required because the "raw value" might be still be a Java object and needs to be serialized first.
Note: The returned byte array may be reused.
-
fromObject
Creates an instance ofRawValueDatafrom a Java object. -
fromBytes
Creates an instance ofRawValueDatafrom the given byte array.
-