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, validatecolumnFamily, keyspacegetBoundTerms, setBoundTermsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoundTermspublic AbstractType<?> comparator
public CreateColumnFamilyStatement(CFName name, CFPropDefs properties)
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatementstate - the current client stateUnauthorizedExceptionInvalidRequestExceptionpublic void announceMigration()
throws RequestValidationException
announceMigration 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 © 2014 The Apache Software Foundation