public class CreateTableStatement extends SchemaAlteringStatement
CREATE TABLE parsed from a CQL query statement.| Modifier and Type | Class and Description |
|---|---|
static class |
CreateTableStatement.RawStatement |
ParsedStatement.Prepared| Modifier and Type | Field and Description |
|---|---|
AbstractType<?> |
comparator |
cfName| Constructor and Description |
|---|
CreateTableStatement(CFName name,
CFPropDefs properties,
boolean ifNotExists,
java.util.Set<ColumnIdentifier> staticColumns) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
announceMigration()
Announces the migration to other nodes in the cluster.
|
void |
applyPropertiesTo(CFMetaData cfmd) |
ResultMessage.SchemaChange.Change |
changeType() |
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. |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
execute, executeInternal, getBoundTerms, prepare, prepareKeyspacecolumnFamily, keyspacegetBoundVariables, setBoundVariablespublic AbstractType<?> comparator
public CreateTableStatement(CFName name, CFPropDefs properties, 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()
throws RequestValidationException
SchemaAlteringStatementannounceMigration in class SchemaAlteringStatementRequestValidationExceptionpublic ResultMessage.SchemaChange.Change changeType()
changeType in class SchemaAlteringStatementpublic CFMetaData getCFMetaData() throws RequestValidationException
CREATE statement, or defaults where applicable.InvalidRequestException - on failure to validate parsed parametersRequestValidationExceptionpublic void applyPropertiesTo(CFMetaData cfmd) throws RequestValidationException
RequestValidationExceptionCopyright © 2015 The Apache Software Foundation