Return-Path: X-Original-To: apmail-crunch-commits-archive@www.apache.org Delivered-To: apmail-crunch-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDB4A11937 for ; Wed, 23 Apr 2014 15:23:34 +0000 (UTC) Received: (qmail 68158 invoked by uid 500); 23 Apr 2014 15:23:34 -0000 Delivered-To: apmail-crunch-commits-archive@crunch.apache.org Received: (qmail 68118 invoked by uid 500); 23 Apr 2014 15:23:33 -0000 Mailing-List: contact commits-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 commits@crunch.apache.org Received: (qmail 68110 invoked by uid 99); 23 Apr 2014 15:23:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2014 15:23:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2014 15:23:33 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 34A9F238899C; Wed, 23 Apr 2014 15:23:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1589437 - /crunch/site/trunk/content/user-guide.mdtext Date: Wed, 23 Apr 2014 15:23:10 -0000 To: commits@crunch.apache.org From: greid@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140423152310.34A9F238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: greid Date: Wed Apr 23 15:23:09 2014 New Revision: 1589437 URL: http://svn.apache.org/r1589437 Log: Correct call to Sort#sortPairs Modified: crunch/site/trunk/content/user-guide.mdtext Modified: crunch/site/trunk/content/user-guide.mdtext URL: http://svn.apache.org/viewvc/crunch/site/trunk/content/user-guide.mdtext?rev=1589437&r1=1589436&r2=1589437&view=diff ============================================================================== --- crunch/site/trunk/content/user-guide.mdtext (original) +++ crunch/site/trunk/content/user-guide.mdtext Wed Apr 23 15:23:09 2014 @@ -1127,7 +1127,7 @@ the [ColumnOrder](apidocs/0.9.0/org/apac
   PTable<String, Long> table = ...;
   // Sorted by value, instead of key-- remember, a PTable is a PCollection of Pairs.
-  PCollection<Pair<String, Long>> valueSort = Sort.sort(table, ColumnOrder.by(1, Sort.Order.DESCENDING));
+  PCollection<Pair<String, Long>> valueSort = Sort.sortPairs(table, ColumnOrder.by(1, Sort.Order.DESCENDING));