public abstract class SchemaAlteringStatement extends CFStatement implements CQLStatement
ParsedStatement.PreparedcfName| Modifier | Constructor and Description |
|---|---|
protected |
SchemaAlteringStatement() |
protected |
SchemaAlteringStatement(CFName name) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
announceMigration() |
abstract ResultMessage.SchemaChange.Change |
changeType() |
ResultMessage |
execute(ConsistencyLevel cl,
QueryState state,
java.util.List<java.nio.ByteBuffer> variables)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeInternal(QueryState state)
Variante of execute used for internal query against the system tables, and thus only query the local node.
|
ParsedStatement.Prepared |
prepare() |
void |
prepareKeyspace(ClientState state) |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
columnFamily, keyspacegetBoundTerms, setBoundTermsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAccess, getBoundTermsprotected SchemaAlteringStatement()
protected SchemaAlteringStatement(CFName name)
public void prepareKeyspace(ClientState state) throws InvalidRequestException
prepareKeyspace in class CFStatementInvalidRequestExceptionpublic ParsedStatement.Prepared prepare()
prepare in class ParsedStatementpublic abstract ResultMessage.SchemaChange.Change changeType()
public abstract void announceMigration()
throws RequestValidationException
RequestValidationExceptionpublic void validate(ClientState state) throws RequestValidationException
CQLStatementvalidate in interface CQLStatementstate - the current client stateRequestValidationExceptionpublic ResultMessage execute(ConsistencyLevel cl, QueryState state, java.util.List<java.nio.ByteBuffer> variables) throws RequestValidationException
CQLStatementexecute in interface CQLStatementstate - the current query statevariables - the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.RequestValidationExceptionpublic ResultMessage executeInternal(QueryState state)
CQLStatementexecuteInternal in interface CQLStatementstate - the current query stateCopyright © 2014 The Apache Software Foundation