blob: 4039889aa7b2fa570eacf0dbb7ad4e275de1fb03 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RequestedTupleImpl (Drill : 1.20.3 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="RequestedTupleImpl (Drill : 1.20.3 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"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";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/RequestedTupleImpl.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">
<li><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.TupleProjectionType.html" title="enum in org.apache.drill.exec.physical.resultSet.project"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedWildcardColumn.html" title="class in org.apache.drill.exec.physical.resultSet.project"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html" target="_top">Frames</a></li>
<li><a href="RequestedTupleImpl.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&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 name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.drill.exec.physical.resultSet.project</div>
<h2 title="Class RequestedTupleImpl" class="title">Class RequestedTupleImpl</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.drill.exec.physical.resultSet.project.RequestedTupleImpl</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">RequestedTupleImpl</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></pre>
<div class="block">Represents an explicit projection at some tuple level. A tuple is the
top-level row or a map.
<p>
A column is projected if it is explicitly listed in the selection list.
<p>
If a column is a map, then the projection for the map's columns is based on
two rules:
<ol>
<li>If the projection list includes at least one explicit mention of a map
member, then include only those columns explicitly listed.</li>
<li>If the projection at the parent level lists only the map column itself
(which the projection can't know is a map), then assume this implies all
columns, as if the entry where "map.*".</li>
</ol>
<p>
Examples:<br>
<code>m</code><br>
If <code>m</code> turns out to be a map, project all members of
<code>m</code>.<br>
<code>m.a</code><br>
Column <code>m</code> must be a map. Project only column <code>a</code>.<br>
<code>m, m.a</code><br>
Tricky case. We interpret this as projecting only the "a" element of map m.
<p>
The projection set is built from a list of columns, represented as
<a href="../../../../../../../org/apache/drill/common/expression/SchemaPath.html" title="class in org.apache.drill.common.expression"><code>SchemaPath</code></a> objects, provided by the physical plan. The structure of
<tt>SchemaPath</tt> is a bit awkward:
<p>
<ul>
<li><tt>SchemaPath> is a wrapper for a column which directly holds the
<tt>NameSegment</tt> for the top-level column.</li>
<li><tt>NameSegment</tt> holds a name. This can be a top name such as
`a`, or parts of a compound name such as `a`.`b`. Each <tt>NameSegment</tt>
has a "child" that points to the option following parts of the name.</li>
<li><PathSegment</tt> is the base class for the parts of a name.</tt>
<li><tt>ArraySegment</tt> is the other kind of name part and represents
an array index such as the "[1]" in `columns`[1].</li>
<ul>
The parser considers names and array indexes. Example:<pre><code>
a
a.b
a[2]
a[2].b
a[1][2][3]
a[1][2][3].b.c
a['foo'][0].b['bar']
</code></pre>
<h4>Usage</h4>
The projection information is a <i>pattern</i> which supports queries of the
form "is this column projected", and "if projected, is the projection consistent
with such-and-so concrete type?" Clients should not try to work out the
meaning of the pattern: doing so is very complex. Instead, do the following:
<pre><code>
String colName = ...;
ColumnMetadata colDef = ...;
InputTupleProjection tupleProj = ...
if (tupleProj.isProjected(colName)) {
if (!tupleProj.isComsistentWith(colDef)) {
// Raise an error
}
// Handle a projected column.
}</code></pre></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.drill.exec.physical.resultSet.project.RequestedTuple">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.apache.drill.exec.physical.resultSet.project.<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></h3>
<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.TupleProjectionType.html" title="enum in org.apache.drill.exec.physical.resultSet.project">RequestedTuple.TupleProjectionType</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.TupleProjectionType.html" title="enum in org.apache.drill.exec.physical.resultSet.project">RequestedTuple.TupleProjectionType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#projectionType">projectionType</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#RequestedTupleImpl--">RequestedTupleImpl</a></span>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#RequestedTupleImpl-java.util.List-">RequestedTupleImpl</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a>&gt;&nbsp;cols)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#RequestedTupleImpl-org.apache.drill.exec.physical.resultSet.project.RequestedColumnImpl-">RequestedTupleImpl</a></span>(<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumnImpl.html" title="class in org.apache.drill.exec.physical.resultSet.project">RequestedColumnImpl</a>&nbsp;parent)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</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="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#buildName-java.lang.StringBuilder-">buildName</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;buf)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#enforceProjection-org.apache.drill.exec.record.metadata.ColumnMetadata-org.apache.drill.common.exceptions.CustomErrorContext-">enforceProjection</a></span>(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;columnSchema,
<a href="../../../../../../../org/apache/drill/common/exceptions/CustomErrorContext.html" title="interface in org.apache.drill.common.exceptions">CustomErrorContext</a>&nbsp;errorContext)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#get-int-">get</a></span>(int&nbsp;i)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#get-java.lang.String-">get</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumnImpl.html" title="class in org.apache.drill.exec.physical.resultSet.project">RequestedColumnImpl</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#getImpl-java.lang.String-">getImpl</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#isEmpty--">isEmpty</a></span>()</code>
<div class="block">Report if the projection is empty as occurs in
<code>SELECT COUNT(*) FROM ...</code>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#isProjected-org.apache.drill.exec.record.metadata.ColumnMetadata-">isProjected</a></span>(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;columnSchema)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#isProjected-java.lang.String-">isProjected</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#mapProjection-java.lang.String-">mapProjection</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#project-java.lang.String-">project</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#projections--">projections</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#size--">size</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.TupleProjectionType.html" title="enum in org.apache.drill.exec.physical.resultSet.project">RequestedTuple.TupleProjectionType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html#type--">type</a></span>()</code>
<div class="block">Tuple projection type.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="projectionType">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>projectionType</h4>
<pre>protected&nbsp;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.TupleProjectionType.html" title="enum in org.apache.drill.exec.physical.resultSet.project">RequestedTuple.TupleProjectionType</a> projectionType</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="RequestedTupleImpl--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>RequestedTupleImpl</h4>
<pre>public&nbsp;RequestedTupleImpl()</pre>
</li>
</ul>
<a name="RequestedTupleImpl-org.apache.drill.exec.physical.resultSet.project.RequestedColumnImpl-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>RequestedTupleImpl</h4>
<pre>public&nbsp;RequestedTupleImpl(<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumnImpl.html" title="class in org.apache.drill.exec.physical.resultSet.project">RequestedColumnImpl</a>&nbsp;parent)</pre>
</li>
</ul>
<a name="RequestedTupleImpl-java.util.List-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>RequestedTupleImpl</h4>
<pre>public&nbsp;RequestedTupleImpl(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a>&gt;&nbsp;cols)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="size--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public&nbsp;int&nbsp;size()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#size--">size</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="get-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a>&nbsp;get(int&nbsp;i)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#get-int-">get</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="get-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a>&nbsp;get(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#get-java.lang.String-">get</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="getImpl-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getImpl</h4>
<pre>protected&nbsp;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumnImpl.html" title="class in org.apache.drill.exec.physical.resultSet.project">RequestedColumnImpl</a>&nbsp;getImpl(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</pre>
</li>
</ul>
<a name="project-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>project</h4>
<pre>protected&nbsp;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a>&nbsp;project(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</pre>
</li>
</ul>
<a name="projections--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>projections</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedColumn.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedColumn</a>&gt;&nbsp;projections()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#projections--">projections</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="buildName-java.lang.StringBuilder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buildName</h4>
<pre>public&nbsp;void&nbsp;buildName(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;buf)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#buildName-java.lang.StringBuilder-">buildName</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="type--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>type</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.TupleProjectionType.html" title="enum in org.apache.drill.exec.physical.resultSet.project">RequestedTuple.TupleProjectionType</a>&nbsp;type()</pre>
<div class="block">Tuple projection type. This is a rough approximation. A scan-level projection
may include both a wildcard and implicit columns. This form is best used
in testing where such ambiguities do not apply.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#type--">type</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="isProjected-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isProjected</h4>
<pre>public&nbsp;boolean&nbsp;isProjected(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#isProjected-java.lang.String-">isProjected</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="isProjected-org.apache.drill.exec.record.metadata.ColumnMetadata-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isProjected</h4>
<pre>public&nbsp;boolean&nbsp;isProjected(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;columnSchema)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#isProjected-org.apache.drill.exec.record.metadata.ColumnMetadata-">isProjected</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="enforceProjection-org.apache.drill.exec.record.metadata.ColumnMetadata-org.apache.drill.common.exceptions.CustomErrorContext-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enforceProjection</h4>
<pre>public&nbsp;boolean&nbsp;enforceProjection(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;columnSchema,
<a href="../../../../../../../org/apache/drill/common/exceptions/CustomErrorContext.html" title="interface in org.apache.drill.common.exceptions">CustomErrorContext</a>&nbsp;errorContext)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#enforceProjection-org.apache.drill.exec.record.metadata.ColumnMetadata-org.apache.drill.common.exceptions.CustomErrorContext-">enforceProjection</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="mapProjection-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mapProjection</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a>&nbsp;mapProjection(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;colName)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#mapProjection-java.lang.String-">mapProjection</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="isEmpty--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isEmpty</h4>
<pre>public&nbsp;boolean&nbsp;isEmpty()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#isEmpty--">RequestedTuple</a></code></span></div>
<div class="block">Report if the projection is empty as occurs in
<code>SELECT COUNT(*) FROM ...</code>. This is <i>not</i> the
same as asking if this tuple is unprojected, as that concept
does not apply to tuples, only to the column that contains the
tuple.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html#isEmpty--">isEmpty</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.html" title="interface in org.apache.drill.exec.physical.resultSet.project">RequestedTuple</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the projection set is empty</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/RequestedTupleImpl.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">
<li><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedTuple.TupleProjectionType.html" title="enum in org.apache.drill.exec.physical.resultSet.project"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../org/apache/drill/exec/physical/resultSet/project/RequestedWildcardColumn.html" title="class in org.apache.drill.exec.physical.resultSet.project"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/drill/exec/physical/resultSet/project/RequestedTupleImpl.html" target="_top">Frames</a></li>
<li><a href="RequestedTupleImpl.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.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>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&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 name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 1970 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>