public abstract class AuthorizationStatement extends ParsedStatement implements CQLStatement
ParsedStatement.Prepared| Constructor and Description |
|---|
AuthorizationStatement() |
| Modifier and Type | Method and Description |
|---|---|
abstract ResultMessage |
execute(ClientState state) |
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.
|
static DataResource |
maybeCorrectResource(DataResource resource,
ClientState state) |
ParsedStatement.Prepared |
prepare() |
setBoundTermsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAccess, validatepublic ParsedStatement.Prepared prepare()
prepare in class ParsedStatementpublic int getBoundTerms()
CQLStatementgetBoundTerms in interface CQLStatementgetBoundTerms in class ParsedStatementpublic ResultMessage execute(ConsistencyLevel cl, QueryState state, java.util.List<java.nio.ByteBuffer> variables) throws RequestValidationException, RequestExecutionException
CQLStatementexecute in interface CQLStatementstate - the current query statevariables - the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.RequestValidationExceptionRequestExecutionExceptionpublic abstract ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
public ResultMessage executeInternal(QueryState state)
CQLStatementexecuteInternal in interface CQLStatementstate - the current query statepublic static DataResource maybeCorrectResource(DataResource resource, ClientState state) throws InvalidRequestException
InvalidRequestExceptionCopyright © 2014 The Apache Software Foundation