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 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 |
---|---|
boolean |
AlterKeyspaceStatement.announceMigration(boolean isLocalOnly) |
boolean |
AlterTableStatement.announceMigration(boolean isLocalOnly) |
boolean |
CreateAggregateStatement.announceMigration(boolean isLocalOnly) |
boolean |
CreateFunctionStatement.announceMigration(boolean isLocalOnly) |
boolean |
CreateIndexStatement.announceMigration(boolean isLocalOnly) |
boolean |
CreateKeyspaceStatement.announceMigration(boolean isLocalOnly) |
boolean |
CreateTableStatement.announceMigration(boolean isLocalOnly) |
boolean |
DropAggregateStatement.announceMigration(boolean isLocalOnly) |
boolean |
DropFunctionStatement.announceMigration(boolean isLocalOnly) |
abstract boolean |
SchemaAlteringStatement.announceMigration(boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
void |
CreateTableStatement.applyPropertiesTo(CFMetaData cfmd) |
KSMetaData |
KSPropDefs.asKSMetadata(java.lang.String ksName) |
KSMetaData |
KSPropDefs.asKSMetadataUpdate(KSMetaData old) |
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 |
ModificationStatement.executeInternalWithCondition(QueryState state,
QueryOptions options) |
ResultMessage |
ModificationStatement.executeInternalWithoutCondition(QueryState queryState,
QueryOptions options) |
ResultMessage |
ModificationStatement.executeWithCondition(QueryState queryState,
QueryOptions options) |
CFMetaData |
CreateTableStatement.getCFMetaData()
Returns a CFMetaData instance based on the parameters parsed from this
CREATE statement, or defaults where applicable. |
Pageable |
SelectStatement.getPageableCommand(QueryOptions options) |
UpdateParameters |
ModificationStatement.makeUpdateParameters(java.util.Collection<java.nio.ByteBuffer> keys,
Composite prefix,
QueryOptions options,
boolean local,
long now) |
ParsedStatement.Prepared |
CreateTableStatement.RawStatement.prepare()
Transform this raw statement into a CreateTableStatement.
|
abstract ParsedStatement.Prepared |
ParsedStatement.prepare() |
ResultMessage.Rows |
SelectStatement.processResults(java.util.List<Row> rows,
QueryOptions options,
int limit,
long now) |
protected java.util.Map<java.nio.ByteBuffer,CQL3Row> |
ModificationStatement.readRequiredRows(java.util.Collection<java.nio.ByteBuffer> partitionKeys,
Composite clusteringPrefix,
boolean local,
ConsistencyLevel cl) |
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 |
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(java.lang.String keyspace,
java.lang.String columnFamily,
java.nio.ByteBuffer key,
SliceQueryFilter filter,
ConsistencyLevel consistencyLevel,
ClientState cState,
int pageSize,
long now)
Convenience method that count (live) cells/rows for a given slice of a row, but page underneath.
|
java.util.List<Row> |
NamesQueryPager.fetchPage(int pageSize) |
java.util.List<Row> |
QueryPager.fetchPage(int pageSize)
Fetches the next page.
|
protected java.util.List<Row> |
SliceQueryPager.queryNextPage(int pageSize,
ConsistencyLevel consistencyLevel,
boolean localQuery) |
Modifier and Type | Method and Description |
---|---|
static org.apache.cassandra.thrift.InvalidRequestException |
ThriftConversion.toThrift(RequestValidationException e) |
Copyright © 2016 The Apache Software Foundation