Class StateSnapshotTransformers.ListStateSnapshotTransformer<T>

java.lang.Object
org.apache.flink.runtime.state.StateSnapshotTransformers.ListStateSnapshotTransformer<T>
All Implemented Interfaces:
StateSnapshotTransformer<List<T>>
Enclosing class:
StateSnapshotTransformers

public static class StateSnapshotTransformers.ListStateSnapshotTransformer<T> extends Object implements StateSnapshotTransformer<List<T>>
General implementation of list state transformer.

This transformer wraps a transformer per-entry and transforms the whole list state. If the wrapped per entry transformer is StateSnapshotTransformer.CollectionStateSnapshotTransformer, it respects its StateSnapshotTransformer.CollectionStateSnapshotTransformer.TransformStrategy.

  • Constructor Details

  • Method Details

    • filterOrTransform

      @Nullable public List<T> filterOrTransform(@Nullable List<T> list)
      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<T>
      Parameters:
      list - non-serialized form of value
      Returns:
      value to snapshot or null which means the entry is not included