blob: 205fe08c0c59484339e75d9f8ad47648ed687e18 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>PruneEmptyRules (Apache Calcite calcite API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.calcite.rel.rules, class: PruneEmptyRules">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../script-dir/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.js"></script>
</head>
<body class="class-declaration">
<script type="text/javascript">var pathtoroot = "../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flexBox">
<header role="banner" class="flexHeader">
<nav role="navigation">
<!-- ========= 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><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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 class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
<div class="navListSearch"><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="skipNav"><a id="skip.navbar.top">
<!-- -->
</a></div>
</nav>
</header>
<div class="flexContent">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.calcite.rel.rules</a></div>
<h1 title="Class PruneEmptyRules" class="title">Class PruneEmptyRules</h1>
</div>
<div class="contentContainer">
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a>
<div class="inheritance">org.apache.calcite.rel.rules.PruneEmptyRules</div>
</div>
<section class="description">
<hr>
<pre>public abstract class <span class="typeNameLabel">PruneEmptyRules</span>
extends <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></pre>
<div class="block">Collection of rules which remove sections of a query plan known never to
produce any rows.
<p>Conventionally, the way to represent an empty relational expression is
with a <a href="../core/Values.html" title="class in org.apache.calcite.rel.core"><code>Values</code></a> that has no tuples.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../logical/LogicalValues.html#createEmpty(org.apache.calcite.plan.RelOptCluster,org.apache.calcite.rel.type.RelDataType)"><code>LogicalValues.createEmpty(org.apache.calcite.plan.RelOptCluster, org.apache.calcite.rel.type.RelDataType)</code></a></dd>
</dl>
</section>
<section class="summary">
<ul class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<li class="blockList">
<section class="nestedClassSummary"><a id="nested.class.summary">
<!-- -->
</a>
<h2>Nested Class Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PruneEmptyRules.IntersectEmptyPruneRuleConfig.html" title="interface in org.apache.calcite.rel.rules">PruneEmptyRules.IntersectEmptyPruneRuleConfig</a></span></code></th>
<td class="colLast">
<div class="block">Configuration for a rule that prunes an Intersect if any of its inputs
is empty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PruneEmptyRules.JoinLeftEmptyRuleConfig.html" title="interface in org.apache.calcite.rel.rules">PruneEmptyRules.JoinLeftEmptyRuleConfig</a></span></code></th>
<td class="colLast">
<div class="block">Configuration for rule that prunes a join it its left input is
empty.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PruneEmptyRules.JoinRightEmptyRuleConfig.html" title="interface in org.apache.calcite.rel.rules">PruneEmptyRules.JoinRightEmptyRuleConfig</a></span></code></th>
<td class="colLast">
<div class="block">Configuration for rule that prunes a join it its right input is
empty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PruneEmptyRules.MinusEmptyPruneRuleConfig.html" title="interface in org.apache.calcite.rel.rules">PruneEmptyRules.MinusEmptyPruneRuleConfig</a></span></code></th>
<td class="colLast">
<div class="block">Configuration for a rule that prunes empty inputs from a Minus.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PruneEmptyRules.PruneEmptyRule.html" title="class in org.apache.calcite.rel.rules">PruneEmptyRules.PruneEmptyRule</a></span></code></th>
<td class="colLast">
<div class="block">Abstract prune empty rule that implements SubstitutionRule interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PruneEmptyRules.RemoveEmptySingleRule.html" title="class in org.apache.calcite.rel.rules">PruneEmptyRules.RemoveEmptySingleRule</a></span></code></th>
<td class="colLast">
<div class="block">Planner rule that converts a single-rel (e.g.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PruneEmptyRules.SortFetchZeroRuleConfig.html" title="interface in org.apache.calcite.rel.rules">PruneEmptyRules.SortFetchZeroRuleConfig</a></span></code></th>
<td class="colLast">
<div class="block">Configuration for a rule that prunes a Sort if it has limit 0.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PruneEmptyRules.UnionEmptyPruneRuleConfig.html" title="interface in org.apache.calcite.rel.rules">PruneEmptyRules.UnionEmptyPruneRuleConfig</a></span></code></th>
<td class="colLast">
<div class="block">Configuration for a rule that prunes empty inputs from a Minus.</div>
</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- =========== FIELD SUMMARY =========== -->
<li class="blockList">
<section class="fieldSummary"><a id="field.summary">
<!-- -->
</a>
<h2>Field Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#AGGREGATE_INSTANCE">AGGREGATE_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that converts an <a href="../core/Aggregate.html" title="class in org.apache.calcite.rel.core"><code>Aggregate</code></a>
to empty if its child is empty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#FILTER_INSTANCE">FILTER_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that converts a <a href="../logical/LogicalFilter.html" title="class in org.apache.calcite.rel.logical"><code>LogicalFilter</code></a>
to empty if its child is empty.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#INTERSECT_INSTANCE">INTERSECT_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that converts a
<a href="../logical/LogicalIntersect.html" title="class in org.apache.calcite.rel.logical"><code>LogicalIntersect</code></a> to
empty if any of its children are empty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#JOIN_LEFT_INSTANCE">JOIN_LEFT_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that converts a <a href="../core/Join.html" title="class in org.apache.calcite.rel.core"><code>Join</code></a>
to empty if its left child is empty.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#JOIN_RIGHT_INSTANCE">JOIN_RIGHT_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that converts a <a href="../core/Join.html" title="class in org.apache.calcite.rel.core"><code>Join</code></a>
to empty if its right child is empty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#MINUS_INSTANCE">MINUS_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that removes empty children of a
<a href="../logical/LogicalMinus.html" title="class in org.apache.calcite.rel.logical"><code>LogicalMinus</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PROJECT_INSTANCE">PROJECT_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that converts a <a href="../logical/LogicalProject.html" title="class in org.apache.calcite.rel.logical"><code>LogicalProject</code></a>
to empty if its child is empty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SORT_FETCH_ZERO_INSTANCE">SORT_FETCH_ZERO_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that converts a <a href="../core/Sort.html" title="class in org.apache.calcite.rel.core"><code>Sort</code></a>
to empty if it has <code>LIMIT 0</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SORT_INSTANCE">SORT_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that converts a <a href="../core/Sort.html" title="class in org.apache.calcite.rel.core"><code>Sort</code></a>
to empty if its child is empty.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#UNION_INSTANCE">UNION_INSTANCE</a></span></code></th>
<td class="colLast">
<div class="block">Rule that removes empty children of a
<a href="../logical/LogicalUnion.html" title="class in org.apache.calcite.rel.logical"><code>LogicalUnion</code></a>.</div>
</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li class="blockList">
<section class="constructorSummary"><a id="constructor.summary">
<!-- -->
</a>
<h2>Constructor Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">PruneEmptyRules</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li class="blockList">
<section class="methodSummary"><a id="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3>
<a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a><code><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<li class="blockList">
<section class="fieldDetails"><a id="field.detail">
<!-- -->
</a>
<h2>Field Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="UNION_INSTANCE">UNION_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">UNION_INSTANCE</span></div>
<div class="block">Rule that removes empty children of a
<a href="../logical/LogicalUnion.html" title="class in org.apache.calcite.rel.logical"><code>LogicalUnion</code></a>.
<p>Examples:
<ul>
<li>Union(Rel, Empty, Rel2) becomes Union(Rel, Rel2)
<li>Union(Rel, Empty, Empty) becomes Rel
<li>Union(Empty, Empty) becomes Empty
</ul></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="MINUS_INSTANCE">MINUS_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">MINUS_INSTANCE</span></div>
<div class="block">Rule that removes empty children of a
<a href="../logical/LogicalMinus.html" title="class in org.apache.calcite.rel.logical"><code>LogicalMinus</code></a>.
<p>Examples:
<ul>
<li>Minus(Rel, Empty, Rel2) becomes Minus(Rel, Rel2)
<li>Minus(Empty, Rel) becomes Empty
</ul></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="INTERSECT_INSTANCE">INTERSECT_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">INTERSECT_INSTANCE</span></div>
<div class="block">Rule that converts a
<a href="../logical/LogicalIntersect.html" title="class in org.apache.calcite.rel.logical"><code>LogicalIntersect</code></a> to
empty if any of its children are empty.
<p>Examples:
<ul>
<li>Intersect(Rel, Empty, Rel2) becomes Empty
<li>Intersect(Empty, Rel) becomes Empty
</ul></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="PROJECT_INSTANCE">PROJECT_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">PROJECT_INSTANCE</span></div>
<div class="block">Rule that converts a <a href="../logical/LogicalProject.html" title="class in org.apache.calcite.rel.logical"><code>LogicalProject</code></a>
to empty if its child is empty.
<p>Examples:
<ul>
<li>Project(Empty) becomes Empty
</ul></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="FILTER_INSTANCE">FILTER_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">FILTER_INSTANCE</span></div>
<div class="block">Rule that converts a <a href="../logical/LogicalFilter.html" title="class in org.apache.calcite.rel.logical"><code>LogicalFilter</code></a>
to empty if its child is empty.
<p>Examples:
<ul>
<li>Filter(Empty) becomes Empty
</ul></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="SORT_INSTANCE">SORT_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">SORT_INSTANCE</span></div>
<div class="block">Rule that converts a <a href="../core/Sort.html" title="class in org.apache.calcite.rel.core"><code>Sort</code></a>
to empty if its child is empty.
<p>Examples:
<ul>
<li>Sort(Empty) becomes Empty
</ul></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="SORT_FETCH_ZERO_INSTANCE">SORT_FETCH_ZERO_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">SORT_FETCH_ZERO_INSTANCE</span></div>
<div class="block">Rule that converts a <a href="../core/Sort.html" title="class in org.apache.calcite.rel.core"><code>Sort</code></a>
to empty if it has <code>LIMIT 0</code>.
<p>Examples:
<ul>
<li>Sort[fetch=0] becomes Empty
</ul></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="AGGREGATE_INSTANCE">AGGREGATE_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">AGGREGATE_INSTANCE</span></div>
<div class="block">Rule that converts an <a href="../core/Aggregate.html" title="class in org.apache.calcite.rel.core"><code>Aggregate</code></a>
to empty if its child is empty.
<p>Examples:
<ul>
<li><code>Aggregate(key: [1, 3], Empty)</code> &rarr; <code>Empty</code>
<li><code>Aggregate(key: [], Empty)</code> is unchanged, because an aggregate
without a GROUP BY key always returns 1 row, even over empty input
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="AggregateValuesRule.html" title="class in org.apache.calcite.rel.rules"><code>AggregateValuesRule</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="JOIN_LEFT_INSTANCE">JOIN_LEFT_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">JOIN_LEFT_INSTANCE</span></div>
<div class="block">Rule that converts a <a href="../core/Join.html" title="class in org.apache.calcite.rel.core"><code>Join</code></a>
to empty if its left child is empty.
<p>Examples:
<ul>
<li>Join(Empty, Scan(Dept), INNER) becomes Empty
<li>Join(Empty, Scan(Dept), LEFT) becomes Empty
<li>Join(Empty, Scan(Dept), SEMI) becomes Empty
<li>Join(Empty, Scan(Dept), ANTI) becomes Empty
</ul></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="JOIN_RIGHT_INSTANCE">JOIN_RIGHT_INSTANCE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType"><a href="../../plan/RelOptRule.html" title="class in org.apache.calcite.plan">RelOptRule</a></span>&nbsp;<span class="memberName">JOIN_RIGHT_INSTANCE</span></div>
<div class="block">Rule that converts a <a href="../core/Join.html" title="class in org.apache.calcite.rel.core"><code>Join</code></a>
to empty if its right child is empty.
<p>Examples:
<ul>
<li>Join(Scan(Emp), Empty, INNER) becomes Empty
<li>Join(Scan(Emp), Empty, RIGHT) becomes Empty
<li>Join(Scan(Emp), Empty, SEMI) becomes Empty
<li>Join(Scan(Emp), Empty, ANTI) becomes Scan(Emp)
</ul></div>
</section>
</li>
</ul>
</section>
</li>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li class="blockList">
<section class="constructorDetails"><a id="constructor.detail">
<!-- -->
</a>
<h2>Constructor Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="&lt;init&gt;()">PruneEmptyRules</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="memberName">PruneEmptyRules</span>()</div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
</div>
<!-- ========= END OF CLASS DATA ========= -->
</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><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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 class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li>Method</li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &copy; 2012-2021 Apache Software Foundation. All Rights Reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>