K - type of keyN - type of namespaceS - type of statepublic final class CopyOnWriteSkipListStateMap<K,N,S> extends org.apache.flink.runtime.state.heap.StateMap<K,N,S> implements AutoCloseable
| Constructor and Description |
|---|
CopyOnWriteSkipListStateMap(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer,
Allocator spaceAllocator,
int numKeysToDeleteOneTime,
float logicalRemovedKeysRatio) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
containsKey(K key,
N namespace) |
S |
get(K key,
N namespace) |
java.util.stream.Stream<K> |
getKeys(N namespace) |
int |
getRequestCount() |
org.apache.flink.runtime.state.internal.InternalKvState.StateIncrementalVisitor<K,N,S> |
getStateIncrementalVisitor(int recommendedMaxNumberOfReturnedRecords) |
Iterator<org.apache.flink.runtime.state.StateEntry<K,N,S>> |
iterator() |
void |
put(K key,
N namespace,
S state) |
S |
putAndGetOld(K key,
N namespace,
S state) |
void |
releaseSnapshot(org.apache.flink.runtime.state.heap.StateMapSnapshot<K,N,S,? extends org.apache.flink.runtime.state.heap.StateMap<K,N,S>> snapshotToRelease) |
void |
remove(K key,
N namespace) |
S |
removeAndGetOld(K key,
N namespace) |
int |
size() |
int |
sizeOfNamespace(Object namespace) |
CopyOnWriteSkipListStateMapSnapshot<K,N,S> |
stateSnapshot() |
<T> void |
transform(K key,
N namespace,
T value,
org.apache.flink.runtime.state.StateTransformationFunction<S,T> transformation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CopyOnWriteSkipListStateMap(@Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer, @Nonnull Allocator spaceAllocator, int numKeysToDeleteOneTime, float logicalRemovedKeysRatio)
public int size()
public int getRequestCount()
public <T> void transform(K key, N namespace, T value, org.apache.flink.runtime.state.StateTransformationFunction<S,T> transformation) throws Exception
public java.util.stream.Stream<K> getKeys(N namespace)
public int sizeOfNamespace(Object namespace)
public org.apache.flink.runtime.state.internal.InternalKvState.StateIncrementalVisitor<K,N,S> getStateIncrementalVisitor(int recommendedMaxNumberOfReturnedRecords)
@Nonnull public CopyOnWriteSkipListStateMapSnapshot<K,N,S> stateSnapshot()
public void releaseSnapshot(org.apache.flink.runtime.state.heap.StateMapSnapshot<K,N,S,? extends org.apache.flink.runtime.state.heap.StateMap<K,N,S>> snapshotToRelease)
public void close()
close in interface AutoCloseableCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.