blob: d9b7ae9fc2229a615708b9e38ece6cddcb18dd08 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MaterializedViewAggregateRule (Apache Calcite calcite API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="MaterializedViewAggregateRule (Apache Calcite calcite API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],8:["t4","具体方法"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../../../overview-summary.html">概览</a></li>
<li><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../../../index-all.html">索引</a></li>
<li><a href="../../../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个类</li>
<li><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewJoinRule.html" title="org.apache.calcite.rel.rules.materialize中的类"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html" target="_top">框架</a></li>
<li><a href="MaterializedViewAggregateRule.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">所有类</a></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>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.org.apache.calcite.rel.rules.materialize.MaterializedViewRule">嵌套</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li><a href="#field.detail">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.calcite.rel.rules.materialize</div>
<h2 title="类 MaterializedViewAggregateRule" class="title">类 MaterializedViewAggregateRule</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">org.apache.calcite.plan.RelOptRule</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">org.apache.calcite.rel.rules.materialize.MaterializedViewRule</a></li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.rel.rules.materialize.MaterializedViewAggregateRule</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>直接已知子类:</dt>
<dd><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewOnlyAggregateRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewOnlyAggregateRule</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewProjectAggregateRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewProjectAggregateRule</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">MaterializedViewAggregateRule</span>
extends <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></pre>
<div class="block">Materialized view rewriting for aggregate</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>嵌套类概要</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.calcite.rel.rules.materialize.MaterializedViewRule">
<!-- -->
</a>
<h3>从类继承的嵌套类/接口&nbsp;org.apache.calcite.rel.rules.materialize.<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></h3>
<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.Edge.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.Edge</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.MatchModality.html" title="org.apache.calcite.rel.rules.materialize中的枚举">MaterializedViewRule.MatchModality</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.NodeLineage.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.NodeLineage</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.ViewPartialRewriting.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.ViewPartialRewriting</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>字段概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="字段概要表, 列表字段和解释">
<caption><span>字段</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">字段和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#aggregateProjectPullUpConstantsRule">aggregateProjectPullUpConstantsRule</a></span></code>
<div class="block">Instance of rule to pull up constants into aggregate.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#filterAggregateTransposeRule">filterAggregateTransposeRule</a></span></code>
<div class="block">Instance of rule to push filter through aggregate.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#filterProjectTransposeRule">filterProjectTransposeRule</a></span></code>
<div class="block">Instance of rule to push filter through project.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#projectMergeRule">projectMergeRule</a></span></code>
<div class="block">Instance of rule to merge project operators.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static com.google.common.collect.ImmutableList&lt;org.apache.calcite.avatica.util.TimeUnitRange&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#SUPPORTED_DATE_TIME_ROLLUP_UNITS">SUPPORTED_DATE_TIME_ROLLUP_UNITS</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.calcite.rel.rules.materialize.MaterializedViewRule">
<!-- -->
</a>
<h3>从类继承的字段&nbsp;org.apache.calcite.rel.rules.materialize.<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></h3>
<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#fastBailOut">fastBailOut</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#generateUnionRewriting">generateUnionRewriting</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#unionRewritingPullProgram">unionRewritingPullProgram</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.calcite.plan.RelOptRule">
<!-- -->
</a>
<h3>从类继承的字段&nbsp;org.apache.calcite.plan.<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a></h3>
<code><a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#description">description</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#operands">operands</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#relBuilderFactory">relBuilderFactory</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>构造器概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释">
<caption><span>构造器</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符</th>
<th class="colLast" scope="col">构造器和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#MaterializedViewAggregateRule-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.tools.RelBuilderFactory-java.lang.String-boolean-org.apache.calcite.plan.hep.HepProgram-">MaterializedViewAggregateRule</a></span>(<a href="../../../../../../org/apache/calcite/plan/RelOptRuleOperand.html" title="org.apache.calcite.plan中的类">RelOptRuleOperand</a>&nbsp;operand,
<a href="../../../../../../org/apache/calcite/tools/RelBuilderFactory.html" title="org.apache.calcite.tools中的接口">RelBuilderFactory</a>&nbsp;relBuilderFactory,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;description,
boolean&nbsp;generateUnionRewriting,
<a href="../../../../../../org/apache/calcite/plan/hep/HepProgram.html" title="org.apache.calcite.plan.hep中的类">HepProgram</a>&nbsp;unionRewritingPullProgram)</code>
<div class="block">Creates a MaterializedViewAggregateRule.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#MaterializedViewAggregateRule-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.tools.RelBuilderFactory-java.lang.String-boolean-org.apache.calcite.plan.hep.HepProgram-org.apache.calcite.plan.RelOptRule-org.apache.calcite.plan.RelOptRule-org.apache.calcite.plan.RelOptRule-org.apache.calcite.plan.RelOptRule-">MaterializedViewAggregateRule</a></span>(<a href="../../../../../../org/apache/calcite/plan/RelOptRuleOperand.html" title="org.apache.calcite.plan中的类">RelOptRuleOperand</a>&nbsp;operand,
<a href="../../../../../../org/apache/calcite/tools/RelBuilderFactory.html" title="org.apache.calcite.tools中的接口">RelBuilderFactory</a>&nbsp;relBuilderFactory,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;description,
boolean&nbsp;generateUnionRewriting,
<a href="../../../../../../org/apache/calcite/plan/hep/HepProgram.html" title="org.apache.calcite.plan.hep中的类">HepProgram</a>&nbsp;unionRewritingPullProgram,
<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a>&nbsp;filterProjectTransposeRule,
<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a>&nbsp;filterAggregateTransposeRule,
<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a>&nbsp;aggregateProjectPullUpConstantsRule,
<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a>&nbsp;projectMergeRule)</code>
<div class="block">Creates a MaterializedViewAggregateRule.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.ViewPartialRewriting.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.ViewPartialRewriting</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#compensateViewPartial-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-java.util.Set-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-java.util.Set-">compensateViewPartial</a></span>(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;relBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;input,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="java.util中的类或接口">Set</a>&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;queryTableRefs,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;queryEC,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topViewProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;viewNode,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="java.util中的类或接口">Set</a>&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;viewTableRefs)</code>
<div class="block">It checks whether the query can be rewritten using the view even though the
query uses additional tables.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#createUnion-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-">createUnion</a></span>(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;relBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;unionInputQuery,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;unionInputView)</code>
<div class="block">If the view will be used in a union rewriting, this method is responsible for
generating the union and any other operator needed on top of it, e.g., a Project
operator.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected com.google.common.collect.Multimap&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#generateMapping-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.util.ImmutableBitSet-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-java.util.List-">generateMapping</a></span>(<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexSimplify.html" title="org.apache.calcite.rex中的类">RexSimplify</a>&nbsp;simplify,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;target,
<a href="../../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="org.apache.calcite.util中的类">ImmutableBitSet</a>&nbsp;positions,
com.google.common.collect.BiMap&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>,<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;tableMapping,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;sourceEC,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&gt;&nbsp;additionalExprs)</code>
<div class="block">Mapping from node expressions to target expressions.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#getCeilSqlFunction-org.apache.calcite.avatica.util.TimeUnitRange-">getCeilSqlFunction</a></span>(org.apache.calcite.avatica.util.TimeUnitRange&nbsp;flag)</code>
<div class="block">Get ceil function datetime.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#getFloorSqlFunction-org.apache.calcite.avatica.util.TimeUnitRange-">getFloorSqlFunction</a></span>(org.apache.calcite.avatica.util.TimeUnitRange&nbsp;flag)</code>
<div class="block">Get floor function datetime.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/sql/SqlAggFunction.html" title="org.apache.calcite.sql中的类">SqlAggFunction</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#getRollup-org.apache.calcite.sql.SqlAggFunction-">getRollup</a></span>(<a href="../../../../../../org/apache/calcite/sql/SqlAggFunction.html" title="org.apache.calcite.sql中的类">SqlAggFunction</a>&nbsp;aggregation)</code>
<div class="block">Get rollup aggregation function.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#isValidPlan-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.metadata.RelMetadataQuery-">isValidPlan</a></span>(<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/calcite/util/Pair.html" title="org.apache.calcite.util中的类">Pair</a>&lt;<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>,<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#pushFilterToOriginalViewPlan-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.rex.RexNode-">pushFilterToOriginalViewPlan</a></span>(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;builder,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;topViewProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;viewNode,
<a href="../../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;cond)</code>
<div class="block">Once we create a compensation predicate, this method is responsible for pushing
the resulting filter through the view nodes.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#rewriteQuery-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rex.RexNode-org.apache.calcite.rex.RexNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">rewriteQuery</a></span>(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;relBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexSimplify.html" title="org.apache.calcite.rex中的类">RexSimplify</a>&nbsp;simplify,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq,
<a href="../../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;compensationColumnsEquiPred,
<a href="../../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;otherCompensationPred,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
com.google.common.collect.BiMap&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>,<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;queryToViewTableMapping,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;viewEC,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;queryEC)</code>
<div class="block">If the view will be used in a union rewriting, this method is responsible for
rewriting the query branch of the union using the given compensation predicate.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html#rewriteView-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.MatchModality-boolean-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">rewriteView</a></span>(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;relBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexSimplify.html" title="org.apache.calcite.rex中的类">RexSimplify</a>&nbsp;simplify,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.MatchModality.html" title="org.apache.calcite.rel.rules.materialize中的枚举">MaterializedViewRule.MatchModality</a>&nbsp;matchModality,
boolean&nbsp;unionRewriting,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;input,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topViewProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;viewNode,
com.google.common.collect.BiMap&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>,<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;queryToViewTableMapping,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;queryEC)</code>
<div class="block">Rewrites the query using the given view query.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.calcite.rel.rules.materialize.MaterializedViewRule">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;org.apache.calcite.rel.rules.materialize.<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></h3>
<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#compensatePartial-java.util.Set-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-java.util.Set-com.google.common.collect.Multimap-">compensatePartial</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#computeCompensationPredicates-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.util.Pair-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.util.Pair-com.google.common.collect.BiMap-">computeCompensationPredicates</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#extractPossibleMapping-java.util.List-java.util.List-">extractPossibleMapping</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#extractReferences-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.RelNode-">extractReferences</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#generateEquivalenceClasses-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">generateEquivalenceClasses</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#generateSwapColumnTableReferencesLineage-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-java.util.List-">generateSwapColumnTableReferencesLineage</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#generateSwapTableColumnReferencesLineage-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-java.util.List-">generateSwapTableColumnReferencesLineage</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#generateTableMappings-com.google.common.collect.Multimap-">generateTableMappings</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#isValidRelNodePlan-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.metadata.RelMetadataQuery-">isValidRelNodePlan</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#matches-org.apache.calcite.plan.RelOptRuleCall-">matches</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#perform-org.apache.calcite.plan.RelOptRuleCall-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-">perform</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#replaceWithOriginalReferences-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.NodeLineage-org.apache.calcite.rex.RexNode-">replaceWithOriginalReferences</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#rewriteExpression-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-java.util.List-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-boolean-org.apache.calcite.rex.RexNode-">rewriteExpression</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#rewriteExpressions-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-java.util.List-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-boolean-java.util.List-">rewriteExpressions</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#shuttleReferences-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexNode-org.apache.calcite.util.mapping.Mapping-">shuttleReferences</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#shuttleReferences-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexNode-com.google.common.collect.Multimap-">shuttleReferences</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#shuttleReferences-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexNode-com.google.common.collect.Multimap-org.apache.calcite.rel.RelNode-org.apache.calcite.util.mapping.Mapping-">shuttleReferences</a>, <a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#splitPredicates-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexNode-">splitPredicates</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.calcite.plan.RelOptRule">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;org.apache.calcite.plan.<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a></h3>
<code><a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#any--">any</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#convert-org.apache.calcite.rel.RelNode-org.apache.calcite.plan.RelTrait-">convert</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#convert-org.apache.calcite.rel.RelNode-org.apache.calcite.plan.RelTraitSet-">convert</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#convertList-java.util.List-org.apache.calcite.plan.RelTrait-">convertList</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#convertOperand-java.lang.Class-java.util.function.Predicate-org.apache.calcite.plan.RelTrait-">convertOperand</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#convertOperand-java.lang.Class-com.google.common.base.Predicate-org.apache.calcite.plan.RelTrait-">convertOperand</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#equals-java.lang.Object-">equals</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#equals-org.apache.calcite.plan.RelOptRule-">equals</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#getOperand--">getOperand</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#getOperands--">getOperands</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#getOutConvention--">getOutConvention</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#getOutTrait--">getOutTrait</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#hashCode--">hashCode</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#none--">none</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#onMatch-org.apache.calcite.plan.RelOptRuleCall-">onMatch</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#operand-java.lang.Class-org.apache.calcite.plan.RelOptRuleOperandChildren-">operand</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#operand-java.lang.Class-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.plan.RelOptRuleOperand...-">operand</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#operand-java.lang.Class-org.apache.calcite.plan.RelTrait-com.google.common.base.Predicate-org.apache.calcite.plan.RelOptRuleOperandChildren-">operand</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#operand-java.lang.Class-org.apache.calcite.plan.RelTrait-com.google.common.base.Predicate-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.plan.RelOptRuleOperand...-">operand</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#operand-java.lang.Class-org.apache.calcite.plan.RelTrait-org.apache.calcite.plan.RelOptRuleOperandChildren-">operand</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#operandJ-java.lang.Class-org.apache.calcite.plan.RelTrait-java.util.function.Predicate-org.apache.calcite.plan.RelOptRuleOperandChildren-">operandJ</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#operandJ-java.lang.Class-org.apache.calcite.plan.RelTrait-java.util.function.Predicate-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.plan.RelOptRuleOperand...-">operandJ</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#some-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.plan.RelOptRuleOperand...-">some</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#toString--">toString</a>, <a href="../../../../../../org/apache/calcite/plan/RelOptRule.html#unordered-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.plan.RelOptRuleOperand...-">unordered</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="java.lang中的类或接口">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="java.lang中的类或接口">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="java.lang中的类或接口">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="java.lang中的类或接口">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="java.lang中的类或接口">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="java.lang中的类或接口">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>字段详细资料</h3>
<a name="SUPPORTED_DATE_TIME_ROLLUP_UNITS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SUPPORTED_DATE_TIME_ROLLUP_UNITS</h4>
<pre>protected static final&nbsp;com.google.common.collect.ImmutableList&lt;org.apache.calcite.avatica.util.TimeUnitRange&gt; SUPPORTED_DATE_TIME_ROLLUP_UNITS</pre>
</li>
</ul>
<a name="filterProjectTransposeRule">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>filterProjectTransposeRule</h4>
<pre>protected final&nbsp;<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a> filterProjectTransposeRule</pre>
<div class="block">Instance of rule to push filter through project.</div>
</li>
</ul>
<a name="filterAggregateTransposeRule">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>filterAggregateTransposeRule</h4>
<pre>protected final&nbsp;<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a> filterAggregateTransposeRule</pre>
<div class="block">Instance of rule to push filter through aggregate.</div>
</li>
</ul>
<a name="aggregateProjectPullUpConstantsRule">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>aggregateProjectPullUpConstantsRule</h4>
<pre>protected final&nbsp;<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a> aggregateProjectPullUpConstantsRule</pre>
<div class="block">Instance of rule to pull up constants into aggregate.</div>
</li>
</ul>
<a name="projectMergeRule">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>projectMergeRule</h4>
<pre>protected final&nbsp;<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a> projectMergeRule</pre>
<div class="block">Instance of rule to merge project operators.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>构造器详细资料</h3>
<a name="MaterializedViewAggregateRule-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.tools.RelBuilderFactory-java.lang.String-boolean-org.apache.calcite.plan.hep.HepProgram-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MaterializedViewAggregateRule</h4>
<pre>protected&nbsp;MaterializedViewAggregateRule(<a href="../../../../../../org/apache/calcite/plan/RelOptRuleOperand.html" title="org.apache.calcite.plan中的类">RelOptRuleOperand</a>&nbsp;operand,
<a href="../../../../../../org/apache/calcite/tools/RelBuilderFactory.html" title="org.apache.calcite.tools中的接口">RelBuilderFactory</a>&nbsp;relBuilderFactory,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;description,
boolean&nbsp;generateUnionRewriting,
<a href="../../../../../../org/apache/calcite/plan/hep/HepProgram.html" title="org.apache.calcite.plan.hep中的类">HepProgram</a>&nbsp;unionRewritingPullProgram)</pre>
<div class="block">Creates a MaterializedViewAggregateRule.</div>
</li>
</ul>
<a name="MaterializedViewAggregateRule-org.apache.calcite.plan.RelOptRuleOperand-org.apache.calcite.tools.RelBuilderFactory-java.lang.String-boolean-org.apache.calcite.plan.hep.HepProgram-org.apache.calcite.plan.RelOptRule-org.apache.calcite.plan.RelOptRule-org.apache.calcite.plan.RelOptRule-org.apache.calcite.plan.RelOptRule-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>MaterializedViewAggregateRule</h4>
<pre>protected&nbsp;MaterializedViewAggregateRule(<a href="../../../../../../org/apache/calcite/plan/RelOptRuleOperand.html" title="org.apache.calcite.plan中的类">RelOptRuleOperand</a>&nbsp;operand,
<a href="../../../../../../org/apache/calcite/tools/RelBuilderFactory.html" title="org.apache.calcite.tools中的接口">RelBuilderFactory</a>&nbsp;relBuilderFactory,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;description,
boolean&nbsp;generateUnionRewriting,
<a href="../../../../../../org/apache/calcite/plan/hep/HepProgram.html" title="org.apache.calcite.plan.hep中的类">HepProgram</a>&nbsp;unionRewritingPullProgram,
<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a>&nbsp;filterProjectTransposeRule,
<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a>&nbsp;filterAggregateTransposeRule,
<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a>&nbsp;aggregateProjectPullUpConstantsRule,
<a href="../../../../../../org/apache/calcite/plan/RelOptRule.html" title="org.apache.calcite.plan中的类">RelOptRule</a>&nbsp;projectMergeRule)</pre>
<div class="block">Creates a MaterializedViewAggregateRule.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>方法详细资料</h3>
<a name="isValidPlan-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.metadata.RelMetadataQuery-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isValidPlan</h4>
<pre>protected&nbsp;boolean&nbsp;isValidPlan(<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#isValidPlan-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.metadata.RelMetadataQuery-">isValidPlan</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></code></dd>
</dl>
</li>
</ul>
<a name="compensateViewPartial-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-java.util.Set-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-java.util.Set-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compensateViewPartial</h4>
<pre>protected&nbsp;<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.ViewPartialRewriting.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.ViewPartialRewriting</a>&nbsp;compensateViewPartial(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;relBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;input,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="java.util中的类或接口">Set</a>&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;queryTableRefs,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;queryEC,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topViewProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;viewNode,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="java.util中的类或接口">Set</a>&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;viewTableRefs)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#compensateViewPartial-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-java.util.Set-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-java.util.Set-">MaterializedViewRule</a></code></span></div>
<div class="block">It checks whether the query can be rewritten using the view even though the
query uses additional tables.
<p>Rules implementing the method should follow different approaches depending on the
operators they rewrite.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#compensateViewPartial-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-java.util.Set-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-java.util.Set-">compensateViewPartial</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></code></dd>
</dl>
</li>
</ul>
<a name="rewriteQuery-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rex.RexNode-org.apache.calcite.rex.RexNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rewriteQuery</h4>
<pre>protected&nbsp;<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;rewriteQuery(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;relBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexSimplify.html" title="org.apache.calcite.rex中的类">RexSimplify</a>&nbsp;simplify,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq,
<a href="../../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;compensationColumnsEquiPred,
<a href="../../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;otherCompensationPred,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
com.google.common.collect.BiMap&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>,<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;queryToViewTableMapping,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;viewEC,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;queryEC)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#rewriteQuery-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rex.RexNode-org.apache.calcite.rex.RexNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">MaterializedViewRule</a></code></span></div>
<div class="block">If the view will be used in a union rewriting, this method is responsible for
rewriting the query branch of the union using the given compensation predicate.
<p>If a rewriting can be produced, we return that rewriting. If it cannot
be produced, we will return null.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#rewriteQuery-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rex.RexNode-org.apache.calcite.rex.RexNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">rewriteQuery</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></code></dd>
</dl>
</li>
</ul>
<a name="createUnion-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createUnion</h4>
<pre>protected&nbsp;<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;createUnion(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;relBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;unionInputQuery,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;unionInputView)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#createUnion-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-">MaterializedViewRule</a></code></span></div>
<div class="block">If the view will be used in a union rewriting, this method is responsible for
generating the union and any other operator needed on top of it, e.g., a Project
operator.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#createUnion-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-">createUnion</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></code></dd>
</dl>
</li>
</ul>
<a name="rewriteView-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.MatchModality-boolean-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rewriteView</h4>
<pre>protected&nbsp;<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;rewriteView(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;relBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexSimplify.html" title="org.apache.calcite.rex中的类">RexSimplify</a>&nbsp;simplify,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.MatchModality.html" title="org.apache.calcite.rel.rules.materialize中的枚举">MaterializedViewRule.MatchModality</a>&nbsp;matchModality,
boolean&nbsp;unionRewriting,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;input,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
<a href="../../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a>&nbsp;topViewProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;viewNode,
com.google.common.collect.BiMap&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>,<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;queryToViewTableMapping,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;queryEC)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#rewriteView-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.MatchModality-boolean-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">MaterializedViewRule</a></code></span></div>
<div class="block">Rewrites the query using the given view query.
<p>The input node is a Scan on the view table and possibly a compensation Filter
on top. If a rewriting can be produced, we return that rewriting. If it cannot
be produced, we will return null.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#rewriteView-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.MatchModality-boolean-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.core.Project-org.apache.calcite.rel.RelNode-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-">rewriteView</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></code></dd>
</dl>
</li>
</ul>
<a name="generateMapping-org.apache.calcite.rex.RexBuilder-org.apache.calcite.rex.RexSimplify-org.apache.calcite.rel.metadata.RelMetadataQuery-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.util.ImmutableBitSet-com.google.common.collect.BiMap-org.apache.calcite.rel.rules.materialize.MaterializedViewRule.EquivalenceClasses-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>generateMapping</h4>
<pre>protected&nbsp;com.google.common.collect.Multimap&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>&gt;&nbsp;generateMapping(<a href="../../../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类">RexBuilder</a>&nbsp;rexBuilder,
<a href="../../../../../../org/apache/calcite/rex/RexSimplify.html" title="org.apache.calcite.rex中的类">RexSimplify</a>&nbsp;simplify,
<a href="../../../../../../org/apache/calcite/rel/metadata/RelMetadataQuery.html" title="org.apache.calcite.rel.metadata中的类">RelMetadataQuery</a>&nbsp;mq,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;node,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;target,
<a href="../../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="org.apache.calcite.util中的类">ImmutableBitSet</a>&nbsp;positions,
com.google.common.collect.BiMap&lt;<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>,<a href="../../../../../../org/apache/calcite/rex/RexTableInputRef.RelTableRef.html" title="org.apache.calcite.rex中的类">RexTableInputRef.RelTableRef</a>&gt;&nbsp;tableMapping,
<a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.EquivalenceClasses.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule.EquivalenceClasses</a>&nbsp;sourceEC,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&gt;&nbsp;additionalExprs)</pre>
<div class="block">Mapping from node expressions to target expressions.
<p>If any of the expressions cannot be mapped, we return null.</div>
</li>
</ul>
<a name="getCeilSqlFunction-org.apache.calcite.avatica.util.TimeUnitRange-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCeilSqlFunction</h4>
<pre>protected&nbsp;<a href="../../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;getCeilSqlFunction(org.apache.calcite.avatica.util.TimeUnitRange&nbsp;flag)</pre>
<div class="block">Get ceil function datetime.</div>
</li>
</ul>
<a name="getFloorSqlFunction-org.apache.calcite.avatica.util.TimeUnitRange-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloorSqlFunction</h4>
<pre>protected&nbsp;<a href="../../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;getFloorSqlFunction(org.apache.calcite.avatica.util.TimeUnitRange&nbsp;flag)</pre>
<div class="block">Get floor function datetime.</div>
</li>
</ul>
<a name="getRollup-org.apache.calcite.sql.SqlAggFunction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRollup</h4>
<pre>protected&nbsp;<a href="../../../../../../org/apache/calcite/sql/SqlAggFunction.html" title="org.apache.calcite.sql中的类">SqlAggFunction</a>&nbsp;getRollup(<a href="../../../../../../org/apache/calcite/sql/SqlAggFunction.html" title="org.apache.calcite.sql中的类">SqlAggFunction</a>&nbsp;aggregation)</pre>
<div class="block">Get rollup aggregation function.</div>
</li>
</ul>
<a name="pushFilterToOriginalViewPlan-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.rex.RexNode-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>pushFilterToOriginalViewPlan</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/calcite/util/Pair.html" title="org.apache.calcite.util中的类">Pair</a>&lt;<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>,<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&gt;&nbsp;pushFilterToOriginalViewPlan(<a href="../../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a>&nbsp;builder,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;topViewProject,
<a href="../../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>&nbsp;viewNode,
<a href="../../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;cond)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#pushFilterToOriginalViewPlan-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.rex.RexNode-">MaterializedViewRule</a></code></span></div>
<div class="block">Once we create a compensation predicate, this method is responsible for pushing
the resulting filter through the view nodes. This might be useful for rewritings
containing Aggregate operators, as some of the grouping columns might be removed,
which results in additional matching possibilities.
<p>The method will return a pair of nodes: the new top project on the left and
the new node on the right.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html#pushFilterToOriginalViewPlan-org.apache.calcite.tools.RelBuilder-org.apache.calcite.rel.RelNode-org.apache.calcite.rel.RelNode-org.apache.calcite.rex.RexNode-">pushFilterToOriginalViewPlan</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewRule.html" title="org.apache.calcite.rel.rules.materialize中的类">MaterializedViewRule</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../../../overview-summary.html">概览</a></li>
<li><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../../../index-all.html">索引</a></li>
<li><a href="../../../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li>上一个类</li>
<li><a href="../../../../../../org/apache/calcite/rel/rules/materialize/MaterializedViewJoinRule.html" title="org.apache.calcite.rel.rules.materialize中的类"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/calcite/rel/rules/materialize/MaterializedViewAggregateRule.html" target="_top">框架</a></li>
<li><a href="MaterializedViewAggregateRule.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">所有类</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>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.org.apache.calcite.rel.rules.materialize.MaterializedViewRule">嵌套</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li><a href="#field.detail">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &copy; 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p>
</body>
</html>