public interface CQLStatement
| Modifier and Type | Method and Description | 
|---|---|
| void | checkAccess(ClientState state)Perform any access verification necessary for the statement. | 
| ResultMessage | execute(QueryState state,
       QueryOptions options,
       long queryStartNanoTime)Execute the statement and return the resulting result or null if there is no result. | 
| ResultMessage | executeInternal(QueryState state,
               QueryOptions options)Variant 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.lang.Iterable<Function> | getFunctions()Return an Iterable over all of the functions (both native and user-defined) used by any component
 of the 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(QueryState state, QueryOptions options, long queryStartNanoTime) throws RequestValidationException, RequestExecutionException
state - the current query stateoptions - options for this query (consistency, variables, pageSize, ...)queryStartNanoTime - the timestamp returned by System.nanoTime() when this statement was receivedRequestValidationExceptionRequestExecutionExceptionResultMessage executeInternal(QueryState state, QueryOptions options) throws RequestValidationException, RequestExecutionException
state - the current query stateRequestValidationExceptionRequestExecutionExceptionjava.lang.Iterable<Function> getFunctions()
Copyright © 2018 The Apache Software Foundation