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 |
---|---|
Event.SchemaChange |
announceMigration(QueryState queryState,
boolean isLocalOnly)
Announces the migration to other nodes in the cluster.
|
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, 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 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 Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException
SchemaAlteringStatement
announceMigration
in class SchemaAlteringStatement
null
if no schema change
has occurred (when IF NOT EXISTS is used, for example)InvalidRequestException
ConfigurationException
Copyright © 2017 The Apache Software Foundation