public class ImpliedTupleRequest extends Object implements RequestedTuple
RequestedTuple.TupleProjectionType| Modifier and Type | Field and Description |
|---|---|
static RequestedTuple |
ALL_MEMBERS |
static List<RequestedColumn> |
EMPTY_COLS |
static RequestedTuple |
NO_MEMBERS |
| Constructor and Description |
|---|
ImpliedTupleRequest(boolean allProjected) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildName(StringBuilder buf) |
boolean |
enforceProjection(ColumnMetadata columnSchema,
CustomErrorContext errorContext) |
RequestedColumn |
get(int i) |
RequestedColumn |
get(String colName) |
boolean |
isEmpty()
Report if the projection is empty as occurs in
SELECT COUNT(*) FROM .... |
boolean |
isProjected(ColumnMetadata columnSchema) |
boolean |
isProjected(String colName) |
RequestedTuple |
mapProjection(String colName) |
List<RequestedColumn> |
projections() |
int |
size() |
String |
toString() |
RequestedTuple.TupleProjectionType |
type() |
public static final RequestedTuple ALL_MEMBERS
public static final RequestedTuple NO_MEMBERS
public static final List<RequestedColumn> EMPTY_COLS
public RequestedTuple mapProjection(String colName)
mapProjection in interface RequestedTuplepublic int size()
size in interface RequestedTuplepublic RequestedColumn get(int i)
get in interface RequestedTuplepublic RequestedColumn get(String colName)
get in interface RequestedTuplepublic List<RequestedColumn> projections()
projections in interface RequestedTuplepublic void buildName(StringBuilder buf)
buildName in interface RequestedTuplepublic RequestedTuple.TupleProjectionType type()
type in interface RequestedTuplepublic boolean isProjected(String colName)
isProjected in interface RequestedTuplepublic boolean isProjected(ColumnMetadata columnSchema)
isProjected in interface RequestedTuplepublic boolean enforceProjection(ColumnMetadata columnSchema, CustomErrorContext errorContext)
enforceProjection in interface RequestedTuplepublic boolean isEmpty()
RequestedTupleSELECT 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.isEmpty in interface RequestedTupletrue if the projection set is emptyCopyright © 2021 The Apache Software Foundation. All rights reserved.