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.
| 构造器和说明 |
|---|
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 在接口中 org.apache.flink.api.common.state.StateCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.