public interface CQLStatement
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
ResultMessage |
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 |
executeInternal(QueryState state)
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.
|
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
int getBoundTerms()
void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
state - the current client stateUnauthorizedExceptionInvalidRequestExceptionvoid validate(ClientState state) throws RequestValidationException
state - the current client stateRequestValidationExceptionResultMessage execute(ConsistencyLevel cl, QueryState state, java.util.List<java.nio.ByteBuffer> variables) throws RequestValidationException, RequestExecutionException
state - the current query statevariables - the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.RequestValidationExceptionRequestExecutionExceptionResultMessage executeInternal(QueryState state) throws RequestValidationException, RequestExecutionException
state - the current query stateRequestValidationExceptionRequestExecutionExceptionCopyright © 2014 The Apache Software Foundation