You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Josh Wills (JIRA)" <ji...@apache.org> on 2014/05/19 20:14:38 UTC

[jira] [Updated] (CRUNCH-398) Add increment and incrementIf functions to Scrunch APIs

     [ https://issues.apache.org/jira/browse/CRUNCH-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Wills updated CRUNCH-398:
------------------------------

    Attachment: CRUNCH-398.patch

Patch for the same.

> Add increment and incrementIf functions to Scrunch APIs
> -------------------------------------------------------
>
>                 Key: CRUNCH-398
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-398
>             Project: Crunch
>          Issue Type: Bug
>          Components: Scrunch
>            Reporter: Josh Wills
>         Attachments: CRUNCH-398.patch
>
>
> Got this cool idea from one of my customers: allow people to write one-liner counter increment functions on top of Scrunch, ala:
> val pc: PCollection[S] = ...
> pc.map(...)
>     .increment("CounterGroup", "CounterValue")
>     .incrementIf(x => x.foo == "bar")("CounterGroup", "CheckBar")
> etc.



--
This message was sent by Atlassian JIRA
(v6.2#6252)