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
FieldsModifier and TypeFieldDescriptionstatic final RequestedTuplestatic final List<RequestedColumn> static final RequestedTuple -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildName(StringBuilder buf) booleanenforceProjection(ColumnMetadata columnSchema, CustomErrorContext errorContext) get(int i) booleanisEmpty()Report if the projection is empty as occurs inSELECT COUNT(*) FROM ....booleanisProjected(String colName) booleanisProjected(ColumnMetadata columnSchema) mapProjection(String colName) intsize()toString()type()
-
Field Details
-
ALL_MEMBERS
-
NO_MEMBERS
-
EMPTY_COLS
-
-
Constructor Details
-
ImpliedTupleRequest
public ImpliedTupleRequest(boolean allProjected)
-
-
Method Details
-
mapProjection
- Specified by:
mapProjectionin interfaceRequestedTuple
-
size
public int size()- Specified by:
sizein interfaceRequestedTuple
-
get
- Specified by:
getin interfaceRequestedTuple
-
get
- Specified by:
getin interfaceRequestedTuple
-
projections
- Specified by:
projectionsin interfaceRequestedTuple
-
buildName
- Specified by:
buildNamein interfaceRequestedTuple
-
type
- Specified by:
typein interfaceRequestedTuple
-
isProjected
- Specified by:
isProjectedin interfaceRequestedTuple
-
isProjected
- Specified by:
isProjectedin interfaceRequestedTuple
-
enforceProjection
- Specified by:
enforceProjectionin interfaceRequestedTuple
-
toString
-
isEmpty
public boolean isEmpty()Description copied from interface:RequestedTupleReport 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:
isEmptyin interfaceRequestedTuple- Returns:
trueif the projection set is empty
-