public static class StateSnapshotTransformers.MapStateSnapshotTransformer<K,V> extends Object implements StateSnapshotTransformer<Map<K,V>>
This transformer wraps a transformer per-entry and transforms the whole map state.
StateSnapshotTransformer.CollectionStateSnapshotTransformer<T>, StateSnapshotTransformer.StateSnapshotTransformFactory<T>
Constructor and Description |
---|
MapStateSnapshotTransformer(StateSnapshotTransformer<V> entryValueTransformer) |
Modifier and Type | Method and Description |
---|---|
Map<K,V> |
filterOrTransform(Map<K,V> map)
Transform or filter out state values which are included or skipped in the snapshot.
|
public MapStateSnapshotTransformer(StateSnapshotTransformer<V> entryValueTransformer)
@Nullable public Map<K,V> filterOrTransform(@Nullable Map<K,V> map)
StateSnapshotTransformer
filterOrTransform
in interface StateSnapshotTransformer<Map<K,V>>
map
- non-serialized form of valueCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.