Class DeleteStatementBuilder.DeleteStatement

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

public static class DeleteStatementBuilder.DeleteStatement extends AbstractStatement
Implementation of the CohQL "DELETE" query.
  • Field Details

    • f_sCache

      protected final String f_sCache
      The cache name containing the entries to be deleted
    • f_filter

      protected final Filter f_filter
      The Filter to be used in the CohQL "delete" command.
  • Constructor Details

    • DeleteStatement

      public DeleteStatement(String sCacheName, Filter filter)
      Create an instance of DeleteStatementBuilder.DeleteStatement that will delete all entries from the specified cache that match the given Filter.
      Parameters:
      sCacheName - the name of the cache to remove entries from
      filter - the Filter to use to determine the entries to be removed
  • 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
    • executeAsync

      Description copied from interface: Statement
      Execute a CohQL query or command asynchronously and return the CompletableFuture with the relevant result.
      Parameters:
      ctx - the context to use
      Returns:
      a StatementResult future containing the results of executing the statement
    • 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
    • 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