Class CreateTableStatement
java.lang.Object
org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
org.apache.cassandra.cql3.statements.schema.CreateTableStatement
- All Implemented Interfaces:
CQLStatement,CQLStatement.SingleKeyspaceCqlStatement,SchemaTransformation
-
Nested Class Summary
Nested ClassesNested 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
Fields inherited from class org.apache.cassandra.cql3.statements.schema.AlterSchemaStatement
keyspaceName, state -
Constructor Summary
ConstructorsConstructorDescriptionCreateTableStatement(String keyspaceName, String tableName, Map<ColumnIdentifier, org.apache.cassandra.cql3.statements.schema.CreateTableStatement.ColumnProperties.Raw> rawColumns, Set<ColumnIdentifier> staticColumns, List<ColumnIdentifier> partitionKeyColumns, List<ColumnIdentifier> clusteringColumns, LinkedHashMap<ColumnIdentifier, Boolean> clusteringOrder, TableAttributes attrs, boolean ifNotExists, boolean useCompactStorage) -
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.static TableMetadata.BuildertoString()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
-
Constructor Details
-
CreateTableStatement
public CreateTableStatement(String keyspaceName, String tableName, Map<ColumnIdentifier, org.apache.cassandra.cql3.statements.schema.CreateTableStatement.ColumnProperties.Raw> rawColumns, Set<ColumnIdentifier> staticColumns, List<ColumnIdentifier> partitionKeyColumns, List<ColumnIdentifier> clusteringColumns, LinkedHashMap<ColumnIdentifier, Boolean> clusteringOrder, TableAttributes attrs, boolean ifNotExists, boolean useCompactStorage)
-
-
Method Details
-
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
-
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
-
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
-
builder
-
parse
-