You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by gi...@apache.org on 2021/10/18 18:02:21 UTC

[beam] branch asf-site updated: Publishing website 2021/10/18 18:01:42 at commit de396a6

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new befbb38  Publishing website 2021/10/18 18:01:42 at commit de396a6
befbb38 is described below

commit befbb3805a40600e2c069e3448b4f9bacc3acc64
Author: jenkins <bu...@apache.org>
AuthorDate: Mon Oct 18 18:01:43 2021 +0000

    Publishing website 2021/10/18 18:01:42 at commit de396a6
---
 website/generated-content/documentation/index.xml                        | 1 +
 .../documentation/transforms/python/aggregation/groupbykey/index.html    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/website/generated-content/documentation/index.xml b/website/generated-content/documentation/index.xml
index 73601a9..17ed239 100644
--- a/website/generated-content/documentation/index.xml
+++ b/website/generated-content/documentation/index.xml
@@ -17999,6 +17999,7 @@ where each element consists of a key and all values associated with that key.&lt
 &lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;winter&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;🍆&amp;#39;&lt;/span>&lt;span class="p">),&lt;/span>
 &lt;span class="p">])&lt;/span>
 &lt;span class="o">|&lt;/span> &lt;span class="s1">&amp;#39;Group counts per produce&amp;#39;&lt;/span> &lt;span class="o">&amp;gt;&amp;gt;&lt;/span> &lt;span class="n">beam&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">GroupByKey&lt;/span>&lt;span class="p">()&lt;/span>
+&lt;span class="o">|&lt;/span> &lt;span class="n">beam&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">MapTuple&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">lambda&lt;/span> &lt;span class="n">k&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">vs&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="n">k&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nb">sorted&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class= [...]
 &lt;span class="o">|&lt;/span> &lt;span class="n">beam&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Map&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">print&lt;/span>&lt;span class="p">))&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
 &lt;/div>
diff --git a/website/generated-content/documentation/transforms/python/aggregation/groupbykey/index.html b/website/generated-content/documentation/transforms/python/aggregation/groupbykey/index.html
index 2a193d5..016c10d 100644
--- a/website/generated-content/documentation/transforms/python/aggregation/groupbykey/index.html
+++ b/website/generated-content/documentation/transforms/python/aggregation/groupbykey/index.html
@@ -39,6 +39,7 @@ where each element consists of a key and all values associated with that key.</p
           <span class=p>(</span><span class=s1>&#39;winter&#39;</span><span class=p>,</span> <span class=s1>&#39;🍆&#39;</span><span class=p>),</span>
       <span class=p>])</span>
       <span class=o>|</span> <span class=s1>&#39;Group counts per produce&#39;</span> <span class=o>&gt;&gt;</span> <span class=n>beam</span><span class=o>.</span><span class=n>GroupByKey</span><span class=p>()</span>
+      <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>MapTuple</span><span class=p>(</span><span class=k>lambda</span> <span class=n>k</span><span class=p>,</span> <span class=n>vs</span><span class=p>:</span> <span class=p>(</span><span class=n>k</span><span class=p>,</span> <span class=nb>sorted</span><span class=p>(</span><span class=n>vs</span><span class=p>)))</span>  <span class=c1># sort and format</span>
       <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>Map</span><span class=p>(</span><span class=k>print</span><span class=p>))</span></code></pre></div></div></div><p class=notebook-skip>Output:</p><div class=snippet><div class="notebook-skip code-snippet without_switcher"><a class=copy type=button data-bs-toggle=tooltip data-bs-placement=bottom title="Copy to clipboard"><img src=/images/copy-icon.svg></a><pre><code>(&#39;spring&#39;, [&#39;🍓&#39;, & [...]
 (&#39;summer&#39;, [&#39;🥕&#39;, &#39;🍅&#39;, &#39;🌽&#39;])
 (&#39;fall&#39;, [&#39;🥕&#39;, &#39;🍅&#39;])