Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7DC2111212 for ; Mon, 19 May 2014 18:12:41 +0000 (UTC) Received: (qmail 71159 invoked by uid 500); 19 May 2014 18:12:41 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 71095 invoked by uid 500); 19 May 2014 18:12:41 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 71013 invoked by uid 500); 19 May 2014 18:12:41 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 70987 invoked by uid 99); 19 May 2014 18:12:41 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 18:12:41 +0000 Date: Mon, 19 May 2014 18:12:41 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CRUNCH-398) Add increment and incrementIf functions to Scrunch APIs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)