crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r893311 - in /websites/staging/crunch/trunk/content: ./ intro.html
Date Wed, 08 Jan 2014 14:07:01 GMT
Author: buildbot
Date: Wed Jan  8 14:07:01 2014
New Revision: 893311

Log:
Staging update by buildbot for crunch

Modified:
    websites/staging/crunch/trunk/content/   (props changed)
    websites/staging/crunch/trunk/content/intro.html

Propchange: websites/staging/crunch/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Jan  8 14:07:01 2014
@@ -1 +1 @@
-1545498
+1556538

Modified: websites/staging/crunch/trunk/content/intro.html
==============================================================================
--- websites/staging/crunch/trunk/content/intro.html (original)
+++ websites/staging/crunch/trunk/content/intro.html Wed Jan  8 14:07:01 2014
@@ -267,7 +267,7 @@ application:</p>
   <span class="p">@</span><span class="n">Test</span>
   <span class="n">public</span> <span class="n">void</span> <span
class="n">testWordCount</span><span class="p">()</span> <span class="n">throws</span>
<span class="n">Exception</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">lines</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">first</span> <span class="n">line</span>&quot;<span
class="p">,</span> &quot;<span class="n">second</span> <span class="n">line</span>&quot;<span
class="p">);</span>
-    <span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="p">,</span> <span class="n">Long</span><span
class="o">&gt;</span> <span class="n">counts</span> <span class="p">=</span>
<span class="n">WordCount</span><span class="p">.</span><span class="n">countWords</span><span
class="p">(</span><span class="n">lines</span><span class="p">).</span><span
class="n">materializeAsMap</span><span class="p">();</span>
+    <span class="n">Map</span><span class="o">&lt;</span><span
class="n">String</span><span class="p">,</span> <span class="n">Long</span><span
class="o">&gt;</span> <span class="n">counts</span> <span class="p">=</span>
<span class="n">WordCount</span><span class="p">.</span><span class="n">countWords</span><span
class="p">(</span><span class="n">lines</span><span class="p">).</span><span
class="n">materializeToMap</span><span class="p">();</span>
     <span class="n">assertEquals</span><span class="p">(</span><span
class="n">ImmutableMap</span><span class="p">.</span><span class="n">of</span><span
class="p">(</span>&quot;<span class="n">first</span>&quot;<span
class="p">,</span> 1<span class="n">L</span><span class="p">,</span>
&quot;<span class="n">second</span>&quot;<span class="p">,</span>
1<span class="n">L</span><span class="p">,</span> &quot;<span
class="n">line</span>&quot;<span class="p">,</span> 2<span class="n">L</span><span
class="p">),</span> <span class="n">counts</span><span class="p">);</span>
   <span class="p">}</span>
 <span class="p">}</span>



Mime
View raw message