org.apache.cassandra.cql3.statements
Class CreateColumnFamilyStatement
java.lang.Object
org.apache.cassandra.cql3.statements.ParsedStatement
org.apache.cassandra.cql3.statements.CFStatement
org.apache.cassandra.cql3.statements.SchemaAlteringStatement
org.apache.cassandra.cql3.statements.CreateColumnFamilyStatement
- All Implemented Interfaces:
- CQLStatement
public class CreateColumnFamilyStatement
- extends SchemaAlteringStatement
A CREATE COLUMNFAMILY
parsed from a CQL query statement.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
comparator
public AbstractType<?> comparator
CreateColumnFamilyStatement
public CreateColumnFamilyStatement(CFName name,
CFPropDefs properties)
checkAccess
public void checkAccess(ClientState state)
throws UnauthorizedException,
InvalidRequestException
- Description copied from interface:
CQLStatement
- Perform any access verification necessary for the statement.
- Parameters:
state
- the current client state
- Throws:
UnauthorizedException
InvalidRequestException
announceMigration
public void announceMigration()
throws RequestValidationException
- Specified by:
announceMigration
in class SchemaAlteringStatement
- Throws:
RequestValidationException
changeType
public ResultMessage.SchemaChange.Change changeType()
- Specified by:
changeType
in class SchemaAlteringStatement
getCFMetaData
public CFMetaData getCFMetaData()
throws RequestValidationException
- Returns a CFMetaData instance based on the parameters parsed from this
CREATE
statement, or defaults where applicable.
- Returns:
- a CFMetaData instance corresponding to the values parsed from this statement
- Throws:
InvalidRequestException
- on failure to validate parsed parameters
RequestValidationException
applyPropertiesTo
public void applyPropertiesTo(CFMetaData cfmd)
throws RequestValidationException
- Throws:
RequestValidationException
Copyright © 2012 The Apache Software Foundation