public class SelectStatement extends java.lang.Object implements CQLStatement
Modifier and Type | Class and Description |
---|---|
static class |
SelectStatement.Parameters |
static class |
SelectStatement.RawStatement |
Modifier and Type | Field and Description |
---|---|
CFDefinition |
cfDef |
SelectStatement.Parameters |
parameters |
Constructor and Description |
---|
SelectStatement(CFDefinition cfDef,
int boundTerms,
SelectStatement.Parameters parameters,
Selection selection,
Term limit) |
Modifier and Type | Method and Description |
---|---|
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,
int pageSize,
PagingState pagingState)
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.
|
ResultSet.Metadata |
getResultMetadata() |
java.lang.String |
keyspace() |
ResultSet |
process(java.util.List<Row> rows) |
ResultMessage.Rows |
processResults(java.util.List<Row> rows,
java.util.List<java.nio.ByteBuffer> variables,
int limit,
long now) |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
public final CFDefinition cfDef
public final SelectStatement.Parameters parameters
public SelectStatement(CFDefinition cfDef, int boundTerms, SelectStatement.Parameters parameters, Selection selection, Term limit)
public ResultSet.Metadata getResultMetadata()
public int getBoundsTerms()
CQLStatement
getBoundsTerms
in interface CQLStatement
public void checkAccess(ClientState state) throws InvalidRequestException, UnauthorizedException
CQLStatement
checkAccess
in interface CQLStatement
state
- the current client stateInvalidRequestException
UnauthorizedException
public void validate(ClientState state) throws InvalidRequestException
CQLStatement
validate
in interface CQLStatement
state
- the current client stateInvalidRequestException
public ResultMessage.Rows execute(ConsistencyLevel cl, QueryState state, java.util.List<java.nio.ByteBuffer> variables, int pageSize, PagingState pagingState) throws RequestExecutionException, RequestValidationException
CQLStatement
execute
in interface CQLStatement
cl
- the consistency level for the querystate
- the current query statevariables
- the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.pageSize
- the initial page size for the result set potentially returned. A negative value
means no paging needs to be done. Statements that do not return result sets can ignore this value.pagingState
- the paging state for paged query. All statement except Select should ignore
that value.RequestExecutionException
RequestValidationException
public ResultMessage.Rows processResults(java.util.List<Row> rows, java.util.List<java.nio.ByteBuffer> variables, int limit, long now) throws RequestValidationException
RequestValidationException
public ResultMessage.Rows executeInternal(QueryState state) throws RequestExecutionException, RequestValidationException
CQLStatement
executeInternal
in interface CQLStatement
state
- the current query stateRequestExecutionException
RequestValidationException
public ResultSet process(java.util.List<Row> rows) throws InvalidRequestException
InvalidRequestException
public java.lang.String keyspace()
public java.lang.String columnFamily()
Copyright © 2013 The Apache Software Foundation