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() |
abstract ResultMessage.SchemaChange.Change |
changeType() |
ResultMessage |
execute(ConsistencyLevel cl,
QueryState state,
java.util.List<java.nio.ByteBuffer> variables,
int pageSize,
PagingState pagingState)
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) |
columnFamily, keyspace
getBoundsTerms, setBoundTerms
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAccess, getBoundsTerms, validate
protected SchemaAlteringStatement()
protected SchemaAlteringStatement(CFName name)
public void prepareKeyspace(ClientState state) throws InvalidRequestException
prepareKeyspace
in class CFStatement
InvalidRequestException
public ParsedStatement.Prepared prepare()
prepare
in class ParsedStatement
public abstract ResultMessage.SchemaChange.Change changeType()
public abstract void announceMigration() throws RequestValidationException
RequestValidationException
public ResultMessage execute(ConsistencyLevel cl, QueryState state, java.util.List<java.nio.ByteBuffer> variables, int pageSize, PagingState pagingState) throws RequestValidationException
CQLStatement
execute
in interface CQLStatement
cl
- the consistency level for the querystate
- the current query statevariables
- the values for bounded variables. The implementation
can assume that each bound term have a corresponding value.pageSize
- the initial page size for the result set potentially returned. A negative value
means no paging needs to be done. Statements that do not return result sets can ignore this value.pagingState
- the paging state for paged query. All statement except Select should ignore
that value.RequestValidationException
public ResultMessage executeInternal(QueryState state)
CQLStatement
executeInternal
in interface CQLStatement
state
- the current query stateCopyright © 2013 The Apache Software Foundation