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 63968ee Publishing website 2019/09/19 20:57:32 at commit 2adc2d1
63968ee is described below
commit 63968eec9c816cc1ae5be9df4473590d9fbd561d
Author: jenkins <[email protected]>
AuthorDate: Thu Sep 19 20:57:32 2019 +0000
Publishing website 2019/09/19 20:57:32 at commit 2adc2d1
---
.../python/elementwise/filter/index.html | 72 ++++----
.../python/elementwise/flatmap/index.html | 199 +++++++++++++++------
2 files changed, 176 insertions(+), 95 deletions(-)
diff --git
a/website/generated-content/documentation/transforms/python/elementwise/filter/index.html
b/website/generated-content/documentation/transforms/python/elementwise/filter/index.html
index ad7d59e..00d256c 100644
---
a/website/generated-content/documentation/transforms/python/elementwise/filter/index.html
+++
b/website/generated-content/documentation/transforms/python/elementwise/filter/index.html
@@ -484,15 +484,15 @@ limitations under the License.
localStorage.setItem('language', 'language-py')
</script>
-<table>
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://beam.apache.org/releases/pydoc/current/apache_beam.transforms.core.html#apache_beam.transforms.core.Filter">
- <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="20px" height="20px" alt="Pydoc" />
+ <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="32px" height="32px" alt="Pydoc" />
Pydoc
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<p>Given a predicate, filter out all elements that don’t satisfy that
predicate.
May also be used to filter based on an inequality with a given value based
@@ -540,24 +540,24 @@ Then, we apply <code
class="highlighter-rouge">Filter</code> in multiple ways to
</code></pre>
</div>
-<table style="display: inline-block" class="notebook-skip">
+<table align="left" style="margin-right:1em" class="notebook-skip">
<td>
<a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/filter-py.ipynb">
- <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="20px" height="20px" alt="Run in Colab" />
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run in Colab" />
Run code now
</a>
</td>
</table>
-<table style="display: inline-block">
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/filter.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View source code" />
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-2-filtering-with-a-lambda-function">Example 2: Filtering with
a lambda function</h3>
@@ -592,24 +592,24 @@ Then, we apply <code
class="highlighter-rouge">Filter</code> in multiple ways to
</code></pre>
</div>
-<table style="display: inline-block" class="notebook-skip">
+<table align="left" style="margin-right:1em" class="notebook-skip">
<td>
<a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/filter-py.ipynb">
- <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="20px" height="20px" alt="Run code now" />
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
Run code now
</a>
</td>
</table>
-<table style="display: inline-block">
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/filter.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View source code" />
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-3-filtering-with-multiple-arguments">Example 3: Filtering with
multiple arguments</h3>
@@ -649,24 +649,24 @@ They are passed as additional positional arguments or
keyword arguments to the f
</code></pre>
</div>
-<table style="display: inline-block" class="notebook-skip">
+<table align="left" style="margin-right:1em" class="notebook-skip">
<td>
<a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/filter-py.ipynb">
- <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="20px" height="20px" alt="Run in Colab" />
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run in Colab" />
Run code now
</a>
</td>
</table>
-<table style="display: inline-block">
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/filter.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View source code" />
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-4-filtering-with-side-inputs-as-singletons">Example 4:
Filtering with side inputs as singletons</h3>
@@ -709,24 +709,24 @@ We then use that value to filter out perennials.</p>
</code></pre>
</div>
-<table style="display: inline-block" class="notebook-skip">
+<table align="left" style="margin-right:1em" class="notebook-skip">
<td>
<a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/filter-py.ipynb">
- <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="20px" height="20px" alt="Run in Colab" />
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run in Colab" />
Run code now
</a>
</td>
</table>
-<table style="display: inline-block">
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/filter.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View source code" />
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-5-filtering-with-side-inputs-as-iterators">Example 5:
Filtering with side inputs as iterators</h3>
@@ -772,24 +772,24 @@ so it is possible to iterate over large <code
class="highlighter-rouge">PCollect
</code></pre>
</div>
-<table style="display: inline-block" class="notebook-skip">
+<table align="left" style="margin-right:1em" class="notebook-skip">
<td>
<a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/filter-py.ipynb">
- <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="20px" height="20px" alt="Run in Colab" />
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run in Colab" />
Run code now
</a>
</td>
</table>
-<table style="display: inline-block">
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/filter.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View source code" />
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<blockquote>
<p><strong>Note</strong>: You can pass the <code
class="highlighter-rouge">PCollection</code> as a <em>list</em> with <code
class="highlighter-rouge">beam.pvalue.AsList(pcollection)</code>,
@@ -840,24 +840,24 @@ If the <code class="highlighter-rouge">PCollection</code>
won’t fit into memor
</code></pre>
</div>
-<table style="display: inline-block" class="notebook-skip">
+<table align="left" style="margin-right:1em" class="notebook-skip">
<td>
<a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/filter-py.ipynb">
- <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="20px" height="20px" alt="Run in Colab" />
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run in Colab" />
Run code now
</a>
</td>
</table>
-<table style="display: inline-block">
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/filter.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View source code" />
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h2 id="related-transforms">Related transforms</h2>
@@ -868,15 +868,15 @@ each input it might produce zero or more outputs.</li>
operation, and includes other abilities such as multiple output collections
and side-inputs.</li>
</ul>
-<table>
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://beam.apache.org/releases/pydoc/current/apache_beam.transforms.core.html#apache_beam.transforms.core.Filter">
- <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="20px" height="20px" alt="Pydoc" />
+ <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="32px" height="32px" alt="Pydoc" />
Pydoc
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
</div>
</div>
diff --git
a/website/generated-content/documentation/transforms/python/elementwise/flatmap/index.html
b/website/generated-content/documentation/transforms/python/elementwise/flatmap/index.html
index 2de3e7b..304abf6 100644
---
a/website/generated-content/documentation/transforms/python/elementwise/flatmap/index.html
+++
b/website/generated-content/documentation/transforms/python/elementwise/flatmap/index.html
@@ -487,15 +487,15 @@ limitations under the License.
localStorage.setItem('language', 'language-py')
</script>
-<table>
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://beam.apache.org/releases/pydoc/current/apache_beam.transforms.core.html#apache_beam.transforms.core.FlatMap">
- <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="20px" height="20px" alt="Pydoc" />
+ <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="32px" height="32px" alt="Pydoc" />
Pydoc
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<p>Applies a simple 1-to-many mapping function over each element in the
collection.
The many elements are flattened into the resulting collection.</p>
@@ -528,9 +528,9 @@ This pipeline splits the input element using whitespaces,
creating a list of zer
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>plants = [
'🍓Strawberry',
'🥕Carrot',
'🍆Eggplant',
@@ -540,15 +540,24 @@ This pipeline splits the input element using whitespaces,
creating a list of zer
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-2-flatmap-with-a-function">Example 2: FlatMap with a
function</h3>
@@ -572,9 +581,9 @@ This pipeline splits the input element using whitespaces,
creating a list of zer
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>plants = [
'🍓Strawberry',
'🥕Carrot',
'🍆Eggplant',
@@ -584,15 +593,24 @@ This pipeline splits the input element using whitespaces,
creating a list of zer
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-3-flatmap-with-a-lambda-function">Example 3: FlatMap with a
lambda function</h3>
@@ -615,9 +633,9 @@ We use a lambda function that returns the same input
element it received.</p>
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>plants = [
'🍓Strawberry',
'🥕Carrot',
'🍆Eggplant',
@@ -627,15 +645,24 @@ We use a lambda function that returns the same input
element it received.</p>
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-4-flatmap-with-a-generator">Example 4: FlatMap with a
generator</h3>
@@ -662,9 +689,9 @@ Each yielded result in the generator is an element in the
resulting <code class=
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>plants = [
'🍓Strawberry',
'🥕Carrot',
'🍆Eggplant',
@@ -674,15 +701,24 @@ Each yielded result in the generator is an element in the
resulting <code class=
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-5-flatmaptuple-for-key-value-pairs">Example 5: FlatMapTuple
for key-value pairs</h3>
@@ -712,9 +748,9 @@ you can use <code
class="highlighter-rouge">FlatMapTuple</code> to unpack them i
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMapTuple</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMapTuple</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>plants = [
'🍓Strawberry',
'🥕Carrot',
'🍆Eggplant',
@@ -724,15 +760,24 @@ you can use <code
class="highlighter-rouge">FlatMapTuple</code> to unpack them i
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-6-flatmap-with-multiple-arguments">Example 6: FlatMap with
multiple arguments</h3>
@@ -759,9 +804,9 @@ They are passed as additional positional arguments or
keyword arguments to the f
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>plants = [
'🍓Strawberry',
'🥕Carrot',
'🍆Eggplant',
@@ -771,15 +816,24 @@ They are passed as additional positional arguments or
keyword arguments to the f
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-7-flatmap-with-side-inputs-as-singletons">Example 7: FlatMap
with side inputs as singletons</h3>
@@ -809,9 +863,9 @@ We then use that value as the delimiter for the <code
class="highlighter-rouge">
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>plants = [
'🍓Strawberry',
'🥕Carrot',
'🍆Eggplant',
@@ -821,15 +875,24 @@ We then use that value as the delimiter for the <code
class="highlighter-rouge">
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h3 id="example-8-flatmap-with-side-inputs-as-iterators">Example 8: FlatMap
with side inputs as iterators</h3>
@@ -869,9 +932,9 @@ so it is possible to iterate over large <code
class="highlighter-rouge">PCollect
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>valid_plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>valid_plants = [
{'icon': '🍓', 'name': 'Strawberry', 'duration': 'perennial'},
{'icon': '🥕', 'name': 'Carrot', 'duration': 'biennial'},
{'icon': '🍆', 'name': 'Eggplant', 'duration': 'perennial'},
@@ -880,15 +943,24 @@ so it is possible to iterate over large <code
class="highlighter-rouge">PCollect
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<blockquote>
<p><strong>Note</strong>: You can pass the <code
class="highlighter-rouge">PCollection</code> as a <em>list</em> with <code
class="highlighter-rouge">beam.pvalue.AsList(pcollection)</code>,
@@ -934,9 +1006,9 @@ If the <code class="highlighter-rouge">PCollection</code>
won’t fit into memor
</code></pre>
</div>
-<p>Output <code class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
+<p class="notebook-skip">Output <code
class="highlighter-rouge">PCollection</code> after <code
class="highlighter-rouge">FlatMap</code>:</p>
-<div class="highlighter-rouge"><pre class="highlight"><code>valid_plants = [
+<div class="notebook-skip highlighter-rouge"><pre
class="highlight"><code>valid_plants = [
{'icon': '🍓', 'name': 'Strawberry', 'duration': 'perennial'},
{'icon': '🥕', 'name': 'Carrot', 'duration': 'biennial'},
{'icon': '🍆', 'name': 'Eggplant', 'duration': 'perennial'},
@@ -945,15 +1017,24 @@ If the <code
class="highlighter-rouge">PCollection</code> won’t fit into memor
</code></pre>
</div>
-<table>
+<table align="left" style="margin-right:1em" class="notebook-skip">
+ <td>
+ <a class="button" target="_blank"
href="https://colab.research.google.com/github/apache/beam/blob/master/examples/notebooks/documentation/transforms/python/element-wise/flatmap-py.ipynb">
+ <img
src="https://github.com/googlecolab/open_in_colab/raw/master/images/icon32.png"
width="32px" height="32px" alt="Run code now" />
+ Run code now
+ </a>
+ </td>
+</table>
+
+<table align="left" style="margin-right:1em">
<td>
<a class="button" target="_blank"
href="https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/snippets/transforms/element_wise/flat_map.py">
- <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="20px" height="20px" alt="View on GitHub" />
- View on GitHub
+ <img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png"
width="32px" height="32px" alt="View source code" />
+ View source code
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
<h2 id="related-transforms">Related transforms</h2>
@@ -968,12 +1049,12 @@ operation, and includes other abilities such as multiple
output collections and
<table>
<td>
<a class="button" target="_blank"
href="https://beam.apache.org/releases/pydoc/current/apache_beam.transforms.core.html#apache_beam.transforms.core.FlatMap">
- <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="20px" height="20px" alt="Pydoc" />
+ <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="32px" height="32px" alt="Pydoc" />
Pydoc
</a>
</td>
</table>
-<p><br /></p>
+<p><br /><br /><br /></p>
</div>
</div>