Package org.apache.flink.runtime.state
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 itsStateSnapshotTransformer.CollectionStateSnapshotTransformer.TransformStrategy.
-
-
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 ListStateSnapshotTransformer(StateSnapshotTransformer<T> entryValueTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>filterOrTransform(List<T> list)Transform or filter out state values which are included or skipped in the snapshot.
-
-
-
Constructor Detail
-
ListStateSnapshotTransformer
public ListStateSnapshotTransformer(StateSnapshotTransformer<T> entryValueTransformer)
-
-
Method Detail
-
filterOrTransform
@Nullable public List<T> filterOrTransform(@Nullable List<T> list)
Description copied from interface:StateSnapshotTransformerTransform or filter out state values which are included or skipped in the snapshot.- Specified by:
filterOrTransformin interfaceStateSnapshotTransformer<T>- Parameters:
list- non-serialized form of value- Returns:
- value to snapshot or null which means the entry is not included
-
-