org.apache.cassandra.cql3.statements
Class DropKeyspaceStatement

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.DropKeyspaceStatement
All Implemented Interfaces:
CQLStatement

public class DropKeyspaceStatement
extends SchemaAlteringStatement


Nested Class Summary
 
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
DropKeyspaceStatement(java.lang.String keyspace)
           
 
Method Summary
 void announceMigration()
           
 void checkAccess(ClientState state)
          Perform any access verification necessary for the statement.
 void validate(ClientState state)
          Perform additional validation required by the statment.
 
Methods inherited from class org.apache.cassandra.cql3.statements.SchemaAlteringStatement
execute, prepare, prepareKeyspace
 
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

DropKeyspaceStatement

public DropKeyspaceStatement(java.lang.String keyspace)
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

validate

public void validate(ClientState state)
              throws org.apache.cassandra.thrift.InvalidRequestException,
                     org.apache.cassandra.thrift.SchemaDisagreementException
Description copied from interface: CQLStatement
Perform additional validation required by the statment. To be overriden by subclasses if needed.

Specified by:
validate in interface CQLStatement
Overrides:
validate in class SchemaAlteringStatement
Parameters:
state - the current client state
Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.SchemaDisagreementException

announceMigration

public void announceMigration()
                       throws ConfigurationException
Specified by:
announceMigration in class SchemaAlteringStatement
Throws:
ConfigurationException


Copyright © 2013 The Apache Software Foundation