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,
int pageSize,
PagingState pageState)
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, int pageSize, PagingState pageState) throws RequestValidationException, RequestExecutionException
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.pageState
- the paging state for paged query. All statement except Select should ignore
that value.RequestValidationException
RequestExecutionException
ResultMessage executeInternal(QueryState state) throws RequestValidationException, RequestExecutionException
state
- the current query stateRequestValidationException
RequestExecutionException
Copyright © 2013 The Apache Software Foundation