Package org.apache.flink.runtime.state
Class StateSnapshotTransformers.MapStateSnapshotTransformer<K,V>
- java.lang.Object
-
- org.apache.flink.runtime.state.StateSnapshotTransformers.MapStateSnapshotTransformer<K,V>
-
- All Implemented Interfaces:
StateSnapshotTransformer<Map<K,V>>
- Enclosing class:
- StateSnapshotTransformers
public static class StateSnapshotTransformers.MapStateSnapshotTransformer<K,V> extends Object implements StateSnapshotTransformer<Map<K,V>>
General implementation of map state transformer.This transformer wraps a transformer per-entry and transforms the whole map state.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.state.StateSnapshotTransformer
StateSnapshotTransformer.CollectionStateSnapshotTransformer<T>, StateSnapshotTransformer.StateSnapshotTransformFactory<T>
-
-
Constructor Summary
Constructors Constructor Description MapStateSnapshotTransformer(StateSnapshotTransformer<V> entryValueTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<K,V>filterOrTransform(Map<K,V> map)Transform or filter out state values which are included or skipped in the snapshot.
-
-
-
Constructor Detail
-
MapStateSnapshotTransformer
public MapStateSnapshotTransformer(StateSnapshotTransformer<V> entryValueTransformer)
-
-
Method Detail
-
filterOrTransform
@Nullable public Map<K,V> filterOrTransform(@Nullable Map<K,V> map)
Description copied from interface:StateSnapshotTransformerTransform or filter out state values which are included or skipped in the snapshot.- Specified by:
filterOrTransformin interfaceStateSnapshotTransformer<K>- Parameters:
map- non-serialized form of value- Returns:
- value to snapshot or null which means the entry is not included
-
-