crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r906798 - in /websites/staging/crunch/trunk/content: ./ user-guide.html
Date Fri, 25 Apr 2014 06:49:37 GMT
Author: buildbot
Date: Fri Apr 25 06:49:37 2014
New Revision: 906798

Log:
Staging update by buildbot for crunch

Modified:
    websites/staging/crunch/trunk/content/   (props changed)
    websites/staging/crunch/trunk/content/user-guide.html

Propchange: websites/staging/crunch/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Apr 25 06:49:37 2014
@@ -1 +1 @@
-1575027
+1589941

Modified: websites/staging/crunch/trunk/content/user-guide.html
==============================================================================
--- websites/staging/crunch/trunk/content/user-guide.html (original)
+++ websites/staging/crunch/trunk/content/user-guide.html Fri Apr 25 06:49:37 2014
@@ -1154,8 +1154,8 @@ specify which columns of the Tuple shoul
 the <a href="apidocs/0.9.0/org/apache/crunch/lib/Sort.ColumnOrder.html">ColumnOrder</a>
class:</p>
 <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));
+  // Sorted by value, instead of key -- remember, a PTable is a PCollection of Pairs.
+  PCollection&lt;Pair&lt;String, Long&gt;&gt; sortedByValue = Sort.sortPairs(table,
ColumnOrder.by(1, Sort.Order.DESCENDING));
 </pre>
 
 <p><a name="secsort"></a></p>



Mime
View raw message