T - The type of the objects stored in the state.public class SimpleVersionedListState<T> extends Object implements org.apache.flink.api.common.state.ListState<T>
ListState that uses a SimpleVersionedSerializer instead of a TypeSerializer.
The state wraps a ListState of type byte[], meaning it internally keeps only bytes
and lazily deserializes them into objects. This has two major implications, compared to a ListState
states that uses a TypeSerializer:
TypeSerializer, because
of extra copies into byte arrays and extra version encodings.
| Constructor and Description |
|---|
SimpleVersionedListState(org.apache.flink.api.common.state.ListState<byte[]> rawState,
org.apache.flink.core.io.SimpleVersionedSerializer<T> serializer)
Creates a new SimpleVersionedListState that reads and writes bytes from the given raw ListState
with the given serializer.
|
public SimpleVersionedListState(org.apache.flink.api.common.state.ListState<byte[]> rawState,
org.apache.flink.core.io.SimpleVersionedSerializer<T> serializer)
public void clear()
clear in interface org.apache.flink.api.common.state.StateCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.