public class SelectStatement extends java.lang.Object implements CQLStatement, MeasurableForPreparedCache
| 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(QueryState state,
QueryOptions options)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage.Rows |
executeInternal(QueryState state,
QueryOptions options)
Variante of execute used for internal query against the system tables, and thus only query the local node.
|
int |
getBoundTerms()
Returns the number of bound terms in this statement.
|
java.util.List<IndexExpression> |
getIndexExpressions(java.util.List<java.nio.ByteBuffer> variables) |
ResultSet.Metadata |
getResultMetadata() |
java.lang.String |
keyspace() |
long |
measureForPreparedCache(org.github.jamm.MemoryMeter meter) |
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 long measureForPreparedCache(org.github.jamm.MemoryMeter meter)
measureForPreparedCache in interface MeasurableForPreparedCachepublic int getBoundTerms()
CQLStatementgetBoundTerms in interface CQLStatementpublic void checkAccess(ClientState state) throws InvalidRequestException, UnauthorizedException
CQLStatementcheckAccess in interface CQLStatementstate - the current client stateInvalidRequestExceptionUnauthorizedExceptionpublic void validate(ClientState state) throws InvalidRequestException
CQLStatementvalidate in interface CQLStatementstate - the current client stateInvalidRequestExceptionpublic ResultMessage.Rows execute(QueryState state, QueryOptions options) throws RequestExecutionException, RequestValidationException
CQLStatementexecute in interface CQLStatementstate - the current query stateoptions - options for this query (consistency, variables, pageSize, ...)RequestExecutionExceptionRequestValidationExceptionpublic ResultMessage.Rows processResults(java.util.List<Row> rows, java.util.List<java.nio.ByteBuffer> variables, int limit, long now) throws RequestValidationException
RequestValidationExceptionpublic ResultMessage.Rows executeInternal(QueryState state, QueryOptions options) throws RequestExecutionException, RequestValidationException
CQLStatementexecuteInternal in interface CQLStatementstate - the current query stateRequestExecutionExceptionRequestValidationExceptionpublic ResultSet process(java.util.List<Row> rows) throws InvalidRequestException
InvalidRequestExceptionpublic java.lang.String keyspace()
public java.lang.String columnFamily()
public java.util.List<IndexExpression> getIndexExpressions(java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException
InvalidRequestExceptionCopyright © 2015 The Apache Software Foundation