flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uce <...@git.apache.org>
Subject [GitHub] flink pull request #3272: [FLINK-5721] Add FoldingState to State Documentati...
Date Mon, 06 Feb 2017 15:49:16 GMT
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
    +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
    +alternative will be provided.
    --- End diff --
    empty line

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message