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/02/15 01:25:25 UTC
svn commit: r897955 - in /websites/staging/crunch/trunk/content: ./
user-guide.html
Author: buildbot
Date: Sat Feb 15 00:25:25 2014
New Revision: 897955
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 Sat Feb 15 00:25:25 2014
@@ -1 +1 @@
-1564214
+1568560
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 Sat Feb 15 00:25:25 2014
@@ -503,7 +503,7 @@ instances by combining multiple FilterFn
<a href="apidocs/0.9.0/org/apache/crunch/fn/FilterFns.html">FilterFns</a> helper class.</p>
<p>The second extension is the <a href="apidocs/0.9.0/org/apache/crunch/MapFn.html">MapFn<S, T></a> class, which defines a single abstract method, <code>T map(S input)</code>.
For simple transform tasks in which every input record will have exactly one output, it's easy to test a MapFn by verifying that a given input returns a
-every input record will have exactly one output, it's easy to test a MapFn by verifying that a given input returns a given output.</p>
+every input record will have exactly one output.</p>
<p>MapFns are also used in specialized methods on the PCollection and PTable interfaces. <code>PCollection<V></code> defines the method
<code>PTable<K,V> by(MapFn<V, K> mapFn, PType<K> keyType)</code> that can be used to create a PTable from a PCollection by writing a
function that extracts the key (of type K) from the value (of type V) contained in the PCollection. The by function only requires that the PType of