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) |
Modifier and Type | Method and Description |
---|---|
void |
announceMigration() |
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, prepare, prepareKeyspace
columnFamily, keyspace
getBoundsTerms, setBoundTerms
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoundsTerms
public AbstractType<?> comparator
public CreateTableStatement(CFName name, CFPropDefs properties, boolean ifNotExists)
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatement
state
- the current client stateUnauthorizedException
InvalidRequestException
public void validate(ClientState state)
CQLStatement
state
- the current client statepublic void announceMigration() throws RequestValidationException
announceMigration
in class SchemaAlteringStatement
RequestValidationException
public ResultMessage.SchemaChange.Change changeType()
changeType
in class SchemaAlteringStatement
public CFMetaData getCFMetaData() throws RequestValidationException
CREATE
statement, or defaults where applicable.InvalidRequestException
- on failure to validate parsed parametersRequestValidationException
public void applyPropertiesTo(CFMetaData cfmd) throws RequestValidationException
RequestValidationException
Copyright © 2013 The Apache Software Foundation