org.apache.cassandra.cql3.statements
Class AlterKeyspaceStatement
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.AlterKeyspaceStatement
- All Implemented Interfaces:
- CQLStatement
public class AlterKeyspaceStatement
- extends SchemaAlteringStatement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlterKeyspaceStatement
public AlterKeyspaceStatement(java.lang.String name,
KSPropDefs attrs)
keyspace
public java.lang.String keyspace()
- Overrides:
keyspace
in class CFStatement
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
validate
public void validate(ClientState state)
throws RequestValidationException
- 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:
RequestValidationException
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
Copyright © 2012 The Apache Software Foundation