org.apache.cassandra.cql3.statements
Class SchemaAlteringStatement
java.lang.Object
org.apache.cassandra.cql3.statements.ParsedStatement
org.apache.cassandra.cql3.statements.CFStatement
org.apache.cassandra.cql3.statements.SchemaAlteringStatement
- All Implemented Interfaces:
- CQLStatement
- Direct Known Subclasses:
- AlterKeyspaceStatement, AlterTableStatement, CreateColumnFamilyStatement, CreateIndexStatement, CreateKeyspaceStatement, DropColumnFamilyStatement, DropIndexStatement, DropKeyspaceStatement
public abstract class SchemaAlteringStatement
- extends CFStatement
- implements CQLStatement
Abstract class for statements that alter the schema.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaAlteringStatement
protected SchemaAlteringStatement()
SchemaAlteringStatement
protected SchemaAlteringStatement(CFName name)
prepareKeyspace
public void prepareKeyspace(ClientState state)
throws org.apache.cassandra.thrift.InvalidRequestException
- Overrides:
prepareKeyspace
in class CFStatement
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
prepare
public ParsedStatement.Prepared prepare()
throws org.apache.cassandra.thrift.InvalidRequestException
- Specified by:
prepare
in class ParsedStatement
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
announceMigration
public abstract void announceMigration()
throws org.apache.cassandra.thrift.InvalidRequestException,
ConfigurationException
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
ConfigurationException
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
- Parameters:
state
- the current client state
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.SchemaDisagreementException
execute
public org.apache.cassandra.thrift.CqlResult execute(ClientState state,
java.util.List<java.nio.ByteBuffer> variables)
throws org.apache.cassandra.thrift.InvalidRequestException,
org.apache.cassandra.thrift.SchemaDisagreementException
- Description copied from interface:
CQLStatement
- Execute the statement and return the resulting result or null if there is no result.
- Specified by:
execute
in interface CQLStatement
- Parameters:
state
- the current client statevariables
- the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.
- Throws:
org.apache.cassandra.thrift.InvalidRequestException
org.apache.cassandra.thrift.SchemaDisagreementException
Copyright © 2013 The Apache Software Foundation