| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>org.apache.calcite.rex (Apache Calcite API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="org.apache.calcite.rex (Apache Calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var pathtoroot = "../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li class="navBarCell1Rev">Package</li> |
| <li>Class</li> |
| <li><a href="package-use.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <main role="main"> |
| <div class="header"> |
| <h1 title="Package" class="title">Package org.apache.calcite.rex</h1> |
| </div> |
| <div class="contentContainer"> |
| <section role="region"><a id="package.description"> |
| <!-- --> |
| </a> |
| <div class="block">Provides a language for representing row-expressions. |
| |
| <h2>Life-cycle</h2> |
| |
| <p>A <a href="../sql2rel/SqlToRelConverter.html" title="class in org.apache.calcite.sql2rel"><code>SqlToRelConverter</code></a> converts a SQL |
| parse tree consisting of <a href="../sql/SqlNode.html" title="class in org.apache.calcite.sql"><code>SqlNode</code></a> objects into |
| a relational expression (<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel"><code>RelNode</code></a>). Several |
| kinds of nodes in this tree have row expressions |
| (<a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a>).</p> |
| |
| <p>After the relational expression has been optimized, a |
| <a href="../adapter/enumerable/JavaRelImplementor.html" title="class in org.apache.calcite.adapter.enumerable"><code>JavaRelImplementor</code></a> converts it |
| into to a plan. If the plan is a Java parse tree, row-expressions are |
| translated into equivalent Java expressions.</p> |
| |
| <h2>Expressions</h2> |
| |
| |
| <p>Every row-expression has a type. (Compare with |
| <a href="../sql/SqlNode.html" title="class in org.apache.calcite.sql"><code>SqlNode</code></a>, which is created before validation, |
| and therefore types may not be available.)</p> |
| |
| <p>Every node in the parse tree is a <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a>. |
| Sub-types are:</p> |
| <ul> |
| <li><a href="RexLiteral.html" title="class in org.apache.calcite.rex"><code>RexLiteral</code></a> represents a boolean, |
| numeric, string, or date constant, or the value <code>NULL</code>. |
| </li> |
| <li><a href="RexVariable.html" title="class in org.apache.calcite.rex"><code>RexVariable</code></a> represents a leaf of the |
| tree. It has sub-types: |
| <ul> |
| <li><a href="RexCorrelVariable.html" title="class in org.apache.calcite.rex"><code>RexCorrelVariable</code></a> is a |
| correlating variable for nested-loop joins |
| </li> |
| <li><a href="RexInputRef.html" title="class in org.apache.calcite.rex"><code>RexInputRef</code></a> refers to a field |
| of an input relational expression |
| </li> |
| <li><a href="RexCall.html" title="class in org.apache.calcite.rex"><code>RexCall</code></a> is a call to an |
| operator or function. By means of special operators, we can |
| use this construct to represent virtually every non-leaf node |
| in the tree. |
| </li> |
| <li><a href="RexRangeRef.html" title="class in org.apache.calcite.rex"><code>RexRangeRef</code></a> refers to a |
| collection of contiguous fields from an input relational |
| expression. It usually exists only during translation. |
| </li> |
| </ul> |
| </li> |
| </ul> |
| |
| <p>Expressions are generally |
| created using a <a href="RexBuilder.html" title="class in org.apache.calcite.rex"><code>RexBuilder</code></a> factory.</p> |
| |
| <h2>Related packages</h2> |
| <ul> |
| <li><a href="../sql/package-summary.html"><code>org.apache.calcite.sql</code></a> SQL object model</li> |
| |
| <li><a href="../plan/package-summary.html"><code>org.apache.calcite.plan</code></a> Core classes, including |
| <a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type"><code>RelDataType</code></a> and |
| <a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type"><code>RelDataTypeFactory</code></a>.</li> |
| |
| </ul></div> |
| </section> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <table class="typeSummary"> |
| <caption><span>Interface Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Interface</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexAction.html" title="interface in org.apache.calcite.rex">RexAction</a></th> |
| <td class="colLast"> |
| <div class="block">A <code>RexAction</code> is called when a <a href="RexPattern.html" title="interface in org.apache.calcite.rex"><code>RexPattern</code></a> finds a match.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexBiVisitor.html" title="interface in org.apache.calcite.rex">RexBiVisitor</a><R,​P></th> |
| <td class="colLast"> |
| <div class="block">Visitor pattern for traversing a tree of <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> objects |
| and passing a payload to each.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexExecutor.html" title="interface in org.apache.calcite.rex">RexExecutor</a></th> |
| <td class="colLast"> |
| <div class="block">Can reduce expressions, writing a literal for each into a list.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexPattern.html" title="interface in org.apache.calcite.rex">RexPattern</a></th> |
| <td class="colLast"> |
| <div class="block">A <code>RexPattern</code> represents an expression with holes in it.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexSimplify.Predicate.html" title="interface in org.apache.calcite.rex">RexSimplify.Predicate</a></th> |
| <td class="colLast"> |
| <div class="block">Marker interface for predicates (expressions that evaluate to BOOLEAN).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexSqlConvertlet.html" title="interface in org.apache.calcite.rex">RexSqlConvertlet</a></th> |
| <td class="colLast"> |
| <div class="block">Converts a <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> expression into a <a href="../sql/SqlNode.html" title="class in org.apache.calcite.sql"><code>SqlNode</code></a> expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexSqlConvertletTable.html" title="interface in org.apache.calcite.rex">RexSqlConvertletTable</a></th> |
| <td class="colLast"> |
| <div class="block">Collection of <a href="RexSqlConvertlet.html" title="interface in org.apache.calcite.rex"><code>RexSqlConvertlet</code></a>s.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexToSqlNodeConverter.html" title="interface in org.apache.calcite.rex">RexToSqlNodeConverter</a></th> |
| <td class="colLast"> |
| <div class="block">Converts expressions from <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> to <a href="../sql/SqlNode.html" title="class in org.apache.calcite.sql"><code>SqlNode</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexVisitor.html" title="interface in org.apache.calcite.rex">RexVisitor</a><R></th> |
| <td class="colLast"> |
| <div class="block">Visitor pattern for traversing a tree of <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> objects.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"> |
| <table class="typeSummary"> |
| <caption><span>Class Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="LogicVisitor.html" title="class in org.apache.calcite.rex">LogicVisitor</a></th> |
| <td class="colLast"> |
| <div class="block">Visitor pattern for traversing a tree of <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> objects.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexAnalyzer.html" title="class in org.apache.calcite.rex">RexAnalyzer</a></th> |
| <td class="colLast"> |
| <div class="block">Analyzes an expression, figures out what are the unbound variables, |
| assigns a variety of values to each unbound variable, and evaluates |
| the expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexAnalyzer.VariableCollector.html" title="class in org.apache.calcite.rex">RexAnalyzer.VariableCollector</a></th> |
| <td class="colLast"> |
| <div class="block">Collects the variables (or other bindable sites) in an expression, and |
| counts features (such as CAST) that <a href="RexInterpreter.html" title="class in org.apache.calcite.rex"><code>RexInterpreter</code></a> cannot |
| handle.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexBuilder.html" title="class in org.apache.calcite.rex">RexBuilder</a></th> |
| <td class="colLast"> |
| <div class="block">Factory for row expressions.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexCall.html" title="class in org.apache.calcite.rex">RexCall</a></th> |
| <td class="colLast"> |
| <div class="block">An expression formed by a call to an operator with zero or more expressions |
| as operands.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexCallBinding.html" title="class in org.apache.calcite.rex">RexCallBinding</a></th> |
| <td class="colLast"> |
| <div class="block"><code>RexCallBinding</code> implements <a href="../sql/SqlOperatorBinding.html" title="class in org.apache.calcite.sql"><code>SqlOperatorBinding</code></a> by |
| referring to an underlying collection of <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> operands.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexCallBinding.RexCastCallBinding.html" title="class in org.apache.calcite.rex">RexCallBinding.RexCastCallBinding</a></th> |
| <td class="colLast"> |
| <div class="block">To be compatible with <code>SqlCall</code>, CAST needs to pretend that it |
| has two arguments, the second of which is the target type.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexChecker.html" title="class in org.apache.calcite.rex">RexChecker</a></th> |
| <td class="colLast"> |
| <div class="block">Visitor which checks the validity of a <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexCopier.html" title="class in org.apache.calcite.rex">RexCopier</a></th> |
| <td class="colLast"> |
| <div class="block">Shuttle which creates a deep copy of a Rex expression.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexCorrelVariable.html" title="class in org.apache.calcite.rex">RexCorrelVariable</a></th> |
| <td class="colLast"> |
| <div class="block">Reference to the current row of a correlating relational expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexDynamicParam.html" title="class in org.apache.calcite.rex">RexDynamicParam</a></th> |
| <td class="colLast"> |
| <div class="block">Dynamic parameter reference in a row-expression.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexExecutable.html" title="class in org.apache.calcite.rex">RexExecutable</a></th> |
| <td class="colLast"> |
| <div class="block">Result of compiling code generated from a <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexExecutorImpl.html" title="class in org.apache.calcite.rex">RexExecutorImpl</a></th> |
| <td class="colLast"> |
| <div class="block">Evaluates a <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> expression.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexExecutorImpl.DataContextInputGetter.html" title="class in org.apache.calcite.rex">RexExecutorImpl.DataContextInputGetter</a></th> |
| <td class="colLast"> |
| <div class="block">Implementation of |
| <a href="../adapter/enumerable/RexToLixTranslator.InputGetter.html" title="interface in org.apache.calcite.adapter.enumerable"><code>RexToLixTranslator.InputGetter</code></a> |
| that reads the values of input fields by calling |
| <code><a href="../DataContext.html#get(java.lang.String)"><code>DataContext.get(java.lang.String)</code></a>("inputRecord")</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexFieldAccess.html" title="class in org.apache.calcite.rex">RexFieldAccess</a></th> |
| <td class="colLast"> |
| <div class="block">Access to a field of a row-expression.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexFieldCollation.html" title="class in org.apache.calcite.rex">RexFieldCollation</a></th> |
| <td class="colLast"> |
| <div class="block">Expression combined with sort flags (DESCENDING, NULLS LAST).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexFieldCollation.Initializer.html" title="class in org.apache.calcite.rex">RexFieldCollation.Initializer</a></th> |
| <td class="colLast"> |
| <div class="block">Helper, used during initialization, that builds a canonizing map from |
| sets of <code>SqlKind</code> to immutable sets of <code>SqlKind</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexInputRef.html" title="class in org.apache.calcite.rex">RexInputRef</a></th> |
| <td class="colLast"> |
| <div class="block">Variable which references a field of an input relational expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexInterpreter.html" title="class in org.apache.calcite.rex">RexInterpreter</a></th> |
| <td class="colLast"> |
| <div class="block">Evaluates <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> expressions.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></th> |
| <td class="colLast"> |
| <div class="block">Constant value in a row-expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexLocalRef.html" title="class in org.apache.calcite.rex">RexLocalRef</a></th> |
| <td class="colLast"> |
| <div class="block">Local variable.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexMultisetUtil.html" title="class in org.apache.calcite.rex">RexMultisetUtil</a></th> |
| <td class="colLast"> |
| <div class="block">Utility class for various methods related to multisets.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexMultisetUtil.RexCallMultisetOperatorCounter.html" title="class in org.apache.calcite.rex">RexMultisetUtil.RexCallMultisetOperatorCounter</a></th> |
| <td class="colLast"> |
| <div class="block">A RexShuttle that traverse all RexNode and counts total number of |
| RexCalls traversed and number of multiset calls traversed.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></th> |
| <td class="colLast"> |
| <div class="block">Row expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexOver.html" title="class in org.apache.calcite.rex">RexOver</a></th> |
| <td class="colLast"> |
| <div class="block">Call to an aggregate function over a window.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexOver.Finder.html" title="class in org.apache.calcite.rex">RexOver.Finder</a></th> |
| <td class="colLast"> |
| <div class="block">Visitor which detects a <a href="RexOver.html" title="class in org.apache.calcite.rex"><code>RexOver</code></a> inside a <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> |
| expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexPatternFieldRef.html" title="class in org.apache.calcite.rex">RexPatternFieldRef</a></th> |
| <td class="colLast"> |
| <div class="block">Variable which references a field of an input relational expression</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexPermutationShuttle.html" title="class in org.apache.calcite.rex">RexPermutationShuttle</a></th> |
| <td class="colLast"> |
| <div class="block">Visitor which replaces <a href="RexLocalRef.html" title="class in org.apache.calcite.rex"><code>RexLocalRef</code></a> objects after the expressions in a |
| <a href="RexProgram.html" title="class in org.apache.calcite.rex"><code>RexProgram</code></a> have been reordered.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexPermuteInputsShuttle.html" title="class in org.apache.calcite.rex">RexPermuteInputsShuttle</a></th> |
| <td class="colLast"> |
| <div class="block">Shuttle which applies a permutation to its input fields.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexProgram.html" title="class in org.apache.calcite.rex">RexProgram</a></th> |
| <td class="colLast"> |
| <div class="block">A collection of expressions which read inputs, compute output expressions, |
| and optionally use a condition to filter rows.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexProgram.Checker.html" title="class in org.apache.calcite.rex">RexProgram.Checker</a></th> |
| <td class="colLast"> |
| <div class="block">Visitor which walks over a program and checks validity.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexProgram.ExpansionShuttle.html" title="class in org.apache.calcite.rex">RexProgram.ExpansionShuttle</a></th> |
| <td class="colLast"> |
| <div class="block">A RexShuttle used in the implementation of |
| <a href="RexProgram.html#expandLocalRef(org.apache.calcite.rex.RexLocalRef)"><code>RexProgram.expandLocalRef(org.apache.calcite.rex.RexLocalRef)</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexProgramBuilder.html" title="class in org.apache.calcite.rex">RexProgramBuilder</a></th> |
| <td class="colLast"> |
| <div class="block">Workspace for constructing a <a href="RexProgram.html" title="class in org.apache.calcite.rex"><code>RexProgram</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexRangeRef.html" title="class in org.apache.calcite.rex">RexRangeRef</a></th> |
| <td class="colLast"> |
| <div class="block">Reference to a range of columns.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexShuttle.html" title="class in org.apache.calcite.rex">RexShuttle</a></th> |
| <td class="colLast"> |
| <div class="block">Passes over a row-expression, calling a handler method for each node, |
| appropriate to the type of the node.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexSimplify.html" title="class in org.apache.calcite.rex">RexSimplify</a></th> |
| <td class="colLast"> |
| <div class="block">Context required to simplify a row-expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexSimplify.CaseBranch.html" title="class in org.apache.calcite.rex">RexSimplify.CaseBranch</a></th> |
| <td class="colLast"> |
| <div class="block">Object to describe a Case branch</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexSimplify.Comparison.html" title="class in org.apache.calcite.rex">RexSimplify.Comparison</a></th> |
| <td class="colLast"> |
| <div class="block">Represents a simple Comparison.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexSimplify.IsPredicate.html" title="class in org.apache.calcite.rex">RexSimplify.IsPredicate</a></th> |
| <td class="colLast"> |
| <div class="block">Represents an IS Predicate.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexSlot.html" title="class in org.apache.calcite.rex">RexSlot</a></th> |
| <td class="colLast"> |
| <div class="block">Abstract base class for <a href="RexInputRef.html" title="class in org.apache.calcite.rex"><code>RexInputRef</code></a> and <a href="RexLocalRef.html" title="class in org.apache.calcite.rex"><code>RexLocalRef</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexSlot.SelfPopulatingList.html" title="class in org.apache.calcite.rex">RexSlot.SelfPopulatingList</a></th> |
| <td class="colLast"> |
| <div class="block">Thread-safe list that populates itself if you make a reference beyond |
| the end of the list.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexSqlReflectiveConvertletTable.html" title="class in org.apache.calcite.rex">RexSqlReflectiveConvertletTable</a></th> |
| <td class="colLast"> |
| <div class="block">Implementation of <a href="RexSqlConvertletTable.html" title="interface in org.apache.calcite.rex"><code>RexSqlConvertletTable</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexSqlStandardConvertletTable.html" title="class in org.apache.calcite.rex">RexSqlStandardConvertletTable</a></th> |
| <td class="colLast"> |
| <div class="block">Standard implementation of <a href="RexSqlConvertletTable.html" title="interface in org.apache.calcite.rex"><code>RexSqlConvertletTable</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexSubQuery.html" title="class in org.apache.calcite.rex">RexSubQuery</a></th> |
| <td class="colLast"> |
| <div class="block">Scalar expression that represents an IN, EXISTS or scalar sub-query.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexTableInputRef.html" title="class in org.apache.calcite.rex">RexTableInputRef</a></th> |
| <td class="colLast"> |
| <div class="block">Variable which references a column of a table occurrence in a relational plan.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexTableInputRef.RelTableRef.html" title="class in org.apache.calcite.rex">RexTableInputRef.RelTableRef</a></th> |
| <td class="colLast"> |
| <div class="block">Identifies uniquely a table by its qualified name and its entity number (occurrence)</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexToSqlNodeConverterImpl.html" title="class in org.apache.calcite.rex">RexToSqlNodeConverterImpl</a></th> |
| <td class="colLast"> |
| <div class="block">Standard implementation of <a href="RexToSqlNodeConverter.html" title="interface in org.apache.calcite.rex"><code>RexToSqlNodeConverter</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexTransformer.html" title="class in org.apache.calcite.rex">RexTransformer</a></th> |
| <td class="colLast"> |
| <div class="block">Takes a tree of <a href="RexNode.html" title="class in org.apache.calcite.rex"><code>RexNode</code></a> objects and transforms it into another in one |
| sense equivalent tree.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.html" title="class in org.apache.calcite.rex">RexUtil</a></th> |
| <td class="colLast"> |
| <div class="block">Utility methods concerning row-expressions.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.CnfHelper.html" title="class in org.apache.calcite.rex">RexUtil.CnfHelper</a></th> |
| <td class="colLast"> |
| <div class="block">Helps <a href="RexUtil.html#toCnf(org.apache.calcite.rex.RexBuilder,org.apache.calcite.rex.RexNode)"><code>RexUtil.toCnf(org.apache.calcite.rex.RexBuilder, org.apache.calcite.rex.RexNode)</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.ConstantFinder.html" title="class in org.apache.calcite.rex">RexUtil.ConstantFinder</a></th> |
| <td class="colLast"> |
| <div class="block">Walks over an expression and determines whether it is constant.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.CorrelationFinder.html" title="class in org.apache.calcite.rex">RexUtil.CorrelationFinder</a></th> |
| <td class="colLast"> |
| <div class="block">Visitor that throws <a href="../util/Util.FoundOne.html" title="class in org.apache.calcite.util"><code>Util.FoundOne</code></a> if |
| applied to an expression that contains a <a href="RexCorrelVariable.html" title="class in org.apache.calcite.rex"><code>RexCorrelVariable</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.DnfHelper.html" title="class in org.apache.calcite.rex">RexUtil.DnfHelper</a></th> |
| <td class="colLast"> |
| <div class="block">Helps <a href="RexUtil.html#toDnf(org.apache.calcite.rex.RexBuilder,org.apache.calcite.rex.RexNode)"><code>RexUtil.toDnf(org.apache.calcite.rex.RexBuilder, org.apache.calcite.rex.RexNode)</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.ExpressionNormalizer.html" title="class in org.apache.calcite.rex">RexUtil.ExpressionNormalizer</a></th> |
| <td class="colLast"> |
| <div class="block">Walks over expressions and builds a bank of common sub-expressions.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.ExprSimplifier.html" title="class in org.apache.calcite.rex">RexUtil.ExprSimplifier</a></th> |
| <td class="colLast">Deprecated.</td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.FieldAccessFinder.html" title="class in org.apache.calcite.rex">RexUtil.FieldAccessFinder</a></th> |
| <td class="colLast"> |
| <div class="block">Visitor which builds a bitmap of the inputs used by an expression.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.FixNullabilityShuttle.html" title="class in org.apache.calcite.rex">RexUtil.FixNullabilityShuttle</a></th> |
| <td class="colLast"> |
| <div class="block">Shuttle that fixes up an expression to match changes in nullability of |
| input fields.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.ForwardRefFinder.html" title="class in org.apache.calcite.rex">RexUtil.ForwardRefFinder</a></th> |
| <td class="colLast"> |
| <div class="block">Walks over an expression and throws an exception if it finds an |
| <a href="RexInputRef.html" title="class in org.apache.calcite.rex"><code>RexInputRef</code></a> with an ordinal beyond the number of fields in the |
| input row type, or a <a href="RexLocalRef.html" title="class in org.apache.calcite.rex"><code>RexLocalRef</code></a> with ordinal greater than that set |
| using <a href="RexUtil.ForwardRefFinder.html#setLimit(int)"><code>RexUtil.ForwardRefFinder.setLimit(int)</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.RexShiftShuttle.html" title="class in org.apache.calcite.rex">RexUtil.RexShiftShuttle</a></th> |
| <td class="colLast"> |
| <div class="block">Shuttle that adds <code>offset</code> to each <a href="RexInputRef.html" title="class in org.apache.calcite.rex"><code>RexInputRef</code></a> in an |
| expression.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.SubQueryFinder.html" title="class in org.apache.calcite.rex">RexUtil.SubQueryFinder</a></th> |
| <td class="colLast"> |
| <div class="block">Visitor that throws <a href="../util/Util.FoundOne.html" title="class in org.apache.calcite.util"><code>Util.FoundOne</code></a> if |
| applied to an expression that contains a <a href="RexSubQuery.html" title="class in org.apache.calcite.rex"><code>RexSubQuery</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexVariable.html" title="class in org.apache.calcite.rex">RexVariable</a></th> |
| <td class="colLast"> |
| <div class="block">A row-expression which references a field.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexVisitorImpl.html" title="class in org.apache.calcite.rex">RexVisitorImpl</a><R></th> |
| <td class="colLast"> |
| <div class="block">Default implementation of <a href="RexVisitor.html" title="interface in org.apache.calcite.rex"><code>RexVisitor</code></a>, which visits each node but does |
| nothing while it's there.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexWindow.html" title="class in org.apache.calcite.rex">RexWindow</a></th> |
| <td class="colLast"> |
| <div class="block">Specification of the window of rows over which a <a href="RexOver.html" title="class in org.apache.calcite.rex"><code>RexOver</code></a> windowed |
| aggregate is evaluated.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a></th> |
| <td class="colLast"> |
| <div class="block">Abstracts "XX PRECEDING/FOLLOWING" and "CURRENT ROW" bounds for windowed |
| aggregates.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexWindowBound.RexWindowBoundBounded.html" title="class in org.apache.calcite.rex">RexWindowBound.RexWindowBoundBounded</a></th> |
| <td class="colLast"> |
| <div class="block">Implements XX PRECEDING/FOLLOWING bound where XX is not UNBOUNDED.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexWindowBound.RexWindowBoundCurrentRow.html" title="class in org.apache.calcite.rex">RexWindowBound.RexWindowBoundCurrentRow</a></th> |
| <td class="colLast"> |
| <div class="block">Implements CURRENT ROW bound.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexWindowBound.RexWindowBoundUnbounded.html" title="class in org.apache.calcite.rex">RexWindowBound.RexWindowBoundUnbounded</a></th> |
| <td class="colLast"> |
| <div class="block">Implements UNBOUNDED PRECEDING/FOLLOWING bound.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"> |
| <table class="typeSummary"> |
| <caption><span>Enum Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Enum</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexDigestIncludeType.html" title="enum in org.apache.calcite.rex">RexDigestIncludeType</a></th> |
| <td class="colLast"> |
| <div class="block">Defines if type information should be printed for <a href="RexLiteral.html" title="class in org.apache.calcite.rex"><code>RexLiteral</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexInterpreter.Truthy.html" title="enum in org.apache.calcite.rex">RexInterpreter.Truthy</a></th> |
| <td class="colLast"> |
| <div class="block">An enum that wraps boolean and unknown values and makes them |
| comparable.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexSimplify.SafeRexVisitor.html" title="enum in org.apache.calcite.rex">RexSimplify.SafeRexVisitor</a></th> |
| <td class="colLast"> |
| <div class="block">Decides whether it is safe to flatten the given case part into AND/ORs</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUnknownAs.html" title="enum in org.apache.calcite.rex">RexUnknownAs</a></th> |
| <td class="colLast"> |
| <div class="block">Policy for whether a simplified expression may instead return another |
| value.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"> |
| <table class="typeSummary"> |
| <caption><span>Exception Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Exception</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexOver.OverFound.html" title="class in org.apache.calcite.rex">RexOver.OverFound</a></th> |
| <td class="colLast"> |
| <div class="block">Exception thrown when an OVER is found.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.CnfHelper.OverflowError.html" title="class in org.apache.calcite.rex">RexUtil.CnfHelper.OverflowError</a></th> |
| <td class="colLast"> |
| <div class="block">Exception to catch when we pass the limit.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.ExpressionNormalizer.SubExprExistsException.html" title="class in org.apache.calcite.rex">RexUtil.ExpressionNormalizer.SubExprExistsException</a></th> |
| <td class="colLast"> |
| <div class="block">Thrown if there is a sub-expression.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RexUtil.ForwardRefFinder.IllegalForwardRefException.html" title="class in org.apache.calcite.rex">RexUtil.ForwardRefFinder.IllegalForwardRefException</a></th> |
| <td class="colLast"> |
| <div class="block">Thrown to abort a visit when we find an illegal forward reference.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| </ul> |
| </div> |
| </main> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li class="navBarCell1Rev">Package</li> |
| <li>Class</li> |
| <li><a href="package-use.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2012–2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |