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 b3e5e98379c Publishing website 2023/02/27 22:17:21 at commit 170c418 b3e5e98379c is described below commit b3e5e98379c3a43a8bc88b2d2188665afbbd2c6e Author: jenkins <bui...@apache.org> AuthorDate: Mon Feb 27 22:17:21 2023 +0000 Publishing website 2023/02/27 22:17:21 at commit 170c418 --- website/generated-content/get-started/from-spark/index.html | 9 +++++---- website/generated-content/get-started/index.xml | 9 +++++---- website/generated-content/sitemap.xml | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/website/generated-content/get-started/from-spark/index.html b/website/generated-content/get-started/from-spark/index.html index 09f29eb00cb..edadaf18b41 100644 --- a/website/generated-content/get-started/from-spark/index.html +++ b/website/generated-content/get-started/from-spark/index.html @@ -100,11 +100,12 @@ and access them as an <a href=https://docs.python.org/3/glossary.html#term-itera <span class=n>min_value</span> <span class=o>=</span> <span class=n>values</span> <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>CombineGlobally</span><span class=p>(</span><span class=nb>min</span><span class=p>)</span> <span class=n>max_value</span> <span class=o>=</span> <span class=n>values</span> <span class=o>|</span> <span class=n>beam</span><span class=o>.</span><span class=n>CombineGlobally</span><span class=p>(</span><span class=nb>max</span><span class=p>)</span> - <span class=c1># To access `total`, we need to pass it as a side input.</span> + <span class=c1># To access `min_value` and `max_value`, we need to pass them as a side input.</span> <span class=n>scaled_values</span> <span class=o>=</span> <span class=n>values</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>lambda</span> <span class=n>x</span><span class=p>,</span> <span class=n>min_value</span><span class=p>,</span> <span class=n>max_value</span><span class=p>:</span> <span class=n>x</span> <span class=o>/</span> <span class=k>lambda</span> <span class=n>x</span><span class=p>:</span> <span class=p>(</span><span class=n>x</span> <span class=o>-</span> <span class=n>min_value</span><span class=p>)</span> <span class=o>/</span> <span class=p>(</span><span class=n>max_va [...] - <span class=n>min_value</span> <span class=o>=</span><span class=n>beam</span><span class=o>.</span><span class=n>pvalue</span><span class=o>.</span><span class=n>AsSingleton</span><span class=p>(</span><span class=n>min_value</span><span class=p>),</span> - <span class=n>max_value</span> <span class=o>=</span><span class=n>beam</span><span class=o>.</span><span class=n>pvalue</span><span class=o>.</span><span class=n>AsSingleton</span><span class=p>(</span><span class=n>max_value</span><span class=p>))</span> + <span class=k>lambda</span> <span class=n>x</span><span class=p>,</span> <span class=n>minimum</span><span class=p>,</span> <span class=n>maximum</span><span class=p>:</span> <span class=p>(</span><span class=n>x</span> <span class=o>-</span> <span class=n>minimum</span><span class=p>)</span> <span class=o>/</span> <span class=p>(</span><span class=n>maximum</span> <span class=o>-</span> <span class=n>minimum</span><span class=p>),</span> + <span class=n>minimum</span><span class=o>=</span><span class=n>beam</span><span class=o>.</span><span class=n>pvalue</span><span class=o>.</span><span class=n>AsSingleton</span><span class=p>(</span><span class=n>min_value</span><span class=p>),</span> + <span class=n>maximum</span><span class=o>=</span><span class=n>beam</span><span class=o>.</span><span class=n>pvalue</span><span class=o>.</span><span class=n>AsSingleton</span><span class=p>(</span><span class=n>max_value</span><span class=p>),</span> + <span class=p>)</span> <span class=n>scaled_values</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><blockquote><p>ℹ️ In Beam we need to pass a side input explicitly, but we get the benefit that a reduction or aggregation does <em>not</em> have to fit into memory. diff --git a/website/generated-content/get-started/index.xml b/website/generated-content/get-started/index.xml index fcfdc6068f2..01628f9e252 100644 --- a/website/generated-content/get-started/index.xml +++ b/website/generated-content/get-started/index.xml @@ -4238,11 +4238,12 @@ and access them as an <a href="https://docs.python.org/3/glossary.html#term-i <span class="n">values</span> <span class="o">=</span> <span class="n">pipeline</span> <span class="o">|</span> <span class="n">beam</span><span class="o">.</span><span class="n">Create</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span c [...] <span class="n">min_value</span> <span class="o">=</span> <span class="n">values</span> <span class="o">|</span> <span class="n">beam</span><span class="o">.</span><span class="n">CombineGlobally</span><span class="p">(</span><span class="nb">min</span><span class="p">)</span> <span class="n">max_value</span> <span class="o">=</span> <span class="n">values</span> <span class="o">|</span> <span class="n">beam</span><span class="o">.</span><span class="n">CombineGlobally</span><span class="p">(</span><span class="nb">max</span><span class="p">)</span> -<span class="c1"># To access `total`, we need to pass it as a side input.</span> +<span class="c1"># To access `min_value` and `max_value`, we need to pass them as a side input.</span> <span class="n">scaled_values</span> <span class="o">=</span> <span class="n">values</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">lambda</span> <span class="n">x</span><span class="p">,</span> <span class="n">min_value</span><span class="p">,</span> <span class="n">max_value</span><span class="p">:</span> <span class="n">x</span> <span class="o">/</span> <span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="p">(</span><span class="n">x</span> <span class="o">-</span> <sp [...] -<span class="n">min_value</span> <span class="o">=</span><span class="n">beam</span><span class="o">.</span><span class="n">pvalue</span><span class="o">.</span><span class="n">AsSingleton</span><span class="p">(</span><span class="n">min_value</span><span class="p">),</span> -<span class="n">max_value</span> <span class="o">=</span><span class="n">beam</span><span class="o">.</span><span class="n">pvalue</span><span class="o">.</span><span class="n">AsSingleton</span><span class="p">(</span><span class="n">max_value</span><span class="p">))</span> +<span class="k">lambda</span> <span class="n">x</span><span class="p">,</span> <span class="n">minimum</span><span class="p">,</span> <span class="n">maximum</span><span class="p">:</span> <span class="p">(</span><span class="n">x</span> <span class="o">-</span> <span class="n">minimum</span><span class="p">)</span> <span class="o">/</span> <span class="p">(</span><span class="n">maximum</span> < [...] +<span class="n">minimum</span><span class="o">=</span><span class="n">beam</span><span class="o">.</span><span class="n">pvalue</span><span class="o">.</span><span class="n">AsSingleton</span><span class="p">(</span><span class="n">min_value</span><span class="p">),</span> +<span class="n">maximum</span><span class="o">=</span><span class="n">beam</span><span class="o">.</span><span class="n">pvalue</span><span class="o">.</span><span class="n">AsSingleton</span><span class="p">(</span><span class="n">max_value</span><span class="p">),</span> +<span class="p">)</span> <span class="n">scaled_values</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> diff --git a/website/generated-content/sitemap.xml b/website/generated-content/sitemap.xml index 6489dc2df0b..27b1c12fe54 100644 --- a/website/generated-content/sitemap.xml +++ b/website/generated-content/sitemap.xml @@ -1 +1 @@ -<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/blog/beam-2.45.0/</loc><lastmod>2023-02-27T08:57:28-05:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2023-02-27T08:57:28-05:00</lastmod></url><url><loc>/blog/</loc><lastmod>2023-02-27T08:57:28-05:00</lastmod></url><url><loc>/categories/</loc><lastmod>2023-02-27T08:57:28-05:00</lastmod></url><url><loc>/catego [...] \ No newline at end of file +<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/blog/beam-2.45.0/</loc><lastmod>2023-02-27T14:02:47-08:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2023-02-27T14:02:47-08:00</lastmod></url><url><loc>/blog/</loc><lastmod>2023-02-27T14:02:47-08:00</lastmod></url><url><loc>/categories/</loc><lastmod>2023-02-27T14:02:47-08:00</lastmod></url><url><loc>/catego [...] \ No newline at end of file