crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gr...@apache.org
Subject svn commit: r1589437 - /crunch/site/trunk/content/user-guide.mdtext
Date Wed, 23 Apr 2014 15:23:10 GMT
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
 <pre>
   PTable&lt;String, Long&gt; table = ...;
   // Sorted by value, instead of key-- remember, a PTable is a PCollection of Pairs.
-  PCollection&lt;Pair&lt;String, Long&gt;&gt; valueSort = Sort.sort(table,
ColumnOrder.by(1, Sort.Order.DESCENDING));
+  PCollection&lt;Pair&lt;String, Long&gt;&gt; valueSort = Sort.sortPairs(table,
ColumnOrder.by(1, Sort.Order.DESCENDING));
 </pre>
 
 <a name="secsort"></a>



Mime
View raw message