Class AlterTableStatement
java.lang.Object
org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
org.apache.cassandra.cql3.statements.schema.AlterTableStatement
- All Implemented Interfaces:
CQLStatement,CQLStatement.SingleKeyspaceCqlStatement,SchemaTransformation
- Direct Known Subclasses:
AlterTableStatement.AlterColumn,AlterTableStatement.MaskColumn
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classALTER TABLE [IF EXISTS] <table> ALTER <column> TYPE <newtype>;No longer supported.static classALTER TABLE [IF EXISTS] <table> ALTER [IF EXISTS] <column> ( MASKED WITH <newMask> | DROP MASKED )static final classNested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.SingleKeyspaceCqlStatementNested classes/interfaces inherited from interface org.apache.cassandra.schema.SchemaTransformation
SchemaTransformation.SchemaTransformationResult -
Field Summary
FieldsFields inherited from class org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
keyspaceName -
Constructor Summary
ConstructorsConstructorDescriptionAlterTableStatement(String keyspaceName, String tableName, boolean ifExists) -
Method Summary
Modifier and TypeMethodDescriptionApply a statement transformation to a schema snapshot.voidauthorize(ClientState client) Perform any access verification necessary for the statement.Provides the context needed for audit logging statements.toString()voidvalidate(ClientState state) Perform additional validation required by the statment.Methods inherited from class org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
execute, execute, executeLocally, keyspace, validateDefaultTimeToLiveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditionsMethods inherited from interface org.apache.cassandra.schema.SchemaTransformation
fixedTimestampMicros
-
Field Details
-
tableName
-
state
-
-
Constructor Details
-
AlterTableStatement
-
-
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- Overrides:
validatein classAlterSchemaStatement- Parameters:
state- the current client state
-
apply
Description copied from interface:SchemaTransformationApply a statement transformation to a schema snapshot.Implementing methods should be side-effect free (outside of throwing exceptions if the transformation cannot be successfully applied to the provided schema).
- Parameters:
schema- Keyspaces to base the transformation on- Returns:
- Keyspaces transformed by the statement
-
authorize
Description copied from interface:CQLStatementPerform any access verification necessary for the statement.- Parameters:
client- the current client state
-
getAuditLogContext
Description copied from interface:CQLStatementProvides the context needed for audit logging statements. -
toString
-