public abstract class AlterSchemaStatement extends java.lang.Object implements CQLStatement.SingleKeyspaceCqlStatement, SchemaTransformation
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
keyspaceName |
Modifier | Constructor and Description |
---|---|
protected |
AlterSchemaStatement(java.lang.String keyspaceName) |
Modifier and Type | Method and Description |
---|---|
ResultMessage |
execute(QueryState state,
boolean locally) |
ResultMessage |
execute(QueryState state,
QueryOptions options,
long queryStartNanoTime)
Execute the statement and return the resulting result or null if there is no result.
|
ResultMessage |
executeLocally(QueryState state,
QueryOptions options)
Variant of execute used for internal query against the system tables, and thus only query the local node.
|
java.lang.String |
keyspace() |
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authorize, getAuditLogContext, getBindVariables, getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
apply
protected AlterSchemaStatement(java.lang.String keyspaceName)
public final void validate(ClientState state)
CQLStatement
validate
in interface CQLStatement
state
- the current client statepublic ResultMessage execute(QueryState state, QueryOptions options, long queryStartNanoTime)
CQLStatement
execute
in interface CQLStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)queryStartNanoTime
- the timestamp returned by System.nanoTime() when this statement was receivedpublic java.lang.String keyspace()
keyspace
in interface CQLStatement.SingleKeyspaceCqlStatement
public ResultMessage executeLocally(QueryState state, QueryOptions options)
CQLStatement
executeLocally
in interface CQLStatement
state
- the current query statepublic ResultMessage execute(QueryState state, boolean locally)
Copyright © 2009- The Apache Software Foundation