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.

  • Constructor Details

  • Method Details

    • filterOrTransform

      @Nullable public Map<K,V> filterOrTransform(@Nullable Map<K,V> map)
      Description copied from interface: StateSnapshotTransformer
      Transform or filter out state values which are included or skipped in the snapshot.
      Specified by:
      filterOrTransform in interface StateSnapshotTransformer<K>
      Parameters:
      map - non-serialized form of value
      Returns:
      value to snapshot or null which means the entry is not included