public static class StateSnapshotTransformers.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 CollectionStateSnapshotTransformer, it respects its
CollectionStateSnapshotTransformer.TransformStrategy.
StateSnapshotTransformer.CollectionStateSnapshotTransformer<T>, 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–2024 The Apache Software Foundation. All rights reserved.