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,
long queryStartNanoTime)
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, long queryStartNanoTime) throws RequestValidationException
CQLStatementexecute in interface CQLStatementexecute in class SchemaAlteringStatementstate - the current query stateoptions - options for this query (consistency, variables, pageSize, ...)queryStartNanoTime - the timestamp returned by System.nanoTime() when this statement was receivedRequestValidationExceptionpublic Event.SchemaChange announceMigration(QueryState queryState, boolean isLocalOnly) throws InvalidRequestException, ConfigurationException
SchemaAlteringStatementannounceMigration in class SchemaAlteringStatementnull if no schema change
has occurred (when IF NOT EXISTS is used, for example)InvalidRequestExceptionConfigurationExceptionCopyright © 2018 The Apache Software Foundation