public final class CreateTableStatement extends AlterSchemaStatement
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateTableStatement.Raw |
CQLStatement.SingleKeyspaceCqlStatementkeyspaceName| Constructor and Description |
|---|
CreateTableStatement(java.lang.String keyspaceName,
java.lang.String tableName,
java.util.Map<ColumnIdentifier,CQL3Type.Raw> rawColumns,
java.util.Set<ColumnIdentifier> staticColumns,
java.util.List<ColumnIdentifier> partitionKeyColumns,
java.util.List<ColumnIdentifier> clusteringColumns,
java.util.LinkedHashMap<ColumnIdentifier,java.lang.Boolean> clusteringOrder,
TableAttributes attrs,
boolean ifNotExists,
boolean useCompactStorage) |
| Modifier and Type | Method and Description |
|---|---|
Keyspaces |
apply(Keyspaces schema)
Apply a statement transformation to a schema snapshot.
|
void |
authorize(ClientState client)
Perform any access verification necessary for the statement.
|
TableMetadata.Builder |
builder(Types types) |
java.util.Set<java.lang.String> |
clientWarnings(Keyspaces.KeyspacesDiff diff)
Schema alteration might produce a client warning (e.g.
|
AuditLogContext |
getAuditLogContext()
Provides the context needed for audit logging statements.
|
static TableMetadata.Builder |
parse(java.lang.String cql,
java.lang.String keyspace) |
java.lang.String |
toString() |
execute, execute, executeLocally, keyspace, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditionspublic CreateTableStatement(java.lang.String keyspaceName,
java.lang.String tableName,
java.util.Map<ColumnIdentifier,CQL3Type.Raw> rawColumns,
java.util.Set<ColumnIdentifier> staticColumns,
java.util.List<ColumnIdentifier> partitionKeyColumns,
java.util.List<ColumnIdentifier> clusteringColumns,
java.util.LinkedHashMap<ColumnIdentifier,java.lang.Boolean> clusteringOrder,
TableAttributes attrs,
boolean ifNotExists,
boolean useCompactStorage)
public Keyspaces apply(Keyspaces schema)
SchemaTransformationschema - Keyspaces to base the transformation onpublic void authorize(ClientState client)
CQLStatementclient - the current client statepublic AuditLogContext getAuditLogContext()
CQLStatementpublic java.lang.String toString()
toString in class java.lang.Objectpublic TableMetadata.Builder builder(Types types)
public java.util.Set<java.lang.String> clientWarnings(Keyspaces.KeyspacesDiff diff)
AlterSchemaStatementpublic static TableMetadata.Builder parse(java.lang.String cql, java.lang.String keyspace)
Copyright © 2009-2022 The Apache Software Foundation