You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@crunch.apache.org by bu...@apache.org on 2014/04/25 08:49:37 UTC
svn commit: r906798 - in /websites/staging/crunch/trunk/content: ./
user-guide.html
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<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));
+ // Sorted by value, instead of key -- remember, a PTable is a PCollection of Pairs.
+ PCollection<Pair<String, Long>> sortedByValue = Sort.sortPairs(table, ColumnOrder.by(1, Sort.Order.DESCENDING));
</pre>
<p><a name="secsort"></a></p>