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 RequestedTuple
public int size()
size
in interface RequestedTuple
public RequestedColumn get(int i)
get
in interface RequestedTuple
public RequestedColumn get(String colName)
get
in interface RequestedTuple
public List<RequestedColumn> projections()
projections
in interface RequestedTuple
public void buildName(StringBuilder buf)
buildName
in interface RequestedTuple
public RequestedTuple.TupleProjectionType type()
type
in interface RequestedTuple
public boolean isProjected(String colName)
isProjected
in interface RequestedTuple
public boolean isProjected(ColumnMetadata columnSchema)
isProjected
in interface RequestedTuple
public boolean enforceProjection(ColumnMetadata columnSchema, CustomErrorContext errorContext)
enforceProjection
in interface RequestedTuple
public boolean isEmpty()
RequestedTuple
SELECT 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 RequestedTuple
true
if the projection set is emptyCopyright © 1970 The Apache Software Foundation. All rights reserved.