|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.cql3.statements.SelectStatement
public class SelectStatement
Encapsulates a completely parsed SELECT query, including the target column family, expression, result count, and ordering clause.
| Nested Class Summary | |
|---|---|
static class |
SelectStatement.Parameters
|
static class |
SelectStatement.RawStatement
|
| Field Summary | |
|---|---|
CFDefinition |
cfDef
|
SelectStatement.Parameters |
parameters
|
| Constructor Summary | |
|---|---|
SelectStatement(CFDefinition cfDef,
int boundTerms,
SelectStatement.Parameters parameters)
|
|
| Method Summary | |
|---|---|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement. |
java.lang.String |
columnFamily()
|
ResultMessage.Rows |
execute(ConsistencyLevel cl,
QueryState state,
java.util.List<java.nio.ByteBuffer> variables)
Execute the statement and return the resulting result or null if there is no result. |
ResultMessage.Rows |
executeInternal(QueryState state)
Variante of execute used for internal query against the system tables, and thus only query the local node. |
int |
getBoundsTerms()
Returns the number of bound terms in this statement. |
java.lang.String |
keyspace()
|
ResultSet |
process(java.util.List<Row> rows)
|
void |
validate(ClientState state)
Perform additional validation required by the statment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final CFDefinition cfDef
public final SelectStatement.Parameters parameters
| Constructor Detail |
|---|
public SelectStatement(CFDefinition cfDef,
int boundTerms,
SelectStatement.Parameters parameters)
| Method Detail |
|---|
public int getBoundsTerms()
CQLStatement
getBoundsTerms in interface CQLStatement
public void checkAccess(ClientState state)
throws InvalidRequestException,
UnauthorizedException
CQLStatement
checkAccess in interface CQLStatementstate - the current client state
InvalidRequestException
UnauthorizedException
public void validate(ClientState state)
throws InvalidRequestException
CQLStatement
validate in interface CQLStatementstate - the current client state
InvalidRequestException
public ResultMessage.Rows execute(ConsistencyLevel cl,
QueryState state,
java.util.List<java.nio.ByteBuffer> variables)
throws RequestExecutionException,
RequestValidationException
CQLStatement
execute in interface CQLStatementstate - the current query statevariables - the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.
RequestExecutionException
RequestValidationException
public ResultMessage.Rows executeInternal(QueryState state)
throws RequestExecutionException,
RequestValidationException
CQLStatement
executeInternal in interface CQLStatementstate - the current query state
RequestExecutionException
RequestValidationException
public ResultSet process(java.util.List<Row> rows)
throws InvalidRequestException
InvalidRequestExceptionpublic java.lang.String keyspace()
public java.lang.String columnFamily()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||