Class AuthorizationStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.AuthorizationStatement
-
- All Implemented Interfaces:
CQLStatement
- Direct Known Subclasses:
ListPermissionsStatement,ListRolesStatement,PermissionsManagementStatement
public abstract class AuthorizationStatement extends CQLStatement.Raw implements CQLStatement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
bindVariables
-
-
Constructor Summary
Constructors Constructor Description AuthorizationStatement()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ResultMessageexecute(ClientState state)ResultMessageexecute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime)Execute the statement and return the resulting result or null if there is no result.ResultMessageexecuteLocally(QueryState state, QueryOptions options)Variant of execute used for internal query against the system tables, and thus only query the local node.static IResourcemaybeCorrectResource(IResource resource, ClientState state)AuthorizationStatementprepare(ClientState state)java.lang.StringtoString()-
Methods inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
setBindVariables
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
authorize, getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions, validate
-
-
-
-
Method Detail
-
prepare
public AuthorizationStatement prepare(ClientState state)
- Specified by:
preparein classCQLStatement.Raw
-
execute
public ResultMessage execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime) throws RequestValidationException, RequestExecutionException
Description copied from interface:CQLStatementExecute the statement and return the resulting result or null if there is no result.- Specified by:
executein interfaceCQLStatement- Parameters:
state- the current query stateoptions- options for this query (consistency, variables, pageSize, ...)requestTime- request enqueue / and start times- Throws:
RequestValidationExceptionRequestExecutionException
-
execute
public abstract ResultMessage execute(ClientState state) throws RequestValidationException, RequestExecutionException
-
executeLocally
public ResultMessage executeLocally(QueryState state, QueryOptions options)
Description copied from interface:CQLStatementVariant of execute used for internal query against the system tables, and thus only query the local node.- Specified by:
executeLocallyin interfaceCQLStatement- Parameters:
state- the current query state
-
maybeCorrectResource
public static IResource maybeCorrectResource(IResource resource, ClientState state) throws InvalidRequestException
- Throws:
InvalidRequestException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-