public class CreateTableStatement extends SchemaAlteringStatement
CREATE TABLE parsed from a CQL query statement.| Modifier and Type | Class and Description |
|---|---|
static class |
CreateTableStatement.RawStatement |
ParsedStatement.PreparedcfName| Constructor and Description |
|---|
CreateTableStatement(CFName name,
TableParams params,
boolean ifNotExists,
java.util.Set<ColumnIdentifier> staticColumns,
java.util.UUID id) |
| Modifier and Type | Method and Description |
|---|---|
Event.SchemaChange |
announceMigration(boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
CFMetaData |
getCFMetaData()
Returns a CFMetaData instance based on the parameters parsed from this
CREATE statement, or defaults where applicable. |
protected void |
grantPermissionsToCreator(QueryState state)
Schema alteration may result in a new database object (keyspace, table, role, function) being created capable of
having permissions GRANTed on it.
|
CFMetaData.Builder |
metadataBuilder() |
TableParams |
params() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, executeInternal, getBoundTerms, prepare, prepareKeyspacecolumnFamily, keyspace, prepareKeyspacegetBoundVariables, getFunctions, setBoundVariables, setBoundVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctionspublic CreateTableStatement(CFName name, TableParams params, boolean ifNotExists, java.util.Set<ColumnIdentifier> staticColumns, java.util.UUID id)
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatementstate - the current client stateUnauthorizedExceptionInvalidRequestExceptionpublic void validate(ClientState state)
CQLStatementstate - the current client statepublic Event.SchemaChange announceMigration(boolean isLocalOnly) throws RequestValidationException
SchemaAlteringStatementannounceMigration in class SchemaAlteringStatementnull if no schema change
has occurred (when IF NOT EXISTS is used, for example)RequestValidationExceptionprotected void grantPermissionsToCreator(QueryState state)
SchemaAlteringStatementgrantPermissionsToCreator in class SchemaAlteringStatementpublic CFMetaData.Builder metadataBuilder()
public CFMetaData getCFMetaData()
CREATE statement, or defaults where applicable.InvalidRequestException - on failure to validate parsed parameterspublic TableParams params()
Copyright © 2016 The Apache Software Foundation