Class AlterSchemaStatement
- java.lang.Object
-
- org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
-
- All Implemented Interfaces:
CQLStatement,CQLStatement.SingleKeyspaceCqlStatement,SchemaTransformation
- Direct Known Subclasses:
AlterKeyspaceStatement,AlterTableStatement,AlterTypeStatement,AlterViewStatement,CreateAggregateStatement,CreateFunctionStatement,CreateIndexStatement,CreateKeyspaceStatement,CreateTableStatement,CreateTriggerStatement,CreateTypeStatement,CreateViewStatement,DropAggregateStatement,DropFunctionStatement,DropIndexStatement,DropKeyspaceStatement,DropTableStatement,DropTriggerStatement,DropTypeStatement,DropViewStatement
public abstract class AlterSchemaStatement extends java.lang.Object implements CQLStatement.SingleKeyspaceCqlStatement, SchemaTransformation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
-
Nested classes/interfaces inherited from interface org.apache.cassandra.schema.SchemaTransformation
SchemaTransformation.SchemaTransformationResult
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringkeyspaceNameprotected ClientStatestate
-
Constructor Summary
Constructors Modifier Constructor Description protectedAlterSchemaStatement(java.lang.String keyspaceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultMessageexecute(QueryState state, boolean locally)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.java.lang.Stringkeyspace()voidvalidate(ClientState state)Perform additional validation required by the statment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
authorize, getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
Methods inherited from interface org.apache.cassandra.schema.SchemaTransformation
apply, fixedTimestampMicros
-
-
-
-
Field Detail
-
keyspaceName
protected final java.lang.String keyspaceName
-
state
protected ClientState state
-
-
Method Detail
-
validate
public void validate(ClientState state)
Description copied from interface:CQLStatementPerform additional validation required by the statment. To be overriden by subclasses if needed.- Specified by:
validatein interfaceCQLStatement- Parameters:
state- the current client state
-
execute
public ResultMessage execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime)
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
-
keyspace
public java.lang.String keyspace()
- Specified by:
keyspacein interfaceCQLStatement.SingleKeyspaceCqlStatement
-
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
-
execute
public ResultMessage execute(QueryState state, boolean locally)
-
-