Class DropIndexStatementBuilder.DropIndexStatement

java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.dslquery.statement.AbstractStatement
com.tangosol.coherence.dslquery.statement.DropIndexStatementBuilder.DropIndexStatement
All Implemented Interfaces:
Statement
Enclosing class:
DropIndexStatementBuilder

public static class DropIndexStatementBuilder.DropIndexStatement extends AbstractStatement
Implementation of the CohQL "create index" command.
  • Field Details

    • f_sCacheName

      protected final String f_sCacheName
      The name of the cache the index will be added to.
    • f_extractor

      protected final ValueExtractor f_extractor
      The ValueExtractor to be used to create the index.
  • Constructor Details

    • DropIndexStatement

      public DropIndexStatement(String sCacheName, ValueExtractor extractor)
      Construct a DropIndexStatement that will drop the index created with the specified ValueExtractor from the cache with the specified name.
      Parameters:
      sCacheName - the name of the cache to drop the index on
      extractor - the ValueExtractor to use to identify the index to drop
  • Method Details

    • execute

      public StatementResult execute(ExecutionContext ctx)
      Description copied from interface: Statement
      Execute a CohQL query or command and return the relevant result.
      Parameters:
      ctx - the context to use
      Returns:
      a StatementResult containing the results of executing the statement
    • showPlan

      public void showPlan(PrintWriter out)
      Description copied from interface: Statement
      Output to the provided PrintWriter a human readable trace of the actions that will be taken by this statement if or when executed.
      Parameters:
      out - the PrintWriter to write the trace to
    • sanityCheck

      public void sanityCheck(ExecutionContext ctx)
      Description copied from interface: Statement
      Perform sanity checks on the statement that will be executed.

      Implementations can fail sanity checking by throwing an unchecked exception (RuntimeException).

      Specified by:
      sanityCheck in interface Statement
      Overrides:
      sanityCheck in class AbstractStatement
      Parameters:
      ctx - the context to use