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 its
StateSnapshotTransformer.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
ConstructorsConstructorDescriptionListStateSnapshotTransformer(StateSnapshotTransformer<T> entryValueTransformer) -
Method Summary
Modifier and TypeMethodDescriptionfilterOrTransform(List<T> list) Transform or filter out state values which are included or skipped in the snapshot.
-
Constructor Details
-
ListStateSnapshotTransformer
-
-
Method Details
-
filterOrTransform
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
-