org.apache.cassandra.cql3.statements
Class AuthorizationStatement
java.lang.Object
org.apache.cassandra.cql3.statements.ParsedStatement
org.apache.cassandra.cql3.statements.AuthorizationStatement
- All Implemented Interfaces:
- CQLStatement
- Direct Known Subclasses:
- ListPermissionsStatement, PermissionAlteringStatement
public abstract class AuthorizationStatement
- extends ParsedStatement
- implements CQLStatement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthorizationStatement
public AuthorizationStatement()
prepare
public ParsedStatement.Prepared prepare()
- Specified by:
prepare
in class ParsedStatement
getBoundsTerms
public int getBoundsTerms()
- Description copied from interface:
CQLStatement
- Returns the number of bound terms in this statement.
- Specified by:
getBoundsTerms
in interface CQLStatement
- Overrides:
getBoundsTerms
in class ParsedStatement
execute
public ResultMessage execute(ConsistencyLevel cl,
QueryState state,
java.util.List<java.nio.ByteBuffer> variables)
throws RequestValidationException,
RequestExecutionException
- Description copied from interface:
CQLStatement
- Execute the statement and return the resulting result or null if there is no result.
- Specified by:
execute
in interface CQLStatement
state
- the current query statevariables
- the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.
- Throws:
RequestValidationException
RequestExecutionException
execute
public abstract ResultMessage execute(ClientState state)
throws RequestValidationException,
RequestExecutionException
- Throws:
RequestValidationException
RequestExecutionException
executeInternal
public ResultMessage executeInternal(QueryState state)
- Description copied from interface:
CQLStatement
- Variante of execute used for internal query against the system tables, and thus only query the local node.
- Specified by:
executeInternal
in interface CQLStatement
- Parameters:
state
- the current query state
maybeCorrectResource
public static DataResource maybeCorrectResource(DataResource resource,
ClientState state)
throws InvalidRequestException
- Throws:
InvalidRequestException
Copyright © 2012 The Apache Software Foundation