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(QueryState state,
QueryOptions options)
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.
|
static DataResource |
maybeCorrectResource(DataResource resource,
ClientState state) |
ParsedStatement.Prepared |
prepare() |
setBoundTerms
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAccess, validate
public ParsedStatement.Prepared prepare()
prepare
in class ParsedStatement
public int getBoundsTerms()
CQLStatement
getBoundsTerms
in interface CQLStatement
getBoundsTerms
in class ParsedStatement
public ResultMessage execute(QueryState state, QueryOptions options) throws RequestValidationException, RequestExecutionException
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)RequestValidationException
RequestExecutionException
public abstract ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
public ResultMessage executeInternal(QueryState state)
CQLStatement
executeInternal
in interface CQLStatement
state
- the current query statepublic static DataResource maybeCorrectResource(DataResource resource, ClientState state) throws InvalidRequestException
InvalidRequestException
Copyright © 2013 The Apache Software Foundation