blob: 46f9361a42fc4c2b75f06e8df5c3249820484a09 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>LatticeSuggester (Apache Calcite API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="LatticeSuggester (Apache Calcite API)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":9,"i3":10,"i4":10,"i5":10,"i6":10,"i7":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LatticeSuggester.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<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><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.calcite.materialize</a></div>
<h2 title="Class LatticeSuggester" class="title">Class LatticeSuggester</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.materialize.LatticeSuggester</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public class <span class="typeNameLabel">LatticeSuggester</span>
extends java.lang.Object</pre>
<div class="block">Algorithm that suggests a set of lattices.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<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>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.BaseColRef.html" title="class in org.apache.calcite.materialize">LatticeSuggester.BaseColRef</a></span></code></th>
<td class="colLast">
<div class="block">Reference to a base column.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.ColRef.html" title="class in org.apache.calcite.materialize">LatticeSuggester.ColRef</a></span></code></th>
<td class="colLast">
<div class="block">Column reference.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.DerivedColRef.html" title="class in org.apache.calcite.materialize">LatticeSuggester.DerivedColRef</a></span></code></th>
<td class="colLast">
<div class="block">Reference to a derived column (that is, an expression).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>(package private) static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.Frame.html" title="class in org.apache.calcite.materialize">LatticeSuggester.Frame</a></span></code></th>
<td class="colLast">
<div class="block">Information about the parent of fields from a relational expression.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.Hop.html" title="class in org.apache.calcite.materialize">LatticeSuggester.Hop</a></span></code></th>
<td class="colLast">
<div class="block">A hop is a join condition.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.MutableMeasure.html" title="class in org.apache.calcite.materialize">LatticeSuggester.MutableMeasure</a></span></code></th>
<td class="colLast">
<div class="block">An aggregate call.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.Query.html" title="class in org.apache.calcite.materialize">LatticeSuggester.Query</a></span></code></th>
<td class="colLast">
<div class="block">Holds state for a particular query graph.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.StepRef.html" title="class in org.apache.calcite.materialize">LatticeSuggester.StepRef</a></span></code></th>
<td class="colLast">
<div class="block">Use of a step within a query.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="LatticeSuggester.TableRef.html" title="class in org.apache.calcite.materialize">LatticeSuggester.TableRef</a></span></code></th>
<td class="colLast">
<div class="block">Use of a table within a query.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<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>
<tr class="altColor">
<td class="colFirst"><code>private boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#evolve">evolve</a></span></code></th>
<td class="colLast">
<div class="block">Whether to try to extend an existing lattice when adding a lattice.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>(package private) java.util.Map&lt;java.lang.String,&#8203;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#latticeMap">latticeMap</a></span></code></th>
<td class="colLast">
<div class="block">Lattices, indexed by digest.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.util.Map&lt;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>,&#8203;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#obsoleteLatticeMap">obsoleteLatticeMap</a></span></code></th>
<td class="colLast">
<div class="block">Lattices that have been made obsolete.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static <a href="../plan/hep/HepProgram.html" title="class in org.apache.calcite.plan.hep">HepProgram</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PROGRAM">PROGRAM</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>(package private) <a href="LatticeSpace.html" title="class in org.apache.calcite.materialize">LatticeSpace</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#space">space</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.apache.calcite.tools.FrameworkConfig)">LatticeSuggester</a></span>&#8203;(<a href="../tools/FrameworkConfig.html" title="interface in org.apache.calcite.tools">FrameworkConfig</a>&nbsp;config)</code></th>
<td class="colLast">
<div class="block">Creates a LatticeSuggester.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.util.List&lt;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addQuery(org.apache.calcite.rel.RelNode)">addQuery</a></span>&#8203;(<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a>&nbsp;r)</code></th>
<td class="colLast">
<div class="block">Adds a query.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>private void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyMeasures(org.apache.calcite.materialize.Lattice.Builder,org.apache.calcite.materialize.Lattice)">copyMeasures</a></span>&#8203;(<a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a>&nbsp;builder,
<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;lattice)</code></th>
<td class="colLast">
<div class="block">Copies measures and column usages from an existing lattice into a builder,
using a mapper to translate old-to-new columns, so that the new lattice can
inherit from the old.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>private static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#deriveAlias(org.apache.calcite.materialize.LatticeSuggester.MutableMeasure,org.apache.calcite.materialize.LatticeSuggester.DerivedColRef)">deriveAlias</a></span>&#8203;(<a href="LatticeSuggester.MutableMeasure.html" title="class in org.apache.calcite.materialize">LatticeSuggester.MutableMeasure</a>&nbsp;measure,
<a href="LatticeSuggester.DerivedColRef.html" title="class in org.apache.calcite.materialize">LatticeSuggester.DerivedColRef</a>&nbsp;derivedColRef)</code></th>
<td class="colLast">
<div class="block">Derives the alias of an expression that is the argument to a measure.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>private <a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findMatch(org.apache.calcite.materialize.Lattice,org.apache.calcite.materialize.MutableNode)">findMatch</a></span>&#8203;(<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;lattice,
<a href="MutableNode.html" title="class in org.apache.calcite.materialize">MutableNode</a>&nbsp;mutableNode)</code></th>
<td class="colLast">
<div class="block">Returns the best match for a lattice.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>private <a href="LatticeSuggester.Frame.html" title="class in org.apache.calcite.materialize">LatticeSuggester.Frame</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#frame(org.apache.calcite.materialize.LatticeSuggester.Query,org.apache.calcite.rel.RelNode)">frame</a></span>&#8203;(<a href="LatticeSuggester.Query.html" title="class in org.apache.calcite.materialize">LatticeSuggester.Query</a>&nbsp;q,
<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a>&nbsp;r)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>java.util.Set&lt;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLatticeSet()">getLatticeSet</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the minimal set of lattices necessary to cover all of the queries
seen.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>private int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#matchQuality(org.apache.calcite.materialize.Lattice,org.apache.calcite.materialize.Lattice)">matchQuality</a></span>&#8203;(<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;lattice,
<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;target)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>private static &lt;E&gt;&nbsp;java.util.Set&lt;E&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minus(java.util.Collection,java.util.Collection)">minus</a></span>&#8203;(java.util.Collection&lt;E&gt;&nbsp;c,
java.util.Collection&lt;E&gt;&nbsp;c2)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="space">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>space</h4>
<pre>final&nbsp;<a href="LatticeSpace.html" title="class in org.apache.calcite.materialize">LatticeSpace</a> space</pre>
</li>
</ul>
<a id="PROGRAM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PROGRAM</h4>
<pre>private static final&nbsp;<a href="../plan/hep/HepProgram.html" title="class in org.apache.calcite.plan.hep">HepProgram</a> PROGRAM</pre>
</li>
</ul>
<a id="latticeMap">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>latticeMap</h4>
<pre>final&nbsp;java.util.Map&lt;java.lang.String,&#8203;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&gt; latticeMap</pre>
<div class="block">Lattices, indexed by digest. Uses LinkedHashMap for determinacy.</div>
</li>
</ul>
<a id="obsoleteLatticeMap">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>obsoleteLatticeMap</h4>
<pre>private final&nbsp;java.util.Map&lt;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>,&#8203;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&gt; obsoleteLatticeMap</pre>
<div class="block">Lattices that have been made obsolete. Key is the obsolete lattice, value
is the lattice that superseded it.</div>
</li>
</ul>
<a id="evolve">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>evolve</h4>
<pre>private final&nbsp;boolean evolve</pre>
<div class="block">Whether to try to extend an existing lattice when adding a lattice.</div>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.apache.calcite.tools.FrameworkConfig)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LatticeSuggester</h4>
<pre>public&nbsp;LatticeSuggester&#8203;(<a href="../tools/FrameworkConfig.html" title="interface in org.apache.calcite.tools">FrameworkConfig</a>&nbsp;config)</pre>
<div class="block">Creates a LatticeSuggester.</div>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="getLatticeSet()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLatticeSet</h4>
<pre class="methodSignature">public&nbsp;java.util.Set&lt;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&gt;&nbsp;getLatticeSet()</pre>
<div class="block">Returns the minimal set of lattices necessary to cover all of the queries
seen. Any lattices that are subsumed by other lattices are not included.</div>
</li>
</ul>
<a id="addQuery(org.apache.calcite.rel.RelNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addQuery</h4>
<pre class="methodSignature">public&nbsp;java.util.List&lt;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&gt;&nbsp;addQuery&#8203;(<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a>&nbsp;r)</pre>
<div class="block">Adds a query.
<p>It may fit within an existing lattice (or lattices). Or it may need a
new lattice, or an extension to an existing lattice.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - Relational expression for a query</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A list of join graphs: usually 1; more if the query contains a
cartesian product; zero if the query graph is cyclic</dd>
</dl>
</li>
</ul>
<a id="deriveAlias(org.apache.calcite.materialize.LatticeSuggester.MutableMeasure,org.apache.calcite.materialize.LatticeSuggester.DerivedColRef)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deriveAlias</h4>
<pre class="methodSignature">private static&nbsp;java.lang.String&nbsp;deriveAlias&#8203;(<a href="LatticeSuggester.MutableMeasure.html" title="class in org.apache.calcite.materialize">LatticeSuggester.MutableMeasure</a>&nbsp;measure,
<a href="LatticeSuggester.DerivedColRef.html" title="class in org.apache.calcite.materialize">LatticeSuggester.DerivedColRef</a>&nbsp;derivedColRef)</pre>
<div class="block">Derives the alias of an expression that is the argument to a measure.
<p>For example, if the measure is called "sum_profit" and the aggregate
function is "sum", returns "profit".</div>
</li>
</ul>
<a id="findMatch(org.apache.calcite.materialize.Lattice,org.apache.calcite.materialize.MutableNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findMatch</h4>
<pre class="methodSignature">private&nbsp;<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;findMatch&#8203;(<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;lattice,
<a href="MutableNode.html" title="class in org.apache.calcite.materialize">MutableNode</a>&nbsp;mutableNode)</pre>
<div class="block">Returns the best match for a lattice. If no match, registers the lattice
and returns it. Never returns null.</div>
</li>
</ul>
<a id="copyMeasures(org.apache.calcite.materialize.Lattice.Builder,org.apache.calcite.materialize.Lattice)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyMeasures</h4>
<pre class="methodSignature">private&nbsp;void&nbsp;copyMeasures&#8203;(<a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a>&nbsp;builder,
<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;lattice)</pre>
<div class="block">Copies measures and column usages from an existing lattice into a builder,
using a mapper to translate old-to-new columns, so that the new lattice can
inherit from the old.</div>
</li>
</ul>
<a id="matchQuality(org.apache.calcite.materialize.Lattice,org.apache.calcite.materialize.Lattice)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchQuality</h4>
<pre class="methodSignature">private&nbsp;int&nbsp;matchQuality&#8203;(<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;lattice,
<a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a>&nbsp;target)</pre>
</li>
</ul>
<a id="minus(java.util.Collection,java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minus</h4>
<pre class="methodSignature">private static&nbsp;&lt;E&gt;&nbsp;java.util.Set&lt;E&gt;&nbsp;minus&#8203;(java.util.Collection&lt;E&gt;&nbsp;c,
java.util.Collection&lt;E&gt;&nbsp;c2)</pre>
</li>
</ul>
<a id="frame(org.apache.calcite.materialize.LatticeSuggester.Query,org.apache.calcite.rel.RelNode)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>frame</h4>
<pre class="methodSignature">private&nbsp;<a href="LatticeSuggester.Frame.html" title="class in org.apache.calcite.materialize">LatticeSuggester.Frame</a>&nbsp;frame&#8203;(<a href="LatticeSuggester.Query.html" title="class in org.apache.calcite.materialize">LatticeSuggester.Query</a>&nbsp;q,
<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a>&nbsp;r)</pre>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<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="class-use/LatticeSuggester.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<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><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2012&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>