blob: 73f6bed3c9c9293211d7b976d807b7da14f56a8c [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Lattice.Builder (Apache Calcite calcite API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.calcite.materialize, class: Lattice, class: Builder">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../script-dir/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../script-dir/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-ui.js"></script>
</head>
<body class="class-declaration">
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flexBox">
<header role="banner" class="flexHeader">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&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>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<div class="navListSearch"><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="skipNav"><a id="skip.navbar.top">
<!-- -->
</a></div>
</nav>
</header>
<div class="flexContent">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.calcite.materialize</a></div>
<h1 title="Class Lattice.Builder" class="title">Class Lattice.Builder</h1>
</div>
<div class="contentContainer">
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a>
<div class="inheritance">org.apache.calcite.materialize.Lattice.Builder</div>
</div>
<section class="description">
<dl>
<dt>Enclosing class:</dt>
<dd><a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a></dd>
</dl>
<hr>
<pre>public static class <span class="typeNameLabel">Lattice.Builder</span>
extends <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></pre>
<div class="block">Lattice builder.</div>
</section>
<section class="summary">
<ul class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li class="blockList">
<section class="constructorSummary"><a id="constructor.summary">
<!-- -->
</a>
<h2>Constructor Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.apache.calcite.materialize.LatticeSpace,org.apache.calcite.jdbc.CalciteSchema,java.lang.String)">Builder</a></span>&#8203;(org.apache.calcite.materialize.LatticeSpace&nbsp;space,
<a href="../jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a>&nbsp;schema,
<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;sql)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li class="blockList">
<section class="methodSummary"><a id="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<thead>
<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>
</thead>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addMeasure(org.apache.calcite.materialize.Lattice.Measure)">addMeasure</a></span>&#8203;(<a href="Lattice.Measure.html" title="class in org.apache.calcite.materialize">Lattice.Measure</a>&nbsp;measure)</code></th>
<td class="colLast">
<div class="block">Adds a measure, if it does not already exist.</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addTile(org.apache.calcite.materialize.Lattice.Tile)">addTile</a></span>&#8203;(<a href="Lattice.Tile.html" title="class in org.apache.calcite.materialize">Lattice.Tile</a>&nbsp;tile)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#algorithm(boolean)">algorithm</a></span>&#8203;(boolean&nbsp;algorithm)</code></th>
<td class="colLast">
<div class="block">Sets the "algorithm" attribute (default false).</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#algorithmMaxMillis(long)">algorithmMaxMillis</a></span>&#8203;(long&nbsp;algorithmMaxMillis)</code></th>
<td class="colLast">
<div class="block">Sets the "algorithmMaxMillis" attribute (default -1).</div>
</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#auto(boolean)">auto</a></span>&#8203;(boolean&nbsp;auto)</code></th>
<td class="colLast">
<div class="block">Sets the "auto" attribute (default true).</div>
</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code><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="#build()">build</a></span>()</code></th>
<td class="colLast">
<div class="block">Builds a lattice.</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code><a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#column(int,int)">column</a></span>&#8203;(int&nbsp;table,
int&nbsp;column)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code><a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#expression(org.apache.calcite.rex.RexNode,java.lang.String,java.util.List)">expression</a></span>&#8203;(<a href="../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;e,
<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;alias,
<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&gt;&nbsp;tableAliases)</code></th>
<td class="colLast">
<div class="block">Adds a lattice column based on a SQL expression,
or returns a column based on the same expression seen previously.</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>com.google.common.collect.ImmutableList&lt;<a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resolveArgs(java.lang.Object)">resolveArgs</a></span>&#8203;(@Nullable <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;args)</code></th>
<td class="colLast">
<div class="block">Resolves the arguments of a
<a href="../model/JsonMeasure.html" title="class in org.apache.calcite.model"><code>JsonMeasure</code></a>.</div>
</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code><a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resolveColumn(java.lang.Object)">resolveColumn</a></span>&#8203;(<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;name)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code><a href="Lattice.Measure.html" title="class in org.apache.calcite.materialize">Lattice.Measure</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resolveMeasure(java.lang.String,boolean,java.lang.Object)">resolveMeasure</a></span>&#8203;(<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;aggName,
boolean&nbsp;distinct,
@Nullable <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;args)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rowCountEstimate(double)">rowCountEstimate</a></span>&#8203;(double&nbsp;rowCountEstimate)</code></th>
<td class="colLast">
<div class="block">Sets the "rowCountEstimate" attribute (default null).</div>
</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#statisticProvider(java.lang.String)">statisticProvider</a></span>&#8203;(@Nullable <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;statisticProvider)</code></th>
<td class="colLast">
<div class="block">Sets the "statisticProvider" attribute.</div>
</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#use(org.apache.calcite.materialize.Lattice.Column,boolean)">use</a></span>&#8203;(<a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a>&nbsp;column,
boolean&nbsp;measure)</code></th>
<td class="colLast">
<div class="block">Records a use of a column.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3>
<a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a><code><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li class="blockList">
<section class="constructorDetails"><a id="constructor.detail">
<!-- -->
</a>
<h2>Constructor Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="&lt;init&gt;(org.apache.calcite.materialize.LatticeSpace,org.apache.calcite.jdbc.CalciteSchema,java.lang.String)">Builder</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="memberName">Builder</span>&#8203;(<span class="arguments">org.apache.calcite.materialize.LatticeSpace&nbsp;space,
<a href="../jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a>&nbsp;schema,
<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;sql)</span></div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li class="blockList">
<section class="methodDetails"><a id="method.detail">
<!-- -->
</a>
<h2>Method Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="auto(boolean)">auto</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></span>&nbsp;<span class="memberName">auto</span>&#8203;(<span class="arguments">boolean&nbsp;auto)</span></div>
<div class="block">Sets the "auto" attribute (default true).</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="algorithm(boolean)">algorithm</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></span>&nbsp;<span class="memberName">algorithm</span>&#8203;(<span class="arguments">boolean&nbsp;algorithm)</span></div>
<div class="block">Sets the "algorithm" attribute (default false).</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="algorithmMaxMillis(long)">algorithmMaxMillis</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></span>&nbsp;<span class="memberName">algorithmMaxMillis</span>&#8203;(<span class="arguments">long&nbsp;algorithmMaxMillis)</span></div>
<div class="block">Sets the "algorithmMaxMillis" attribute (default -1).</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="rowCountEstimate(double)">rowCountEstimate</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></span>&nbsp;<span class="memberName">rowCountEstimate</span>&#8203;(<span class="arguments">double&nbsp;rowCountEstimate)</span></div>
<div class="block">Sets the "rowCountEstimate" attribute (default null).</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="statisticProvider(java.lang.String)">statisticProvider</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a></span>&nbsp;<span class="memberName">statisticProvider</span>&#8203;(<span class="arguments">@Nullable <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;statisticProvider)</span></div>
<div class="block">Sets the "statisticProvider" attribute.
<p>If not set, the lattice will use <a href="Lattices.html#CACHED_SQL"><code>Lattices.CACHED_SQL</code></a>.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="build()">build</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a></span>&nbsp;<span class="memberName">build</span>()</div>
<div class="block">Builds a lattice.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="resolveArgs(java.lang.Object)">resolveArgs</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">com.google.common.collect.ImmutableList&lt;<a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a>&gt;</span>&nbsp;<span class="memberName">resolveArgs</span>&#8203;(<span class="arguments">@Nullable <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;args)</span></div>
<div class="block">Resolves the arguments of a
<a href="../model/JsonMeasure.html" title="class in org.apache.calcite.model"><code>JsonMeasure</code></a>. They must either be null,
a string, or a list of strings. Throws if the structure is invalid, or if
any of the columns do not exist in the lattice.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="resolveColumn(java.lang.Object)">resolveColumn</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a></span>&nbsp;<span class="memberName">resolveColumn</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;name)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="resolveMeasure(java.lang.String,boolean,java.lang.Object)">resolveMeasure</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Measure.html" title="class in org.apache.calcite.materialize">Lattice.Measure</a></span>&nbsp;<span class="memberName">resolveMeasure</span>&#8203;(<span class="arguments"><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;aggName,
boolean&nbsp;distinct,
@Nullable <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a>&nbsp;args)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="addMeasure(org.apache.calcite.materialize.Lattice.Measure)">addMeasure</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">addMeasure</span>&#8203;(<span class="arguments"><a href="Lattice.Measure.html" title="class in org.apache.calcite.materialize">Lattice.Measure</a>&nbsp;measure)</span></div>
<div class="block">Adds a measure, if it does not already exist.
Returns false if an identical measure already exists.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="addTile(org.apache.calcite.materialize.Lattice.Tile)">addTile</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">addTile</span>&#8203;(<span class="arguments"><a href="Lattice.Tile.html" title="class in org.apache.calcite.materialize">Lattice.Tile</a>&nbsp;tile)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="column(int,int)">column</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a></span>&nbsp;<span class="memberName">column</span>&#8203;(<span class="arguments">int&nbsp;table,
int&nbsp;column)</span></div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="expression(org.apache.calcite.rex.RexNode,java.lang.String,java.util.List)">expression</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a></span>&nbsp;<span class="memberName">expression</span>&#8203;(<span class="arguments"><a href="../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;e,
<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;alias,
<a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&gt;&nbsp;tableAliases)</span></div>
<div class="block">Adds a lattice column based on a SQL expression,
or returns a column based on the same expression seen previously.</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="use(org.apache.calcite.materialize.Lattice.Column,boolean)">use</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">use</span>&#8203;(<span class="arguments"><a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a>&nbsp;column,
boolean&nbsp;measure)</span></div>
<div class="block">Records a use of a column.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>column</code> - Column</dd>
<dd><code>measure</code> - Whether this use is as an argument to a measure;
e.g. "sum(x + y)" is a measure use of the expression
"x + y"; "group by x + y" is not</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
</div>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&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>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &copy; 2012-2021 Apache Software Foundation. All Rights Reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>