public abstract class SchemaAlteringStatement extends CFStatement implements CQLStatement
ParsedStatement.Prepared
cfName
Modifier | Constructor and Description |
---|---|
protected |
SchemaAlteringStatement() |
protected |
SchemaAlteringStatement(CFName name) |
Modifier and Type | Method and Description |
---|---|
abstract void |
announceMigration(boolean isLocalOnly) |
abstract Event.SchemaChange |
changeEvent() |
ResultMessage |
execute(QueryState state,
QueryOptions options)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeInternal(QueryState state,
QueryOptions options)
Variante of execute used for internal query against the system tables, and thus only query the local node.
|
int |
getBoundTerms()
Returns the number of bound terms in this statement.
|
ParsedStatement.Prepared |
prepare() |
void |
prepareKeyspace(ClientState state) |
columnFamily, keyspace, prepareKeyspace
getBoundVariables, setBoundVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAccess, validate
protected SchemaAlteringStatement()
protected SchemaAlteringStatement(CFName name)
public int getBoundTerms()
CQLStatement
getBoundTerms
in interface CQLStatement
public void prepareKeyspace(ClientState state) throws InvalidRequestException
prepareKeyspace
in class CFStatement
InvalidRequestException
public ParsedStatement.Prepared prepare()
prepare
in class ParsedStatement
public abstract Event.SchemaChange changeEvent()
public abstract void announceMigration(boolean isLocalOnly) throws RequestValidationException
RequestValidationException
public ResultMessage execute(QueryState state, QueryOptions options) throws RequestValidationException
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)RequestValidationException
public ResultMessage executeInternal(QueryState state, QueryOptions options)
CQLStatement
executeInternal
in interface CQLStatement
state
- the current query stateCopyright © 2014 The Apache Software Foundation