T - originating class for the raw value@PublicEvolving
public interface RawValueData<T>
RawType.
This data structure is immutable.
| Modifier and Type | Method and Description |
|---|---|
static <T> RawValueData<T> |
fromBytes(byte[] bytes)
Creates an instance of
RawValueData from the given byte array. |
static <T> RawValueData<T> |
fromObject(T javaObject)
Creates an instance of
RawValueData from a Java object. |
byte[] |
toBytes(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
Converts this
RawValueData into a byte array. |
T |
toObject(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
Converts this
RawValueData into a Java object. |
T toObject(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
RawValueData into 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.
byte[] toBytes(org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
RawValueData into 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.
static <T> RawValueData<T> fromObject(T javaObject)
RawValueData from a Java object.static <T> RawValueData<T> fromBytes(byte[] bytes)
RawValueData from the given byte array.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.