beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject [2/3] incubator-beam-site git commit: Regenerate website
Date Fri, 09 Dec 2016 22:44:52 GMT
Regenerate website


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/commit/c5f8a46e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/tree/c5f8a46e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/diff/c5f8a46e

Branch: refs/heads/asf-site
Commit: c5f8a46e8298bd23565552ed4c1e5deed2e82d25
Parents: b68b680
Author: Davor Bonaci <davor@google.com>
Authored: Fri Dec 9 14:44:42 2016 -0800
Committer: Davor Bonaci <davor@google.com>
Committed: Fri Dec 9 14:44:42 2016 -0800

----------------------------------------------------------------------
 content/get-started/mobile-gaming-example/index.html | 8 ++++----
 content/get-started/wordcount-example/index.html     | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/c5f8a46e/content/get-started/mobile-gaming-example/index.html
----------------------------------------------------------------------
diff --git a/content/get-started/mobile-gaming-example/index.html b/content/get-started/mobile-gaming-example/index.html
index ebd4b9f..ada7ce7 100644
--- a/content/get-started/mobile-gaming-example/index.html
+++ b/content/get-started/mobile-gaming-example/index.html
@@ -255,7 +255,7 @@
   <span class="o">}</span>
 
   <span class="nd">@Override</span>
-  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Integer</span><span
class="o">&gt;&gt;</span> <span class="nf">apply</span><span
class="o">(</span>
+  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Integer</span><span
class="o">&gt;&gt;</span> <span class="nf">expand</span><span
class="o">(</span>
       <span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">GameActionInfo</span><span class="o">&gt;</span> <span
class="n">gameInfo</span><span class="o">)</span> <span class="o">{</span>
 
     <span class="k">return</span> <span class="n">gameInfo</span>
@@ -518,7 +518,7 @@
   <span class="o">}</span>
 
   <span class="nd">@Override</span>
-  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Integer</span><span
class="o">&gt;&gt;</span> <span class="nf">apply</span><span
class="o">(</span><span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">GameActionInfo</span><span class="o">&gt;</span> <span
class="n">input</span><span class="o">)</span> <span class="o">{</span>
+  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Integer</span><span
class="o">&gt;&gt;</span> <span class="nf">expand</span><span
class="o">(</span><span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">GameActionInfo</span><span class="o">&gt;</span> <span
class="n">input</span><span class="o">)</span> <span class="o">{</span>
     <span class="k">return</span> <span class="n">input</span><span
class="o">.</span><span class="na">apply</span><span class="o">(</span><span
class="s">"LeaderboardUserGlobalWindow"</span><span class="o">,</span>
         <span class="n">Window</span><span class="o">.&lt;</span><span
class="n">GameActionInfo</span><span class="o">&gt;</span><span
class="n">into</span><span class="o">(</span><span class="k">new</span>
<span class="n">GlobalWindows</span><span class="o">())</span>
             <span class="c1">// Get periodic results every ten minutes.</span>
@@ -570,7 +570,7 @@
   <span class="o">}</span>
 
   <span class="nd">@Override</span>
-  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Integer</span><span
class="o">&gt;&gt;</span> <span class="nf">apply</span><span
class="o">(</span><span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">GameActionInfo</span><span class="o">&gt;</span> <span
class="n">infos</span><span class="o">)</span> <span class="o">{</span>
+  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Integer</span><span
class="o">&gt;&gt;</span> <span class="nf">expand</span><span
class="o">(</span><span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">GameActionInfo</span><span class="o">&gt;</span> <span
class="n">infos</span><span class="o">)</span> <span class="o">{</span>
     <span class="k">return</span> <span class="n">infos</span><span
class="o">.</span><span class="na">apply</span><span class="o">(</span><span
class="s">"LeaderboardTeamFixedWindows"</span><span class="o">,</span>
         <span class="n">Window</span><span class="o">.&lt;</span><span
class="n">GameActionInfo</span><span class="o">&gt;</span><span
class="n">into</span><span class="o">(</span><span class="n">FixedWindows</span><span
class="o">.</span><span class="na">of</span><span class="o">(</span><span
class="n">teamWindowDuration</span><span class="o">))</span>
             <span class="c1">// We will get early (speculative) results as well as
cumulative</span>
@@ -628,7 +628,7 @@
   <span class="kd">private</span> <span class="kd">static</span>
<span class="kd">final</span> <span class="kt">double</span> <span
class="n">SCORE_WEIGHT</span> <span class="o">=</span> <span class="mf">2.5</span><span
class="o">;</span>
 
   <span class="nd">@Override</span>
-  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Integer</span><span
class="o">&gt;&gt;</span> <span class="nf">apply</span><span
class="o">(</span><span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">KV</span><span class="o">&lt;</span><span class="n">String</span><span
class="o">,</span> <span class="n">Integer</span><span class="o">&gt;&gt;</span>
<span class="n">userScores</span><span class="o">)</span> <span
class="o">{</span>
+  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Integer</span><span
class="o">&gt;&gt;</span> <span class="nf">expand</span><span
class="o">(</span><span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">KV</span><span class="o">&lt;</span><span class="n">String</span><span
class="o">,</span> <span class="n">Integer</span><span class="o">&gt;&gt;</span>
<span class="n">userScores</span><span class="o">)</span> <span
class="o">{</span>
 
     <span class="c1">// Get the sum of scores for each user.</span>
     <span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">KV</span><span class="o">&lt;</span><span class="n">String</span><span
class="o">,</span> <span class="n">Integer</span><span class="o">&gt;&gt;</span>
<span class="n">sumScores</span> <span class="o">=</span> <span
class="n">userScores</span>

http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/c5f8a46e/content/get-started/wordcount-example/index.html
----------------------------------------------------------------------
diff --git a/content/get-started/wordcount-example/index.html b/content/get-started/wordcount-example/index.html
index 5394081..5132240 100644
--- a/content/get-started/wordcount-example/index.html
+++ b/content/get-started/wordcount-example/index.html
@@ -373,7 +373,7 @@ Figure 1: The pipeline data flow.</p>
 <div class="language-java highlighter-rouge"><pre class="highlight"><code><span
class="kd">public</span> <span class="kd">static</span> <span class="kd">class</span>
<span class="nc">CountWords</span> <span class="kd">extends</span>
<span class="n">PTransform</span><span class="o">&lt;</span><span
class="n">PCollection</span><span class="o">&lt;</span><span class="n">String</span><span
class="o">&gt;,</span>
     <span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">KV</span><span class="o">&lt;</span><span class="n">String</span><span
class="o">,</span> <span class="n">Long</span><span class="o">&gt;&gt;&gt;</span>
<span class="o">{</span>
   <span class="nd">@Override</span>
-  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Long</span><span
class="o">&gt;&gt;</span> <span class="nf">apply</span><span
class="o">(</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="o">)</span> <span class="o">{</span>
+  <span class="kd">public</span> <span class="n">PCollection</span><span
class="o">&lt;</span><span class="n">KV</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">,</span> <span class="n">Long</span><span
class="o">&gt;&gt;</span> <span class="nf">expand</span><span
class="o">(</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="o">)</span> <span class="o">{</span>
 
     <span class="c1">// Convert lines of text into individual words.</span>
     <span class="n">PCollection</span><span class="o">&lt;</span><span
class="n">String</span><span class="o">&gt;</span> <span class="n">words</span>
<span class="o">=</span> <span class="n">lines</span><span class="o">.</span><span
class="na">apply</span><span class="o">(</span>


Mime
View raw message