org.apache.cassandra.cql3.statements
Class AlterTableStatement

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

public class AlterTableStatement
extends SchemaAlteringStatement


Nested Class Summary
static class AlterTableStatement.Type
           
 
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.statements.ParsedStatement
ParsedStatement.Prepared
 
Field Summary
 ColumnIdentifier columnName
           
 AlterTableStatement.Type oType
           
 ParsedType validator
           
 
Fields inherited from class org.apache.cassandra.cql3.statements.CFStatement
cfName
 
Constructor Summary
AlterTableStatement(CFName name, AlterTableStatement.Type type, ColumnIdentifier columnName, ParsedType validator, CFPropDefs cfProps, java.util.Map<ColumnIdentifier,ColumnIdentifier> renames)
           
 
Method Summary
 void announceMigration()
           
 ResultMessage.SchemaChange.Change changeType()
           
 void checkAccess(ClientState state)
          Perform any access verification necessary for the statement.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.cassandra.cql3.statements.SchemaAlteringStatement
execute, executeInternal, 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, wait, wait, wait
 
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
getBoundsTerms
 

Field Detail

oType

public final AlterTableStatement.Type oType

validator

public final ParsedType validator

columnName

public final ColumnIdentifier columnName
Constructor Detail

AlterTableStatement

public AlterTableStatement(CFName name,
                           AlterTableStatement.Type type,
                           ColumnIdentifier columnName,
                           ParsedType validator,
                           CFPropDefs cfProps,
                           java.util.Map<ColumnIdentifier,ColumnIdentifier> renames)
Method Detail

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

changeType

public ResultMessage.SchemaChange.Change changeType()
Specified by:
changeType in class SchemaAlteringStatement


Copyright © 2012 The Apache Software Foundation