Modifier and Type | Method and Description |
---|---|
void |
IAuthenticator.alter(java.lang.String username,
java.util.Map<IAuthenticator.Option,java.lang.Object> options)
Called during execution of ALTER USER query.
|
void |
LegacyAuthenticator.alter(java.lang.String username,
java.util.Map<IAuthenticator.Option,java.lang.Object> options) |
void |
IAuthenticator.create(java.lang.String username,
java.util.Map<IAuthenticator.Option,java.lang.Object> options)
Called during execution of CREATE USER query (also may be called on startup, see seedSuperuserOptions method).
|
void |
LegacyAuthenticator.create(java.lang.String username,
java.util.Map<IAuthenticator.Option,java.lang.Object> options) |
void |
IAuthenticator.drop(java.lang.String username)
Called during execution of DROP USER query.
|
void |
LegacyAuthenticator.drop(java.lang.String username) |
void |
IAuthorizer.grant(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
java.lang.String to)
Grants a set of permissions on a resource to a user.
|
java.util.Set<PermissionDetails> |
CassandraAuthorizer.list(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
java.lang.String of) |
java.util.Set<PermissionDetails> |
IAuthorizer.list(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
java.lang.String of)
Returns a list of permissions on a resource of a user.
|
void |
IAuthorizer.revoke(AuthenticatedUser performer,
java.util.Set<Permission> permissions,
IResource resource,
java.lang.String from)
Revokes a set of permissions on a resource from a user.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.cassandra.thrift.CqlPreparedResult |
QueryProcessor.prepare(java.lang.String queryString,
ThriftClientState clientState) |
static org.apache.cassandra.thrift.CqlResult |
QueryProcessor.process(java.lang.String queryString,
ThriftClientState clientState) |
static org.apache.cassandra.thrift.CqlResult |
QueryProcessor.processPrepared(CQLStatement statement,
ThriftClientState clientState,
java.util.List<java.nio.ByteBuffer> variables) |
static org.apache.cassandra.thrift.CqlResult |
QueryProcessor.processStatement(CQLStatement statement,
ExecutionContext context) |
Modifier and Type | Method and Description |
---|---|
CQLStatement |
PreExecutionHook.processStatement(CQLStatement statement,
ExecutionContext context)
Perform pre-processing on a CQL statement prior to it being
executed by the QueryProcessor.
|
void |
PostPreparationHook.processStatement(CQLStatement statement,
PreparationContext context)
Called in QueryProcessor, once a CQL statement has been prepared.
|
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)
Variante 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 CQLStatement |
QueryProcessor.parseStatement(java.lang.String queryStr,
QueryState queryState) |
static ResultMessage.Prepared |
QueryProcessor.prepare(java.lang.String queryString,
ClientState clientState,
boolean forThrift) |
ResultMessage.Prepared |
QueryHandler.prepare(java.lang.String query,
QueryState state) |
ResultMessage.Prepared |
QueryProcessor.prepare(java.lang.String queryString,
QueryState queryState) |
static ResultMessage |
QueryProcessor.process(java.lang.String queryString,
ConsistencyLevel cl,
QueryState queryState) |
ResultMessage |
QueryHandler.process(java.lang.String query,
QueryState state,
QueryOptions options) |
ResultMessage |
QueryProcessor.process(java.lang.String queryString,
QueryState queryState,
QueryOptions options) |
ResultMessage |
QueryHandler.processBatch(BatchStatement statement,
QueryState state,
BatchQueryOptions options) |
ResultMessage |
QueryProcessor.processBatch(BatchStatement batch,
QueryState queryState,
BatchQueryOptions options) |
ResultMessage |
QueryHandler.processPrepared(CQLStatement statement,
QueryState state,
QueryOptions options) |
ResultMessage |
QueryProcessor.processPrepared(CQLStatement statement,
QueryState queryState,
QueryOptions options) |
static 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 |
AlterTableStatement.announceMigration() |
boolean |
CreateIndexStatement.announceMigration() |
boolean |
CreateKeyspaceStatement.announceMigration() |
boolean |
CreateTableStatement.announceMigration() |
abstract boolean |
SchemaAlteringStatement.announceMigration()
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 |
BatchStatement.execute(BatchStatement.BatchVariables variables,
boolean local,
ConsistencyLevel cl,
ConsistencyLevel serialCl,
long now) |
ResultMessage |
AlterUserStatement.execute(ClientState state) |
abstract ResultMessage |
AuthenticationStatement.execute(ClientState state) |
abstract ResultMessage |
AuthorizationStatement.execute(ClientState state) |
ResultMessage |
CreateUserStatement.execute(ClientState state) |
ResultMessage |
DropUserStatement.execute(ClientState state) |
ResultMessage |
GrantStatement.execute(ClientState state) |
ResultMessage |
ListPermissionsStatement.execute(ClientState state) |
ResultMessage |
ListUsersStatement.execute(ClientState state) |
ResultMessage |
RevokeStatement.execute(ClientState state) |
ResultMessage |
AuthenticationStatement.execute(QueryState state,
QueryOptions options) |
ResultMessage |
AuthorizationStatement.execute(QueryState state,
QueryOptions options) |
ResultMessage |
BatchStatement.execute(QueryState queryState,
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.executeWithCondition(QueryState queryState,
QueryOptions options) |
ResultMessage |
BatchStatement.executeWithPerStatementVariables(ConsistencyLevel cl,
QueryState queryState,
java.util.List<java.util.List<java.nio.ByteBuffer>> variables) |
CFMetaData |
CreateTableStatement.getCFMetaData()
Returns a CFMetaData instance based on the parameters parsed from this
CREATE statement, or defaults where applicable. |
UpdateParameters |
ModificationStatement.makeUpdateParameters(java.util.Collection<java.nio.ByteBuffer> keys,
ColumnNameBuilder prefix,
java.util.List<java.nio.ByteBuffer> variables,
boolean local,
ConsistencyLevel cl,
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,
java.util.List<java.nio.ByteBuffer> variables,
int limit,
long now) |
protected java.util.Map<java.nio.ByteBuffer,ColumnGroupMap> |
ModificationStatement.readRequiredRows(java.util.Collection<java.nio.ByteBuffer> partitionKeys,
ColumnNameBuilder clusteringPrefix,
boolean local,
ConsistencyLevel cl) |
void |
IndexPropDefs.validate() |
void |
AlterKeyspaceStatement.validate(ClientState state) |
void |
AlterUserStatement.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 |
CreateTriggerStatement.validate(ClientState state) |
void |
CreateUserStatement.validate(ClientState state) |
void |
DropKeyspaceStatement.validate(ClientState state) |
void |
DropTriggerStatement.validate(ClientState state) |
void |
DropUserStatement.validate(ClientState state) |
void |
ListPermissionsStatement.validate(ClientState state) |
void |
PermissionAlteringStatement.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 |
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,
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 © 2014 The Apache Software Foundation