You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2015/02/11 15:58:12 UTC

[jira] [Created] (FLINK-1527) Incomplete Accumulator documentation (no mention of the shorthand methods)

Robert Metzger created FLINK-1527:
-------------------------------------

             Summary: Incomplete Accumulator documentation (no mention of the shorthand methods)
                 Key: FLINK-1527
                 URL: https://issues.apache.org/jira/browse/FLINK-1527
             Project: Flink
          Issue Type: Bug
    Affects Versions: 0.8, 0.9
            Reporter: Robert Metzger


The current documentation implies that users have to manually register every counter.
But it should be possible to call counters like this
{code}
getRuntimeContext().getLongCounter("elements").add(1L);
{code}
within the udf function call.


http://flink.apache.org/docs/0.8/programming_guide.html#accumulators--counters





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)