org.apache.cassandra.cql3.statements
Class CreateColumnFamilyStatement

java.lang.Object
  extended by org.apache.cassandra.cql3.statements.ParsedStatement
      extended by org.apache.cassandra.cql3.statements.CFStatement
          extended by org.apache.cassandra.cql3.statements.SchemaAlteringStatement
              extended by org.apache.cassandra.cql3.statements.CreateColumnFamilyStatement
All Implemented Interfaces:
CQLStatement

public class CreateColumnFamilyStatement
extends SchemaAlteringStatement

A CREATE COLUMNFAMILY parsed from a CQL query statement.


Nested Class Summary
static class CreateColumnFamilyStatement.RawStatement
           
 
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.statements.ParsedStatement
ParsedStatement.Prepared
 
Field Summary
 
Fields inherited from class org.apache.cassandra.cql3.statements.CFStatement
cfName
 
Constructor Summary
CreateColumnFamilyStatement(CFName name, CFPropDefs properties)
           
 
Method Summary
 void announceMigration()
           
 void applyPropertiesTo(CFMetaData cfmd)
           
 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.
 
Methods inherited from class org.apache.cassandra.cql3.statements.SchemaAlteringStatement
execute, prepare, prepareKeyspace, validate
 
Methods inherited from class org.apache.cassandra.cql3.statements.CFStatement
columnFamily, keyspace
 
Methods inherited from class org.apache.cassandra.cql3.statements.ParsedStatement
getBoundsTerms, setBoundTerms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBoundsTerms
 

Constructor Detail

CreateColumnFamilyStatement

public CreateColumnFamilyStatement(CFName name,
                                   CFPropDefs properties)
Method Detail

checkAccess

public void checkAccess(ClientState state)
                 throws org.apache.cassandra.thrift.InvalidRequestException
Description copied from interface: CQLStatement
Perform any access verification necessary for the statement.

Parameters:
state - the current client state
Throws:
org.apache.cassandra.thrift.InvalidRequestException

announceMigration

public void announceMigration()
                       throws org.apache.cassandra.thrift.InvalidRequestException,
                              ConfigurationException
Specified by:
announceMigration in class SchemaAlteringStatement
Throws:
org.apache.cassandra.thrift.InvalidRequestException
ConfigurationException

getCFMetaData

public CFMetaData getCFMetaData()
                         throws org.apache.cassandra.thrift.InvalidRequestException
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:
org.apache.cassandra.thrift.InvalidRequestException - on failure to validate parsed parameters

applyPropertiesTo

public void applyPropertiesTo(CFMetaData cfmd)
                       throws org.apache.cassandra.thrift.InvalidRequestException,
                              ConfigurationException
Throws:
org.apache.cassandra.thrift.InvalidRequestException
ConfigurationException


Copyright © 2012 The Apache Software Foundation