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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
announceMigration(boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
Event.SchemaChange |
changeEvent() |
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)
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatementstate - the current client stateUnauthorizedExceptionInvalidRequestExceptionpublic void validate(ClientState state)
CQLStatementstate - the current client statepublic boolean announceMigration(boolean isLocalOnly)
throws RequestValidationException
SchemaAlteringStatementannounceMigration in class SchemaAlteringStatementRequestValidationExceptionpublic Event.SchemaChange changeEvent()
changeEvent in class SchemaAlteringStatementprotected 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 © 2015 The Apache Software Foundation