| |
| |
| <!DOCTYPE html> |
| <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
| <head> |
| <meta charset="utf-8"> |
| |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| |
| <title>apache_beam.dataframe.expressions module — Apache Beam documentation</title> |
| |
| |
| |
| |
| |
| |
| |
| |
| <script type="text/javascript" src="_static/js/modernizr.min.js"></script> |
| |
| |
| <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script> |
| <script type="text/javascript" src="_static/jquery.js"></script> |
| <script type="text/javascript" src="_static/underscore.js"></script> |
| <script type="text/javascript" src="_static/doctools.js"></script> |
| <script type="text/javascript" src="_static/language_data.js"></script> |
| |
| <script type="text/javascript" src="_static/js/theme.js"></script> |
| |
| |
| |
| |
| <link rel="stylesheet" href="_static/css/theme.css" type="text/css" /> |
| <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> |
| <link rel="index" title="Index" href="genindex.html" /> |
| <link rel="search" title="Search" href="search.html" /> |
| <link rel="next" title="apache_beam.dataframe.frame_base module" href="apache_beam.dataframe.frame_base.html" /> |
| <link rel="prev" title="apache_beam.dataframe.doctests module" href="apache_beam.dataframe.doctests.html" /> |
| </head> |
| |
| <body class="wy-body-for-nav"> |
| |
| |
| <div class="wy-grid-for-nav"> |
| |
| <nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
| <div class="wy-side-scroll"> |
| <div class="wy-side-nav-search" > |
| |
| |
| |
| <a href="index.html" class="icon icon-home"> Apache Beam |
| |
| |
| |
| </a> |
| |
| |
| |
| |
| |
| |
| |
| <div role="search"> |
| <form id="rtd-search-form" class="wy-form" action="search.html" method="get"> |
| <input type="text" name="q" placeholder="Search docs" /> |
| <input type="hidden" name="check_keywords" value="yes" /> |
| <input type="hidden" name="area" value="default" /> |
| </form> |
| </div> |
| |
| |
| </div> |
| |
| <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
| |
| |
| |
| |
| |
| |
| <ul class="current"> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.coders.html">apache_beam.coders package</a></li> |
| <li class="toctree-l1 current"><a class="reference internal" href="apache_beam.dataframe.html">apache_beam.dataframe package</a><ul class="current"> |
| <li class="toctree-l2 current"><a class="reference internal" href="apache_beam.dataframe.html#submodules">Submodules</a><ul class="current"> |
| <li class="toctree-l3"><a class="reference internal" href="apache_beam.dataframe.convert.html">apache_beam.dataframe.convert module</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="apache_beam.dataframe.doctests.html">apache_beam.dataframe.doctests module</a></li> |
| <li class="toctree-l3 current"><a class="current reference internal" href="#">apache_beam.dataframe.expressions module</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="apache_beam.dataframe.frame_base.html">apache_beam.dataframe.frame_base module</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="apache_beam.dataframe.frames.html">apache_beam.dataframe.frames module</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="apache_beam.dataframe.io.html">apache_beam.dataframe.io module</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="apache_beam.dataframe.partitionings.html">apache_beam.dataframe.partitionings module</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="apache_beam.dataframe.schemas.html">apache_beam.dataframe.schemas module</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="apache_beam.dataframe.transforms.html">apache_beam.dataframe.transforms module</a></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.internal.html">apache_beam.internal package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.io.html">apache_beam.io package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.metrics.html">apache_beam.metrics package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.ml.html">apache_beam.ml package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.options.html">apache_beam.options package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.portability.html">apache_beam.portability package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.runners.html">apache_beam.runners package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.testing.html">apache_beam.testing package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.tools.html">apache_beam.tools package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.transforms.html">apache_beam.transforms package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.typehints.html">apache_beam.typehints package</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.utils.html">apache_beam.utils package</a></li> |
| </ul> |
| <ul> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.error.html">apache_beam.error module</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.pipeline.html">apache_beam.pipeline module</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.pvalue.html">apache_beam.pvalue module</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="apache_beam.version.html">apache_beam.version module</a></li> |
| </ul> |
| |
| |
| |
| </div> |
| </div> |
| </nav> |
| |
| <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
| |
| |
| <nav class="wy-nav-top" aria-label="top navigation"> |
| |
| <i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| <a href="index.html">Apache Beam</a> |
| |
| </nav> |
| |
| |
| <div class="wy-nav-content"> |
| |
| <div class="rst-content"> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <div role="navigation" aria-label="breadcrumbs navigation"> |
| |
| <ul class="wy-breadcrumbs"> |
| |
| <li><a href="index.html">Docs</a> »</li> |
| |
| <li><a href="apache_beam.dataframe.html">apache_beam.dataframe package</a> »</li> |
| |
| <li>apache_beam.dataframe.expressions module</li> |
| |
| |
| <li class="wy-breadcrumbs-aside"> |
| |
| |
| <a href="_sources/apache_beam.dataframe.expressions.rst.txt" rel="nofollow"> View page source</a> |
| |
| |
| </li> |
| |
| </ul> |
| |
| |
| <hr/> |
| </div> |
| <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| <div itemprop="articleBody"> |
| |
| <div class="section" id="module-apache_beam.dataframe.expressions"> |
| <span id="apache-beam-dataframe-expressions-module"></span><h1>apache_beam.dataframe.expressions module<a class="headerlink" href="#module-apache_beam.dataframe.expressions" title="Permalink to this headline">¶</a></h1> |
| <dl class="class"> |
| <dt id="apache_beam.dataframe.expressions.Session"> |
| <em class="property">class </em><code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">Session</code><span class="sig-paren">(</span><em>bindings=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Session"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Session" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p> |
| <p>A session represents a mapping of expressions to concrete values.</p> |
| <p>The bindings typically include required placeholders, but may be any |
| intermediate expression as well.</p> |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.Session.evaluate"> |
| <code class="descname">evaluate</code><span class="sig-paren">(</span><em>expr</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Session.evaluate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Session.evaluate" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.Session.lookup"> |
| <code class="descname">lookup</code><span class="sig-paren">(</span><em>expr</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Session.lookup"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Session.lookup" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| </dd></dl> |
| |
| <dl class="class"> |
| <dt id="apache_beam.dataframe.expressions.PartitioningSession"> |
| <em class="property">class </em><code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">PartitioningSession</code><span class="sig-paren">(</span><em>bindings=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#PartitioningSession"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.PartitioningSession" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Bases: <a class="reference internal" href="#apache_beam.dataframe.expressions.Session" title="apache_beam.dataframe.expressions.Session"><code class="xref py py-class docutils literal notranslate"><span class="pre">apache_beam.dataframe.expressions.Session</span></code></a></p> |
| <p>An extension of Session that enforces actual partitioning of inputs.</p> |
| <p>When evaluating an expression, inputs are partitioned according to its |
| <cite>requires_partition_by</cite> specifications, the expression is evaluated on each |
| partition separately, and the final result concatinated, as if this were |
| actually executed in a parallel manner.</p> |
| <p>For testing only.</p> |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.PartitioningSession.evaluate"> |
| <code class="descname">evaluate</code><span class="sig-paren">(</span><em>expr</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#PartitioningSession.evaluate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.PartitioningSession.evaluate" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| </dd></dl> |
| |
| <dl class="class"> |
| <dt id="apache_beam.dataframe.expressions.Expression"> |
| <em class="property">class </em><code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">Expression</code><span class="sig-paren">(</span><em>name</em>, <em>proxy</em>, <em>_id=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Expression"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Expression" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p> |
| <p>An expression is an operation bound to a set of arguments.</p> |
| <p>An expression represents a deferred tree of operations, which can be |
| evaluated at a specific bindings of root expressions to values.</p> |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.Expression.proxy"> |
| <code class="descname">proxy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Expression.proxy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Expression.proxy" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.Expression.placeholders"> |
| <code class="descname">placeholders</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Expression.placeholders"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Expression.placeholders" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Returns all the placeholders that self depends on.</p> |
| </dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.Expression.evaluate_at"> |
| <code class="descname">evaluate_at</code><span class="sig-paren">(</span><em>session</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Expression.evaluate_at"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Expression.evaluate_at" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Returns the result of self with the bindings given in session.</p> |
| </dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.Expression.requires_partition_by"> |
| <code class="descname">requires_partition_by</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Expression.requires_partition_by"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Expression.requires_partition_by" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Returns the partitioning, if any, require to evaluate this expression.</p> |
| <p>Returns partitioning.Nothing() to require no partitioning is required.</p> |
| </dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.Expression.preserves_partition_by"> |
| <code class="descname">preserves_partition_by</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#Expression.preserves_partition_by"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.Expression.preserves_partition_by" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Returns the partitioning, if any, preserved by this expression.</p> |
| <p>This gives an upper bound on the partitioning of its ouput. The actual |
| partitioning of the output may be less strict (e.g. if the input was |
| less partitioned).</p> |
| </dd></dl> |
| |
| </dd></dl> |
| |
| <dl class="class"> |
| <dt id="apache_beam.dataframe.expressions.PlaceholderExpression"> |
| <em class="property">class </em><code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">PlaceholderExpression</code><span class="sig-paren">(</span><em>proxy</em>, <em>reference=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#PlaceholderExpression"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.PlaceholderExpression" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Bases: <a class="reference internal" href="#apache_beam.dataframe.expressions.Expression" title="apache_beam.dataframe.expressions.Expression"><code class="xref py py-class docutils literal notranslate"><span class="pre">apache_beam.dataframe.expressions.Expression</span></code></a></p> |
| <p>An expression whose value must be explicitly bound in the session.</p> |
| <p>Initialize a placeholder expression.</p> |
| <table class="docutils field-list" frame="void" rules="none"> |
| <col class="field-name" /> |
| <col class="field-body" /> |
| <tbody valign="top"> |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>proxy</strong> – A proxy object with the type expected to be bound to this |
| expression. Used for type checking at pipeline construction time.</td> |
| </tr> |
| </tbody> |
| </table> |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.PlaceholderExpression.placeholders"> |
| <code class="descname">placeholders</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#PlaceholderExpression.placeholders"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.PlaceholderExpression.placeholders" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.PlaceholderExpression.args"> |
| <code class="descname">args</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#PlaceholderExpression.args"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.PlaceholderExpression.args" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.PlaceholderExpression.evaluate_at"> |
| <code class="descname">evaluate_at</code><span class="sig-paren">(</span><em>session</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#PlaceholderExpression.evaluate_at"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.PlaceholderExpression.evaluate_at" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.PlaceholderExpression.requires_partition_by"> |
| <code class="descname">requires_partition_by</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#PlaceholderExpression.requires_partition_by"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.PlaceholderExpression.requires_partition_by" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.PlaceholderExpression.preserves_partition_by"> |
| <code class="descname">preserves_partition_by</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#PlaceholderExpression.preserves_partition_by"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.PlaceholderExpression.preserves_partition_by" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| </dd></dl> |
| |
| <dl class="class"> |
| <dt id="apache_beam.dataframe.expressions.ConstantExpression"> |
| <em class="property">class </em><code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">ConstantExpression</code><span class="sig-paren">(</span><em>value</em>, <em>proxy=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ConstantExpression"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ConstantExpression" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Bases: <a class="reference internal" href="#apache_beam.dataframe.expressions.Expression" title="apache_beam.dataframe.expressions.Expression"><code class="xref py py-class docutils literal notranslate"><span class="pre">apache_beam.dataframe.expressions.Expression</span></code></a></p> |
| <p>An expression whose value is known at pipeline construction time.</p> |
| <p>Initialize a constant expression.</p> |
| <table class="docutils field-list" frame="void" rules="none"> |
| <col class="field-name" /> |
| <col class="field-body" /> |
| <tbody valign="top"> |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
| <li><strong>value</strong> – The constant value to be produced by this expression.</li> |
| <li><strong>proxy</strong> – (Optional) a proxy object with same type as <cite>value</cite> to use for |
| rapid type checking at pipeline construction time. If not provided, |
| <cite>value</cite> will be used directly.</li> |
| </ul> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ConstantExpression.placeholders"> |
| <code class="descname">placeholders</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ConstantExpression.placeholders"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ConstantExpression.placeholders" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ConstantExpression.args"> |
| <code class="descname">args</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ConstantExpression.args"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ConstantExpression.args" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ConstantExpression.evaluate_at"> |
| <code class="descname">evaluate_at</code><span class="sig-paren">(</span><em>session</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ConstantExpression.evaluate_at"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ConstantExpression.evaluate_at" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ConstantExpression.requires_partition_by"> |
| <code class="descname">requires_partition_by</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ConstantExpression.requires_partition_by"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ConstantExpression.requires_partition_by" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ConstantExpression.preserves_partition_by"> |
| <code class="descname">preserves_partition_by</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ConstantExpression.preserves_partition_by"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ConstantExpression.preserves_partition_by" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| </dd></dl> |
| |
| <dl class="class"> |
| <dt id="apache_beam.dataframe.expressions.ComputedExpression"> |
| <em class="property">class </em><code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">ComputedExpression</code><span class="sig-paren">(</span><em>name</em>, <em>func</em>, <em>args</em>, <em>proxy=None</em>, <em>_id=None</em>, <em>requires_partition_by=<apache_beam.dataframe.partitionings.Index object></em>, <em>preserves_partition_by=<apache_beam.dataframe.partitionings.Nothing object></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ComputedExpression"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ComputedExpression" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Bases: <a class="reference internal" href="#apache_beam.dataframe.expressions.Expression" title="apache_beam.dataframe.expressions.Expression"><code class="xref py py-class docutils literal notranslate"><span class="pre">apache_beam.dataframe.expressions.Expression</span></code></a></p> |
| <p>An expression whose value must be computed at pipeline execution time.</p> |
| <p>Initialize a computed expression.</p> |
| <table class="docutils field-list" frame="void" rules="none"> |
| <col class="field-name" /> |
| <col class="field-body" /> |
| <tbody valign="top"> |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
| <li><strong>name</strong> – The name of this expression.</li> |
| <li><strong>func</strong> – The function that will be used to compute the value of this |
| expression. Should accept arguments of the types returned when |
| evaluating the <cite>args</cite> expressions.</li> |
| <li><strong>args</strong> – The list of expressions that will be used to produce inputs to |
| <cite>func</cite>.</li> |
| <li><strong>proxy</strong> – (Optional) a proxy object with same type as the objects that this |
| ComputedExpression will produce at execution time. If not provided, a |
| proxy will be generated using <cite>func</cite> and the proxies of <cite>args</cite>.</li> |
| <li><strong>_id</strong> – (Optional) a string to uniquely identify this expression.</li> |
| <li><strong>requires_partition_by</strong> – The required (common) partitioning of the args.</li> |
| <li><strong>preserves_partition_by</strong> – The level of partitioning preserved.</li> |
| </ul> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ComputedExpression.placeholders"> |
| <code class="descname">placeholders</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ComputedExpression.placeholders"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ComputedExpression.placeholders" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ComputedExpression.args"> |
| <code class="descname">args</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ComputedExpression.args"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ComputedExpression.args" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ComputedExpression.evaluate_at"> |
| <code class="descname">evaluate_at</code><span class="sig-paren">(</span><em>session</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ComputedExpression.evaluate_at"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ComputedExpression.evaluate_at" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ComputedExpression.requires_partition_by"> |
| <code class="descname">requires_partition_by</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ComputedExpression.requires_partition_by"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ComputedExpression.requires_partition_by" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="method"> |
| <dt id="apache_beam.dataframe.expressions.ComputedExpression.preserves_partition_by"> |
| <code class="descname">preserves_partition_by</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#ComputedExpression.preserves_partition_by"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.ComputedExpression.preserves_partition_by" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| </dd></dl> |
| |
| <dl class="function"> |
| <dt id="apache_beam.dataframe.expressions.elementwise_expression"> |
| <code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">elementwise_expression</code><span class="sig-paren">(</span><em>name</em>, <em>func</em>, <em>args</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#elementwise_expression"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.elementwise_expression" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="function"> |
| <dt id="apache_beam.dataframe.expressions.allow_non_parallel_operations"> |
| <code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">allow_non_parallel_operations</code><span class="sig-paren">(</span><em>allow=True</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#allow_non_parallel_operations"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.allow_non_parallel_operations" title="Permalink to this definition">¶</a></dt> |
| <dd></dd></dl> |
| |
| <dl class="exception"> |
| <dt id="apache_beam.dataframe.expressions.NonParallelOperation"> |
| <em class="property">exception </em><code class="descclassname">apache_beam.dataframe.expressions.</code><code class="descname">NonParallelOperation</code><a class="reference internal" href="_modules/apache_beam/dataframe/expressions.html#NonParallelOperation"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#apache_beam.dataframe.expressions.NonParallelOperation" title="Permalink to this definition">¶</a></dt> |
| <dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#Exception" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Exception</span></code></a></p> |
| </dd></dl> |
| |
| </div> |
| |
| |
| </div> |
| |
| </div> |
| <footer> |
| |
| <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> |
| |
| <a href="apache_beam.dataframe.frame_base.html" class="btn btn-neutral float-right" title="apache_beam.dataframe.frame_base module" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> |
| |
| |
| <a href="apache_beam.dataframe.doctests.html" class="btn btn-neutral float-left" title="apache_beam.dataframe.doctests module" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> |
| |
| </div> |
| |
| |
| <hr/> |
| |
| <div role="contentinfo"> |
| <p> |
| © Copyright |
| |
| </p> |
| </div> |
| Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. |
| |
| </footer> |
| |
| </div> |
| </div> |
| |
| </section> |
| |
| </div> |
| |
| |
| |
| <script type="text/javascript"> |
| jQuery(function () { |
| SphinxRtdTheme.Navigation.enable(true); |
| }); |
| </script> |
| |
| |
| |
| |
| |
| |
| </body> |
| </html> |