public abstract class SchemaAlteringStatement extends CFStatement implements CQLStatement
ParsedStatement.PreparedcfName| Modifier | Constructor and Description |
|---|---|
protected |
SchemaAlteringStatement() |
protected |
SchemaAlteringStatement(CFName name) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Event.SchemaChange |
announceMigration(QueryState queryState,
boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
ResultMessage |
execute(QueryState state,
QueryOptions options,
long queryStartNanoTime)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeInternal(QueryState state,
QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.
|
int |
getBoundTerms()
Returns the number of bound terms in this statement.
|
protected void |
grantPermissionsToCreator(QueryState state)
Schema alteration may result in a new database object (keyspace, table, role, function) being created capable of
having permissions GRANTed on it.
|
ParsedStatement.Prepared |
prepare(ClientState clientState) |
void |
prepareKeyspace(ClientState state) |
columnFamily, keyspace, prepareKeyspacegetBoundVariables, getFunctions, setBoundVariables, setBoundVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAccess, getFunctions, validateprotected SchemaAlteringStatement()
protected SchemaAlteringStatement(CFName name)
public int getBoundTerms()
CQLStatementgetBoundTerms in interface CQLStatementpublic void prepareKeyspace(ClientState state) throws InvalidRequestException
prepareKeyspace in class CFStatementInvalidRequestExceptionpublic ParsedStatement.Prepared prepare(ClientState clientState)
prepare in class ParsedStatementprotected void grantPermissionsToCreator(QueryState state)
protected abstract Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws RequestValidationException
null if no schema change
has occurred (when IF NOT EXISTS is used, for example)RequestValidationExceptionpublic ResultMessage execute(QueryState state, QueryOptions options, long queryStartNanoTime) throws RequestValidationException
CQLStatementexecute in interface CQLStatementstate - the current query stateoptions - options for this query (consistency, variables, pageSize, ...)queryStartNanoTime - the timestamp returned by System.nanoTime() when this statement was receivedRequestValidationExceptionpublic ResultMessage executeInternal(QueryState state, QueryOptions options)
CQLStatementexecuteInternal in interface CQLStatementstate - the current query stateCopyright © 2018 The Apache Software Foundation