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<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));
</pre>
<a name="secsort"></a>