public class CreateColumnFamilyStatement extends SchemaAlteringStatement
CREATE COLUMNFAMILY
parsed from a CQL query statement.Modifier and Type | Class and Description |
---|---|
static class |
CreateColumnFamilyStatement.RawStatement |
ParsedStatement.Prepared
Modifier and Type | Field and Description |
---|---|
AbstractType<?> |
comparator |
cfName
Constructor and Description |
---|
CreateColumnFamilyStatement(CFName name,
CFPropDefs properties) |
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. |
execute, executeInternal, prepare, prepareKeyspace, validate
columnFamily, keyspace
getBoundsTerms, setBoundTerms
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoundsTerms
public AbstractType<?> comparator
public CreateColumnFamilyStatement(CFName name, CFPropDefs properties)
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatement
state
- the current client stateUnauthorizedException
InvalidRequestException
public 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