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(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, prepareKeyspacekeyspace, prepareKeyspacegetBoundVariables, getFunctions, setBoundVariables, setBoundVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctionspublic final java.lang.String indexName
public final boolean ifExists
public DropIndexStatement(IndexName indexName, boolean ifExists)
public java.lang.String columnFamily()
columnFamily in class CFStatementpublic void checkAccess(ClientState state) throws UnauthorizedException, InvalidRequestException
CQLStatementstate - the current client stateUnauthorizedExceptionInvalidRequestExceptionpublic void validate(ClientState state)
CQLStatementstate - the current client statepublic ResultMessage execute(QueryState state, QueryOptions options) throws RequestValidationException
CQLStatementexecute in interface CQLStatementexecute in class SchemaAlteringStatementstate - the current query stateoptions - options for this query (consistency, variables, pageSize, ...)RequestValidationExceptionpublic Event.SchemaChange announceMigration(boolean isLocalOnly) throws InvalidRequestException, ConfigurationException
SchemaAlteringStatementannounceMigration in class SchemaAlteringStatementnull if no schema change
has occurred (when IF NOT EXISTS is used, for example)InvalidRequestExceptionConfigurationExceptionCopyright © 2016 The Apache Software Foundation