flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktzou...@apache.org
Subject svn commit: r1643435 - /incubator/flink/index.html
Date Fri, 05 Dec 2014 21:07:33 GMT
Author: ktzoumas
Date: Fri Dec  5 21:07:32 2014
New Revision: 1643435

URL: http://svn.apache.org/r1643435
Log:
Fixed typo in frontpage Scala WordCount

Modified:
    incubator/flink/index.html

Modified: incubator/flink/index.html
URL: http://svn.apache.org/viewvc/incubator/flink/index.html?rev=1643435&r1=1643434&r2=1643435&view=diff
==============================================================================
--- incubator/flink/index.html (original)
+++ incubator/flink/index.html Fri Dec  5 21:07:32 2014
@@ -227,7 +227,7 @@
 	  </div>
           <div class="col-md-6 col-md-offset-1">
 	  <p>Word Count in Flink's Scala API</p>  
-<div class="highlight"><pre><code class="language-scala" data-lang="scala"><span
class="k">case</span> <span class="k">class</span> <span class="nc">Word</span>
<span class="o">(</span><span class="n">word</span><span class="k">:</span>
<span class="kt">String</span><span class="o">,</span> <span class="n">frequency</span><span
class="k">:</span> <span class="kt">Integer</span><span class="o">)</span>
+<div class="highlight"><pre><code class="language-scala" data-lang="scala"><span
class="k">case</span> <span class="k">class</span> <span class="nc">Word</span>
<span class="o">(</span><span class="n">word</span><span class="k">:</span>
<span class="kt">String</span><span class="o">,</span> <span class="n">frequency</span><span
class="k">:</span> <span class="kt">Int</span><span class="o">)</span>
 
 <span class="k">val</span> <span class="n">counts</span> <span
class="k">=</span> <span class="n">text</span>
   <span class="o">.</span><span class="n">flatMap</span> <span
class="o">{</span><span class="n">line</span> <span class="k">=&gt;</span>
<span class="n">line</span><span class="o">.</span><span class="n">split</span><span
class="o">(</span><span class="s">&quot; &quot;</span><span
class="o">).</span><span class="n">map</span><span class="o">(</span><span
class="n">word</span> <span class="k">=&gt;</span> <span class="nc">Word</span><span
class="o">(</span><span class="n">word</span><span class="o">,</span><span
class="mi">1</span><span class="o">)}</span>  



Mime
View raw message