public abstract class AuthorizationStatement extends CQLStatement.Raw implements CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
bindVariables
Constructor and Description |
---|
AuthorizationStatement() |
Modifier and Type | Method and Description |
---|---|
abstract ResultMessage |
execute(ClientState state) |
ResultMessage |
execute(QueryState state,
QueryOptions options,
Dispatcher.RequestTime requestTime)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeLocally(QueryState state,
QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.
|
static IResource |
maybeCorrectResource(IResource resource,
ClientState state) |
AuthorizationStatement |
prepare(ClientState state) |
java.lang.String |
toString() |
setBindVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
authorize, getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions, validate
public AuthorizationStatement prepare(ClientState state)
prepare
in class CQLStatement.Raw
public ResultMessage execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime) throws RequestValidationException, RequestExecutionException
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)requestTime
- request enqueue / and start timesRequestValidationException
RequestExecutionException
public abstract ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
public ResultMessage executeLocally(QueryState state, QueryOptions options)
CQLStatement
executeLocally
in interface CQLStatement
state
- the current query statepublic static IResource maybeCorrectResource(IResource resource, ClientState state) throws InvalidRequestException
InvalidRequestException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009- The Apache Software Foundation