Class ImpliedTupleRequest
java.lang.Object
org.apache.drill.exec.physical.resultSet.project.ImpliedTupleRequest
- All Implemented Interfaces:
RequestedTuple
Represents a wildcard: SELECT * when used at the root tuple.
When used with maps, means selection of all map columns, either
implicitly, or because the map itself is selected.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.physical.resultSet.project.RequestedTuple
RequestedTuple.TupleProjectionType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RequestedTuple
static final List<RequestedColumn>
static final RequestedTuple
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildName
(StringBuilder buf) boolean
enforceProjection
(ColumnMetadata columnSchema, CustomErrorContext errorContext) get
(int i) boolean
isEmpty()
Report if the projection is empty as occurs inSELECT COUNT(*) FROM ...
.boolean
isProjected
(String colName) boolean
isProjected
(ColumnMetadata columnSchema) mapProjection
(String colName) int
size()
toString()
type()
-
Field Details
-
ALL_MEMBERS
-
NO_MEMBERS
-
EMPTY_COLS
-
-
Constructor Details
-
ImpliedTupleRequest
public ImpliedTupleRequest(boolean allProjected)
-
-
Method Details
-
mapProjection
- Specified by:
mapProjection
in interfaceRequestedTuple
-
size
public int size()- Specified by:
size
in interfaceRequestedTuple
-
get
- Specified by:
get
in interfaceRequestedTuple
-
get
- Specified by:
get
in interfaceRequestedTuple
-
projections
- Specified by:
projections
in interfaceRequestedTuple
-
buildName
- Specified by:
buildName
in interfaceRequestedTuple
-
type
- Specified by:
type
in interfaceRequestedTuple
-
isProjected
- Specified by:
isProjected
in interfaceRequestedTuple
-
isProjected
- Specified by:
isProjected
in interfaceRequestedTuple
-
enforceProjection
- Specified by:
enforceProjection
in interfaceRequestedTuple
-
toString
-
isEmpty
public boolean isEmpty()Description copied from interface:RequestedTuple
Report if the projection is empty as occurs inSELECT COUNT(*) FROM ...
. This is not 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.- Specified by:
isEmpty
in interfaceRequestedTuple
- Returns:
true
if the projection set is empty
-