public static class StateSnapshotTransformer.ListStateSnapshotTransformer<T> extends Object implements StateSnapshotTransformer<List<T>>
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.
StateSnapshotTransformer.CollectionStateSnapshotTransformer<T>, StateSnapshotTransformer.ListStateSnapshotTransformer<T>, StateSnapshotTransformer.MapStateSnapshotTransformer<K,V>, StateSnapshotTransformer.StateSnapshotTransformFactory<T>| Constructor and Description |
|---|
ListStateSnapshotTransformer(StateSnapshotTransformer<T> entryValueTransformer) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
filterOrTransform(List<T> list)
Transform or filter out state values which are included or skipped in the snapshot.
|
public ListStateSnapshotTransformer(StateSnapshotTransformer<T> entryValueTransformer)
@Nullable public List<T> filterOrTransform(@Nullable List<T> list)
StateSnapshotTransformerfilterOrTransform in interface StateSnapshotTransformer<List<T>>list - non-serialized form of valueCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.