public class DropIndexStatement extends SchemaAlteringStatement
ParsedStatement.Prepared
Modifier and Type | Field and Description |
---|---|
boolean |
ifExists |
java.lang.String |
indexName |
cfName
Constructor and Description |
---|
DropIndexStatement(IndexName indexName,
boolean ifExists) |
Modifier and Type | Method and Description |
---|---|
boolean |
announceMigration(boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
Event.SchemaChange |
changeEvent() |
void |
checkAccess(ClientState state)
Perform any access verification necessary for the statement.
|
java.lang.String |
columnFamily() |
ResultMessage |
execute(QueryState state,
QueryOptions options)
Execute the statement and return the resulting result or null if there is no result.
|
void |
validate(ClientState state)
Perform additional validation required by the statment.
|
executeInternal, getBoundTerms, grantPermissionsToCreator, prepare, prepareKeyspace
keyspace, prepareKeyspace
getBoundVariables, getFunctions, setBoundVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctions
public final java.lang.String indexName
public final boolean ifExists
public DropIndexStatement(IndexName indexName, boolean ifExists)
public java.lang.String columnFamily()
columnFamily
in class CFStatement
public void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatement
state
- the current client stateUnauthorizedException
InvalidRequestException
public void validate(ClientState state)
CQLStatement
state
- the current client statepublic Event.SchemaChange changeEvent()
changeEvent
in class SchemaAlteringStatement
public ResultMessage execute(QueryState state, QueryOptions options) throws RequestValidationException
CQLStatement
execute
in interface CQLStatement
execute
in class SchemaAlteringStatement
state
- the current query stateoptions
- options for this query (consistency, variables, pageSize, ...)RequestValidationException
public boolean announceMigration(boolean isLocalOnly) throws InvalidRequestException, ConfigurationException
SchemaAlteringStatement
announceMigration
in class SchemaAlteringStatement
InvalidRequestException
ConfigurationException
Copyright © 2016 The Apache Software Foundation