crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r894880 - in /websites/staging/crunch/trunk/content: ./ user-guide.html
Date Mon, 20 Jan 2014 20:10:04 GMT
Author: buildbot
Date: Mon Jan 20 20:10:04 2014
New Revision: 894880

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 Mon Jan 20 20:10:04 2014
@@ -1 +1 @@
-1559821
+1559822

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 Mon Jan 20 20:10:04 2014
@@ -1519,7 +1519,7 @@ those Counters between test runs by call
 <span class="p">@</span><span class="n">Test</span>
 <span class="n">public</span> <span class="n">void</span> <span
class="n">testToUpperCase_WithPipeline</span><span class="p">()</span>
<span class="p">{</span>
   <span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">&gt;</span> <span class="n">inputStrings</span>
<span class="p">=</span> <span class="n">MemPipeline</span><span
class="p">.</span><span class="n">collectionOf</span><span class="p">(</span>&quot;<span
class="n">a</span>&quot;<span class="p">,</span> &quot;<span
class="n">B</span>&quot;<span class="p">,</span> &quot;<span
class="n">c</span>&quot;<span class="p">);</span>
-  <span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">&gt;</span> <span class="n">upperCaseStrings</span>
<span class="p">=</span> <span class="n">inputStrings</span><span
class="p">.</span><span class="n">parallelDo</span><span class="p">(</span><span
class="n">new</span> <span class="n">ToUpperCaseFn</span><span class="p">(),</span>
<span class="n">Writables</span><span class="p">.</span><span class="n">strings</span><span
class="p">());</span>
+  <span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">&gt;</span> <span class="n">upperCaseStrings</span>
<span class="p">=</span> <span class="n">inputStrings</span><span
class="p">.</span><span class="n">parallelDo</span><span class="p">(</span><span
class="n">new</span> <span class="n">UpperCaseWithCounterFn</span><span
class="p">(),</span> <span class="n">Writables</span><span class="p">.</span><span
class="n">strings</span><span class="p">());</span>
   <span class="n">assertEquals</span><span class="p">(</span><span
class="n">ImmutableList</span><span class="p">.</span><span class="n">of</span><span
class="p">(</span>&quot;<span class="n">A</span>&quot;<span
class="p">,</span> &quot;<span class="n">B</span>&quot;<span
class="p">,</span> &quot;<span class="n">C</span>&quot;<span
class="p">),</span> <span class="n">Lists</span><span class="p">.</span><span
class="n">newArrayList</span><span class="p">(</span><span class="n">upperCaseStrings</span><span
class="p">.</span><span class="n">materialize</span><span class="p">()));</span>
   <span class="n">assertEquals</span><span class="p">(</span>2<span
class="n">L</span><span class="p">,</span> <span class="n">MemPipeline</span><span
class="p">.</span><span class="n">getCounters</span><span class="p">().</span><span
class="n">findCounter</span><span class="p">(</span>&quot;<span
class="n">UpperCase</span>&quot;<span class="p">,</span> &quot;<span
class="n">modified</span>&quot;<span class="p">).</span><span
class="n">getValue</span><span class="p">());</span>
 <span class="p">}</span>



Mime
View raw message