Modifier and Type | Method and Description |
---|---|
void |
IRoleManager.alterRole(AuthenticatedUser performer,
RoleResource role,
RoleOptions options)
Called during execution of ALTER ROLE statement.
|
void |
CassandraRoleManager.createRole(AuthenticatedUser performer,
RoleResource role,
RoleOptions options) |
void |
IRoleManager.createRole(AuthenticatedUser performer,
RoleResource role,
RoleOptions options)
Called during execution of a CREATE ROLE statement.
|
void |
CassandraRoleManager.dropRole(AuthenticatedUser performer,
RoleResource role) |
void |
IRoleManager.dropRole(AuthenticatedUser performer,
RoleResource role)
Called during execution of DROP ROLE statement, as well we removing any main record of the role from the system
this implies that we want to revoke this role from all other roles that it has been granted to.
|
java.util.Set<RoleResource> |
CassandraRoleManager.getAllRoles() |
java.util.Set<RoleResource> |
IRoleManager.getAllRoles()
Called during the execution of an unqualified LIST ROLES query.
|
java.util.Set<RoleResource> |
CassandraRoleManager.getRoles(RoleResource grantee,
boolean includeInherited) |
java.util.Set<RoleResource> |
IRoleManager.getRoles(RoleResource grantee,
boolean includeInherited)
Called during execution of a LIST ROLES query.
|
void |
CassandraAuthorizer.grant(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
RoleResource grantee) |
void |
IAuthorizer.grant(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
RoleResource grantee)
Grants a set of permissions on a resource to a role.
|
void |
CassandraRoleManager.grantRole(AuthenticatedUser performer,
RoleResource role,
RoleResource grantee) |
void |
IRoleManager.grantRole(AuthenticatedUser performer,
RoleResource role,
RoleResource grantee)
Called during execution of GRANT ROLE query.
|
java.util.Set<PermissionDetails> |
CassandraAuthorizer.list(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
RoleResource grantee) |
java.util.Set<PermissionDetails> |
IAuthorizer.list(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
RoleResource grantee)
Returns a list of permissions on a resource granted to a role.
|
void |
CassandraAuthorizer.revoke(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
RoleResource revokee) |
void |
IAuthorizer.revoke(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
RoleResource revokee)
Revokes a set of permissions on a resource from a user.
|
void |
CassandraRoleManager.revokeRole(AuthenticatedUser performer,
RoleResource role,
RoleResource revokee) |
void |
IRoleManager.revokeRole(AuthenticatedUser performer,
RoleResource role,
RoleResource revokee)
Called during the execution of a REVOKE ROLE query.
|
Modifier and Type | Method and Description |
---|---|
ResultMessage |
CQLStatement.execute(QueryState state,
QueryOptions options)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
CQLStatement.executeInternal(QueryState state,
QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.
|
static ParsedStatement.Prepared |
QueryProcessor.getStatement(java.lang.String queryStr,
ClientState clientState) |
static ParsedStatement.Prepared |
QueryProcessor.parseStatement(java.lang.String queryStr,
QueryState queryState) |
ResultMessage.Prepared |
QueryHandler.prepare(java.lang.String query,
QueryState state,
java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
ResultMessage.Prepared |
QueryProcessor.prepare(java.lang.String query,
QueryState state,
java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
static ParsedStatement.Prepared |
QueryProcessor.prepareInternal(java.lang.String query) |
static ResultMessage |
QueryProcessor.process(java.lang.String queryString,
ConsistencyLevel cl,
QueryState queryState) |
ResultMessage |
QueryProcessor.process(java.lang.String queryString,
QueryState queryState,
QueryOptions options) |
ResultMessage |
QueryHandler.process(java.lang.String query,
QueryState state,
QueryOptions options,
java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
ResultMessage |
QueryProcessor.process(java.lang.String query,
QueryState state,
QueryOptions options,
java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
ResultMessage |
QueryProcessor.processBatch(BatchStatement batch,
QueryState queryState,
BatchQueryOptions options) |
ResultMessage |
QueryHandler.processBatch(BatchStatement statement,
QueryState state,
BatchQueryOptions options,
java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
ResultMessage |
QueryProcessor.processBatch(BatchStatement statement,
QueryState state,
BatchQueryOptions options,
java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
ResultMessage |
QueryProcessor.processPrepared(CQLStatement statement,
QueryState queryState,
QueryOptions options) |
ResultMessage |
QueryHandler.processPrepared(CQLStatement statement,
QueryState state,
QueryOptions options,
java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
ResultMessage |
QueryProcessor.processPrepared(CQLStatement statement,
QueryState state,
QueryOptions options,
java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
ResultMessage |
QueryProcessor.processStatement(CQLStatement statement,
QueryState queryState,
QueryOptions options) |
void |
CQLStatement.validate(ClientState state)
Perform additional validation required by the statment.
|
Modifier and Type | Method and Description |
---|---|
Event.SchemaChange |
AlterKeyspaceStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
AlterTableStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
AlterViewStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
CreateAggregateStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
CreateFunctionStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
CreateIndexStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
CreateKeyspaceStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
CreateTableStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
CreateViewStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
DropAggregateStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
Event.SchemaChange |
DropFunctionStatement.announceMigration(QueryState queryState,
boolean isLocalOnly) |
protected abstract Event.SchemaChange |
SchemaAlteringStatement.announceMigration(QueryState queryState,
boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
ResultMessage |
AlterRoleStatement.execute(ClientState state) |
abstract ResultMessage |
AuthenticationStatement.execute(ClientState state) |
abstract ResultMessage |
AuthorizationStatement.execute(ClientState state) |
ResultMessage |
CreateRoleStatement.execute(ClientState state) |
ResultMessage |
DropRoleStatement.execute(ClientState state) |
ResultMessage |
GrantPermissionsStatement.execute(ClientState state) |
ResultMessage |
GrantRoleStatement.execute(ClientState state) |
ResultMessage |
ListPermissionsStatement.execute(ClientState state) |
ResultMessage |
ListRolesStatement.execute(ClientState state) |
ResultMessage |
RevokePermissionsStatement.execute(ClientState state) |
ResultMessage |
RevokeRoleStatement.execute(ClientState state) |
ResultMessage |
BatchStatement.execute(QueryState queryState,
BatchQueryOptions options) |
ResultMessage |
AuthenticationStatement.execute(QueryState state,
QueryOptions options) |
ResultMessage |
AuthorizationStatement.execute(QueryState state,
QueryOptions options) |
ResultMessage |
BatchStatement.execute(QueryState queryState,
QueryOptions options) |
ResultMessage |
DropIndexStatement.execute(QueryState state,
QueryOptions options) |
ResultMessage |
ModificationStatement.execute(QueryState queryState,
QueryOptions options) |
ResultMessage |
SchemaAlteringStatement.execute(QueryState state,
QueryOptions options) |
ResultMessage.Rows |
SelectStatement.execute(QueryState state,
QueryOptions options) |
ResultMessage |
BatchStatement.executeInternal(QueryState queryState,
QueryOptions options) |
ResultMessage |
ModificationStatement.executeInternal(QueryState queryState,
QueryOptions options) |
ResultMessage.Rows |
SelectStatement.executeInternal(QueryState state,
QueryOptions options) |
ResultMessage.Rows |
SelectStatement.executeInternal(QueryState state,
QueryOptions options,
int nowInSec) |
ResultMessage |
ModificationStatement.executeInternalWithCondition(QueryState state,
QueryOptions options) |
ResultMessage |
ModificationStatement.executeInternalWithoutCondition(QueryState queryState,
QueryOptions options) |
ResultMessage |
ModificationStatement.executeWithCondition(QueryState queryState,
QueryOptions options) |
ReadQuery |
SelectStatement.getQuery(QueryOptions options,
int nowInSec) |
ReadQuery |
SelectStatement.getQuery(QueryOptions options,
int nowInSec,
int userLimit) |
ParsedStatement.Prepared |
CreateTableStatement.RawStatement.prepare(ClientState clientState)
Transform this raw statement into a CreateTableStatement.
|
abstract ParsedStatement.Prepared |
ParsedStatement.prepare(ClientState clientState) |
ParsedStatement.Prepared |
CreateTableStatement.RawStatement.prepare(Types udts) |
void |
IndexPropDefs.validate() |
void |
AlterKeyspaceStatement.validate(ClientState state) |
void |
AlterRoleStatement.validate(ClientState state) |
void |
AlterTypeStatement.validate(ClientState state) |
void |
CreateIndexStatement.validate(ClientState state) |
void |
CreateKeyspaceStatement.validate(ClientState state)
The
CqlParser only goes as far as extracting the keyword arguments
from these statements, so this method is responsible for processing and
validating. |
void |
CreateRoleStatement.validate(ClientState state) |
void |
CreateTriggerStatement.validate(ClientState state) |
void |
CreateTypeStatement.validate(ClientState state) |
void |
CreateViewStatement.validate(ClientState state) |
void |
DropAggregateStatement.validate(ClientState state) |
void |
DropKeyspaceStatement.validate(ClientState state) |
void |
DropRoleStatement.validate(ClientState state) |
void |
DropTriggerStatement.validate(ClientState state) |
void |
DropTypeStatement.validate(ClientState state) |
void |
ListPermissionsStatement.validate(ClientState state) |
void |
PermissionsManagementStatement.validate(ClientState state) |
void |
RoleManagementStatement.validate(ClientState state) |
Modifier and Type | Class and Description |
---|---|
class |
KeyspaceNotDefinedException |
Modifier and Type | Class and Description |
---|---|
class |
AlreadyExistsException |
class |
AuthenticationException |
class |
ConfigurationException |
class |
InvalidRequestException |
class |
PreparedQueryNotFoundException |
class |
SyntaxException |
class |
UnauthorizedException |
class |
UnrecognizedEntityException
Exception thrown when an entity is not recognized within a relation.
|
Modifier and Type | Method and Description |
---|---|
static int |
QueryPagers.countPaged(CFMetaData metadata,
DecoratedKey key,
ColumnFilter columnFilter,
ClusteringIndexFilter filter,
DataLimits limits,
ConsistencyLevel consistencyLevel,
ClientState state,
int pageSize,
int nowInSec,
boolean isForThrift)
Convenience method that count (live) cells/rows for a given slice of a row, but page underneath.
|
PartitionIterator |
MultiPartitionPager.fetchPage(int pageSize,
ConsistencyLevel consistency,
ClientState clientState) |
PartitionIterator |
QueryPager.fetchPage(int pageSize,
ConsistencyLevel consistency,
ClientState clientState)
Fetches the next page.
|
PartitionIterator |
MultiPartitionPager.fetchPageInternal(int pageSize,
ReadOrderGroup orderGroup) |
PartitionIterator |
QueryPager.fetchPageInternal(int pageSize,
ReadOrderGroup orderGroup)
Fetches the next page internally (in other, this does a local query).
|
Modifier and Type | Method and Description |
---|---|
static org.apache.cassandra.thrift.InvalidRequestException |
ThriftConversion.toThrift(RequestValidationException e) |
Copyright © 2021 The Apache Software Foundation