Return-Path: Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: (qmail 44968 invoked from network); 8 Nov 2010 11:32:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 11:32:15 -0000 Received: (qmail 16255 invoked by uid 500); 8 Nov 2010 11:32:46 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 15889 invoked by uid 500); 8 Nov 2010 11:32:44 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 15881 invoked by uid 99); 8 Nov 2010 11:32:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 11:32:43 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 11:32:33 +0000 Received: by vws5 with SMTP id 5so1762615vws.35 for ; Mon, 08 Nov 2010 03:32:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.219.10 with SMTP id hs10mr185174qab.121.1289215931888; Mon, 08 Nov 2010 03:32:11 -0800 (PST) Sender: niels@basj.es Received: by 10.229.189.133 with HTTP; Mon, 8 Nov 2010 03:32:11 -0800 (PST) X-Originating-IP: [212.121.118.65] In-Reply-To: References: Date: Mon, 8 Nov 2010 12:32:11 +0100 X-Google-Sender-Auth: kmdj1evBrQUqYtN5KjrO_CUWuNo Message-ID: Subject: Re: Predicting how many values will I see in a call to reduce? From: Niels Basjes To: mapreduce-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=20cf3010edd5a8b653049488f9bd X-Virus-Checked: Checked by ClamAV on apache.org --20cf3010edd5a8b653049488f9bd Content-Type: text/plain; charset=ISO-8859-1 Hi, 2010/11/7 Anthony Urso > Is there any way to know how many values I will see in a call to > reduce without first counting through them all with the iterator? > > Under 0.21? 0.20? 0.19? > I've looked for an answer to the same question a while ago and came to the conclusion that you can't. The main limit is that the Iterator does not have a "size" or "length" method. -- Met vriendelijke groeten, Niels Basjes --20cf3010edd5a8b653049488f9bd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,


--
Met vriendelijke groeten,

Niels Basjes
--20cf3010edd5a8b653049488f9bd--