Package org.apache.flink.runtime.state
Class ListDelimitedSerializer
- java.lang.Object
-
- org.apache.flink.runtime.state.ListDelimitedSerializer
-
public final class ListDelimitedSerializer extends Object
Encapsulates a logic of serialization and deserialization of a list with a delimiter. Used in the savepoint format.
-
-
Constructor Summary
Constructors Constructor Description ListDelimitedSerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> List<T>
deserializeList(byte[] valueBytes, org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer)
static <T> T
deserializeNextElement(org.apache.flink.core.memory.DataInputDeserializer in, org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer)
Deserializes a single element from a serialized list.<T> byte[]
serializeList(List<T> valueList, org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer)
-
-
-
Method Detail
-
deserializeList
public <T> List<T> deserializeList(byte[] valueBytes, org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) throws IOException
- Throws:
IOException
-
serializeList
public <T> byte[] serializeList(List<T> valueList, org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) throws IOException
- Throws:
IOException
-
deserializeNextElement
public static <T> T deserializeNextElement(org.apache.flink.core.memory.DataInputDeserializer in, org.apache.flink.api.common.typeutils.TypeSerializer<T> elementSerializer) throws IOException
Deserializes a single element from a serialized list.- Throws:
IOException
-
-