crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Wills (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CRUNCH-398) Add increment and incrementIf functions to Scrunch APIs
Date Mon, 19 May 2014 18:12:41 GMT
Josh Wills created CRUNCH-398:
---------------------------------

             Summary: 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


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)

Mime
View raw message