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 Object
implements CQLStatement.SingleKeyspaceCqlStatement, SchemaTransformation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatementNested classes/interfaces inherited from interface org.apache.cassandra.schema.SchemaTransformation
SchemaTransformation.SchemaTransformationResult -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(QueryState state, boolean locally) execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime) Execute the statement and return the resulting result or null if there is no result.executeLocally(QueryState state, QueryOptions options) Variant of execute used for internal query against the system tables, and thus only query the local node.keyspace()voidvalidate(ClientState state) Perform additional validation required by the statment.protected voidvalidateDefaultTimeToLive(TableParams params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.CQLStatement
authorize, getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditionsMethods inherited from interface org.apache.cassandra.schema.SchemaTransformation
apply, fixedTimestampMicros
-
Field Details
-
keyspaceName
-
state
-
-
Constructor Details
-
AlterSchemaStatement
-
-
Method Details
-
validate
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
- Specified by:
keyspacein interfaceCQLStatement.SingleKeyspaceCqlStatement
-
executeLocally
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
-
validateDefaultTimeToLive
-