Github user uce commented on a diff in the pull request:
— Diff: docs/dev/stream/state.md —
@@ -113,9 +113,19 @@ be retrieved using `Iterable<T> get()`.
added to the state. The interface is the same as for `ListState` but elements added using
`add(T)` are reduced to an aggregate using a specified `ReduceFunction`.
+* `FoldingState<T, ACC>`: This keeps a single value that represents the aggregation of all values
+added to the state. Contrary to `ReducingState`, the aggregate type is different from the type of
+elements that are added to the state. The interface is the same as for `ListState` but elements
+added using `add(T)` are folded into an aggregate using a specified `FoldFunction`.
All types of state also have a method `clear()` that clears the state for the currently
active key, i.e. the key of the input element.
+<span class="label label-danger">Attention</span> `FoldingState` will be deprecated in one of
+the next versions of Flink and will be completely removed in the Future. A more general
— End diff –
Future should be lower case