Return-Path: X-Original-To: apmail-crunch-user-archive@www.apache.org Delivered-To: apmail-crunch-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C09010EFE for ; Tue, 7 Jan 2014 14:43:16 +0000 (UTC) Received: (qmail 80405 invoked by uid 500); 7 Jan 2014 14:43:04 -0000 Delivered-To: apmail-crunch-user-archive@crunch.apache.org Received: (qmail 80156 invoked by uid 500); 7 Jan 2014 14:42:56 -0000 Mailing-List: contact user-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@crunch.apache.org Delivered-To: mailing list user@crunch.apache.org Received: (qmail 79835 invoked by uid 99); 7 Jan 2014 14:42:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 14:42:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.216.181] (HELO mail-qc0-f181.google.com) (209.85.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 14:42:46 +0000 Received: by mail-qc0-f181.google.com with SMTP id e9so69811qcy.26 for ; Tue, 07 Jan 2014 06:42:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=4TjW9tEAcJFvQjhSELVrAtYSnUSjr19M1Z77FLXJPI4=; b=koAdVDz7H9k1I8/8ZQ+a/gfogfZS/5o2QOCBvbsV5MO7Scsq0WwKmg26zlYw2LULAv fRtnA+cMQl6DDyWlBkRJXQfiEcuF4CWJvgIXuR8wQYibnRnCHlXuySnt5h2mVFwBIDMv AS0RF5mgYtH2xKoJCk26+3MsszO3KjZHbGYduewl3x60dSL3QN4TxGZL1j9wEsf4R6UU y8lkywb/3HI/SxbADcHcdZ1a2KnO1s0uxt3/bYM4nrtlpX0mIwp2aYbyBV41pc+1SyI/ HsUdoDhXojrPJ+uueOo79eBKmfGWHwI3Hpu+BD0Ga5PrLBiHb5adEAUCcCYJeAckrEni Ur5A== X-Gm-Message-State: ALoCoQmxDdCc340IflSfI02rt1GRpNtLyr30u+Y3ZAVpNHl3HGKtxczjvR8LzEt55CGyYkWynPs8 MIME-Version: 1.0 X-Received: by 10.224.128.72 with SMTP id j8mr34029456qas.51.1389105742178; Tue, 07 Jan 2014 06:42:22 -0800 (PST) Received: by 10.140.24.178 with HTTP; Tue, 7 Jan 2014 06:42:22 -0800 (PST) X-Originating-IP: [108.222.64.141] Date: Tue, 7 Jan 2014 06:42:22 -0800 Message-ID: Subject: Documentation about counters is hard to find From: Jeremy Lewi To: user@crunch.apache.org Content-Type: multipart/alternative; boundary=001a11c1efa6517f8504ef626227 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1efa6517f8504ef626227 Content-Type: text/plain; charset=ISO-8859-1 Hi Crunch Users, It took me a while to find the function to call in a DoFn to get a counter. I only succeeded because of Eclipe's intellisense. I started with the docs. http://crunch.apache.org/apidocs/0.8.0/ The doc seems incomplete. Intellisense is showing me a bunch of methods (getCounter, getContext, getStatus, etc...) that aren't listed in DoFn. The doc only lists Object as a base class and Serialiazible as the interface so I'm not sure where DoFn gets these methods. I also looked at some of the Crunch Examples but none of them are using counters. Thanks. J --001a11c1efa6517f8504ef626227 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Crunch Users,

It took me a while to = find the function to call in a DoFn to get a counter. I only succeeded beca= use of Eclipe's intellisense.

I started with t= he docs.=A0http://crunc= h.apache.org/apidocs/0.8.0/
The doc seems incomplete. Intellisense is showing me a bunch of method= s (getCounter, getContext, getStatus, etc...) that aren't listed in DoF= n. The doc only lists Object as a base class and Serialiazible as the inter= face so I'm not sure where DoFn gets these methods.

I also looked at some of the Crunch Examples but none o= f them are using counters.

Thanks.
J
--001a11c1efa6517f8504ef626227--