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 |
getBoundsTerms()
Returns the number of bound terms in this statement.
|
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
int getBoundsTerms()
void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
state
- the current client stateUnauthorizedException
InvalidRequestException
void validate(ClientState state) throws RequestValidationException
state
- the current client stateRequestValidationException
ResultMessage 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.RequestValidationException
RequestExecutionException
ResultMessage executeInternal(QueryState state) throws RequestValidationException, RequestExecutionException
state
- the current query stateRequestValidationException
RequestExecutionException
Copyright © 2013 The Apache Software Foundation