Uploaded image for project: 'Crunch'
  1. Crunch
  2. CRUNCH-398

Add increment and incrementIf functions to Scrunch APIs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0, 0.8.3
    • Component/s: Scrunch
    • Labels:
      None

      Description

      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.

        Attachments

        1. CRUNCH-398.patch
          11 kB
          Josh Wills
        2. CRUNCH-398b.patch
          11 kB
          Josh Wills

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jwills Josh Wills
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: