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.String
keyspaceName
protected ClientState
state
-
Constructor Summary
Constructors Modifier Constructor Description protected
AlterSchemaStatement(java.lang.String keyspaceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultMessage
execute(QueryState state, boolean locally)
ResultMessage
execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime)
Execute the statement and return the resulting result or null if there is no result.ResultMessage
executeLocally(QueryState state, QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.java.lang.String
keyspace()
void
validate(ClientState state)
Perform additional validation required by the statment.protected void
validateDefaultTimeToLive(TableParams params)
-
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:CQLStatement
Perform additional validation required by the statment. To be overriden by subclasses if needed.- Specified by:
validate
in interfaceCQLStatement
- Parameters:
state
- the current client state
-
execute
public ResultMessage execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime)
Description copied from interface:CQLStatement
Execute the statement and return the resulting result or null if there is no result.- Specified by:
execute
in 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:
keyspace
in interfaceCQLStatement.SingleKeyspaceCqlStatement
-
executeLocally
public ResultMessage executeLocally(QueryState state, QueryOptions options)
Description copied from interface:CQLStatement
Variant of execute used for internal query against the system tables, and thus only query the local node.- Specified by:
executeLocally
in interfaceCQLStatement
- Parameters:
state
- the current query state
-
execute
public ResultMessage execute(QueryState state, boolean locally)
-
validateDefaultTimeToLive
protected void validateDefaultTimeToLive(TableParams params)
-
-