| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>Lattice.Builder (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="Lattice.Builder (Apache Calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| 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,"i14":10,"i15":10,"i16":10,"i17":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 = "../../../../"; |
| 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/Lattice.Builder.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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"> </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> <a href="package-summary.html">org.apache.calcite.materialize</a></div> |
| <h2 title="Class Lattice.Builder" class="title">Class Lattice.Builder</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.calcite.materialize.Lattice.Builder</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <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 java.lang.Object</pre> |
| <div class="block">Lattice builder.</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"> </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 </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Lattice.Builder.Fixer.html" title="class in org.apache.calcite.materialize">Lattice.Builder.Fixer</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Work space for fixing up a tree of mutable nodes.</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"> </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="#algorithm">algorithm</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#algorithmMaxMillis">algorithmMaxMillis</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#auto">auto</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private com.google.common.collect.ImmutableList<<a href="Lattice.BaseColumn.html" title="class in org.apache.calcite.materialize">Lattice.BaseColumn</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#baseColumns">baseColumns</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private com.google.common.collect.ImmutableListMultimap<java.lang.String,​<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="#columnsByAlias">columnsByAlias</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private com.google.common.collect.Multimap<java.lang.Integer,​java.lang.Boolean></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#columnUses">columnUses</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private java.util.SortedSet<<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="#defaultMeasureSet">defaultMeasureSet</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private java.util.Map<java.lang.String,​<a href="Lattice.DerivedColumn.html" title="class in org.apache.calcite.materialize">Lattice.DerivedColumn</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#derivedColumnsByName">derivedColumnsByName</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="LatticeRootNode.html" title="class in org.apache.calcite.materialize">LatticeRootNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rootNode">rootNode</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="../jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rootSchema">rootSchema</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private java.lang.Double</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rowCountEstimate">rowCountEstimate</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private java.lang.String</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#statisticProvider">statisticProvider</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private com.google.common.collect.ImmutableList.Builder<<a href="Lattice.Tile.html" title="class in org.apache.calcite.materialize">Lattice.Tile</a>></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tileListBuilder">tileListBuilder</a></span></code></th> |
| <td class="colLast"> </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"> </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.materialize.LatticeSpace,org.apache.calcite.jdbc.CalciteSchema,java.lang.String)">Builder</a></span>​(<a href="LatticeSpace.html" title="class in org.apache.calcite.materialize">LatticeSpace</a> space, |
| <a href="../jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> schema, |
| java.lang.String sql)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.apache.calcite.materialize.LatticeSpace,org.apache.calcite.jdbc.CalciteSchema,org.apache.calcite.materialize.MutableNode)">Builder</a></span>​(<a href="LatticeSpace.html" title="class in org.apache.calcite.materialize">LatticeSpace</a> space, |
| <a href="../jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> schema, |
| <a href="MutableNode.html" title="class in org.apache.calcite.materialize">MutableNode</a> mutableNode)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a Builder based upon a mutable node.</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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addMeasure(org.apache.calcite.materialize.Lattice.Measure)">addMeasure</a></span>​(<a href="Lattice.Measure.html" title="class in org.apache.calcite.materialize">Lattice.Measure</a> measure)</code></th> |
| <td class="colLast"> |
| <div class="block">Adds a measure, if it does not already exist.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <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>​(<a href="Lattice.Tile.html" title="class in org.apache.calcite.materialize">Lattice.Tile</a> tile)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <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>​(boolean algorithm)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the "algorithm" attribute (default false).</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <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>​(long algorithmMaxMillis)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the "algorithmMaxMillis" attribute (default -1).</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <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>​(boolean auto)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the "auto" attribute (default true).</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <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 id="i6" class="altColor"> |
| <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>​(int table, |
| int column)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <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>​(<a href="../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> e, |
| java.lang.String alias, |
| java.util.List<java.lang.String> 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 id="i8" class="altColor"> |
| <td class="colFirst"><code>(package private) <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="#pathOffsetToColumn(org.apache.calcite.materialize.Path,int)">pathOffsetToColumn</a></span>​(<a href="Path.html" title="class in org.apache.calcite.materialize">Path</a> path, |
| int offset)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>private <a href="../sql/SqlAggFunction.html" title="class in org.apache.calcite.sql">SqlAggFunction</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resolveAgg(java.lang.String)">resolveAgg</a></span>​(java.lang.String aggName)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>com.google.common.collect.ImmutableList<<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="#resolveArgs(java.lang.Object)">resolveArgs</a></span>​(java.lang.Object 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 id="i11" class="rowColor"> |
| <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>​(java.lang.Object name)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>private <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="#resolveColumnByAlias(java.lang.String)">resolveColumnByAlias</a></span>​(java.lang.String name)</code></th> |
| <td class="colLast"> |
| <div class="block">Looks up a column in this lattice by alias.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <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>​(java.lang.String aggName, |
| boolean distinct, |
| java.lang.Object args)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>private <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="#resolveQualifiedColumn(java.lang.String,java.lang.String)">resolveQualifiedColumn</a></span>​(java.lang.String table, |
| java.lang.String column)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <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>​(double rowCountEstimate)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the "rowCountEstimate" attribute (default null).</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <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>​(java.lang.String statisticProvider)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the "statisticProvider" attribute.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <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>​(<a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a> column, |
| boolean measure)</code></th> |
| <td class="colLast"> |
| <div class="block">Records a use of a column.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class 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="rootNode"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rootNode</h4> |
| <pre>private final <a href="LatticeRootNode.html" title="class in org.apache.calcite.materialize">LatticeRootNode</a> rootNode</pre> |
| </li> |
| </ul> |
| <a id="baseColumns"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>baseColumns</h4> |
| <pre>private final com.google.common.collect.ImmutableList<<a href="Lattice.BaseColumn.html" title="class in org.apache.calcite.materialize">Lattice.BaseColumn</a>> baseColumns</pre> |
| </li> |
| </ul> |
| <a id="columnsByAlias"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>columnsByAlias</h4> |
| <pre>private final com.google.common.collect.ImmutableListMultimap<java.lang.String,​<a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a>> columnsByAlias</pre> |
| </li> |
| </ul> |
| <a id="defaultMeasureSet"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>defaultMeasureSet</h4> |
| <pre>private final java.util.SortedSet<<a href="Lattice.Measure.html" title="class in org.apache.calcite.materialize">Lattice.Measure</a>> defaultMeasureSet</pre> |
| </li> |
| </ul> |
| <a id="tileListBuilder"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>tileListBuilder</h4> |
| <pre>private final com.google.common.collect.ImmutableList.Builder<<a href="Lattice.Tile.html" title="class in org.apache.calcite.materialize">Lattice.Tile</a>> tileListBuilder</pre> |
| </li> |
| </ul> |
| <a id="columnUses"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>columnUses</h4> |
| <pre>private final com.google.common.collect.Multimap<java.lang.Integer,​java.lang.Boolean> columnUses</pre> |
| </li> |
| </ul> |
| <a id="rootSchema"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rootSchema</h4> |
| <pre>private final <a href="../jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> rootSchema</pre> |
| </li> |
| </ul> |
| <a id="algorithm"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>algorithm</h4> |
| <pre>private boolean algorithm</pre> |
| </li> |
| </ul> |
| <a id="algorithmMaxMillis"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>algorithmMaxMillis</h4> |
| <pre>private long algorithmMaxMillis</pre> |
| </li> |
| </ul> |
| <a id="auto"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>auto</h4> |
| <pre>private boolean auto</pre> |
| </li> |
| </ul> |
| <a id="rowCountEstimate"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rowCountEstimate</h4> |
| <pre>private java.lang.Double rowCountEstimate</pre> |
| </li> |
| </ul> |
| <a id="statisticProvider"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>statisticProvider</h4> |
| <pre>private java.lang.String statisticProvider</pre> |
| </li> |
| </ul> |
| <a id="derivedColumnsByName"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>derivedColumnsByName</h4> |
| <pre>private java.util.Map<java.lang.String,​<a href="Lattice.DerivedColumn.html" title="class in org.apache.calcite.materialize">Lattice.DerivedColumn</a>> derivedColumnsByName</pre> |
| </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="<init>(org.apache.calcite.materialize.LatticeSpace,org.apache.calcite.jdbc.CalciteSchema,java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>Builder</h4> |
| <pre>public Builder​(<a href="LatticeSpace.html" title="class in org.apache.calcite.materialize">LatticeSpace</a> space, |
| <a href="../jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> schema, |
| java.lang.String sql)</pre> |
| </li> |
| </ul> |
| <a id="<init>(org.apache.calcite.materialize.LatticeSpace,org.apache.calcite.jdbc.CalciteSchema,org.apache.calcite.materialize.MutableNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>Builder</h4> |
| <pre>Builder​(<a href="LatticeSpace.html" title="class in org.apache.calcite.materialize">LatticeSpace</a> space, |
| <a href="../jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> schema, |
| <a href="MutableNode.html" title="class in org.apache.calcite.materialize">MutableNode</a> mutableNode)</pre> |
| <div class="block">Creates a Builder based upon a mutable node.</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="auto(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>auto</h4> |
| <pre class="methodSignature">public <a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a> auto​(boolean auto)</pre> |
| <div class="block">Sets the "auto" attribute (default true).</div> |
| </li> |
| </ul> |
| <a id="algorithm(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>algorithm</h4> |
| <pre class="methodSignature">public <a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a> algorithm​(boolean algorithm)</pre> |
| <div class="block">Sets the "algorithm" attribute (default false).</div> |
| </li> |
| </ul> |
| <a id="algorithmMaxMillis(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>algorithmMaxMillis</h4> |
| <pre class="methodSignature">public <a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a> algorithmMaxMillis​(long algorithmMaxMillis)</pre> |
| <div class="block">Sets the "algorithmMaxMillis" attribute (default -1).</div> |
| </li> |
| </ul> |
| <a id="rowCountEstimate(double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rowCountEstimate</h4> |
| <pre class="methodSignature">public <a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a> rowCountEstimate​(double rowCountEstimate)</pre> |
| <div class="block">Sets the "rowCountEstimate" attribute (default null).</div> |
| </li> |
| </ul> |
| <a id="statisticProvider(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>statisticProvider</h4> |
| <pre class="methodSignature">public <a href="Lattice.Builder.html" title="class in org.apache.calcite.materialize">Lattice.Builder</a> statisticProvider​(java.lang.String statisticProvider)</pre> |
| <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> |
| </li> |
| </ul> |
| <a id="build()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>build</h4> |
| <pre class="methodSignature">public <a href="Lattice.html" title="class in org.apache.calcite.materialize">Lattice</a> build()</pre> |
| <div class="block">Builds a lattice.</div> |
| </li> |
| </ul> |
| <a id="resolveArgs(java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resolveArgs</h4> |
| <pre class="methodSignature">public com.google.common.collect.ImmutableList<<a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a>> resolveArgs​(@Nullable |
| java.lang.Object args)</pre> |
| <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> |
| </li> |
| </ul> |
| <a id="resolveColumnByAlias(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resolveColumnByAlias</h4> |
| <pre class="methodSignature">private <a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a> resolveColumnByAlias​(java.lang.String name)</pre> |
| <div class="block">Looks up a column in this lattice by alias. The alias must be unique |
| within the lattice.</div> |
| </li> |
| </ul> |
| <a id="resolveColumn(java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resolveColumn</h4> |
| <pre class="methodSignature">public <a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a> resolveColumn​(java.lang.Object name)</pre> |
| </li> |
| </ul> |
| <a id="resolveQualifiedColumn(java.lang.String,java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resolveQualifiedColumn</h4> |
| <pre class="methodSignature">private <a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a> resolveQualifiedColumn​(java.lang.String table, |
| java.lang.String column)</pre> |
| </li> |
| </ul> |
| <a id="resolveMeasure(java.lang.String,boolean,java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resolveMeasure</h4> |
| <pre class="methodSignature">public <a href="Lattice.Measure.html" title="class in org.apache.calcite.materialize">Lattice.Measure</a> resolveMeasure​(java.lang.String aggName, |
| boolean distinct, |
| @Nullable |
| java.lang.Object args)</pre> |
| </li> |
| </ul> |
| <a id="resolveAgg(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resolveAgg</h4> |
| <pre class="methodSignature">private <a href="../sql/SqlAggFunction.html" title="class in org.apache.calcite.sql">SqlAggFunction</a> resolveAgg​(java.lang.String aggName)</pre> |
| </li> |
| </ul> |
| <a id="addMeasure(org.apache.calcite.materialize.Lattice.Measure)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addMeasure</h4> |
| <pre class="methodSignature">public boolean addMeasure​(<a href="Lattice.Measure.html" title="class in org.apache.calcite.materialize">Lattice.Measure</a> measure)</pre> |
| <div class="block">Adds a measure, if it does not already exist. |
| Returns false if an identical measure already exists.</div> |
| </li> |
| </ul> |
| <a id="addTile(org.apache.calcite.materialize.Lattice.Tile)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addTile</h4> |
| <pre class="methodSignature">public void addTile​(<a href="Lattice.Tile.html" title="class in org.apache.calcite.materialize">Lattice.Tile</a> tile)</pre> |
| </li> |
| </ul> |
| <a id="column(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>column</h4> |
| <pre class="methodSignature">public <a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a> column​(int table, |
| int column)</pre> |
| </li> |
| </ul> |
| <a id="pathOffsetToColumn(org.apache.calcite.materialize.Path,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pathOffsetToColumn</h4> |
| <pre class="methodSignature"><a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a> pathOffsetToColumn​(<a href="Path.html" title="class in org.apache.calcite.materialize">Path</a> path, |
| int offset)</pre> |
| </li> |
| </ul> |
| <a id="expression(org.apache.calcite.rex.RexNode,java.lang.String,java.util.List)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>expression</h4> |
| <pre class="methodSignature">public <a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a> expression​(<a href="../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> e, |
| java.lang.String alias, |
| java.util.List<java.lang.String> tableAliases)</pre> |
| <div class="block">Adds a lattice column based on a SQL expression, |
| or returns a column based on the same expression seen previously.</div> |
| </li> |
| </ul> |
| <a id="use(org.apache.calcite.materialize.Lattice.Column,boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>use</h4> |
| <pre class="methodSignature">public void use​(<a href="Lattice.Column.html" title="class in org.apache.calcite.materialize">Lattice.Column</a> column, |
| boolean measure)</pre> |
| <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> |
| </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/Lattice.Builder.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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 © 2012–2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |