Class QueryRecorderStatementBuilder.QueryRecorderStatement

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

public static class QueryRecorderStatementBuilder.QueryRecorderStatement extends AbstractStatement
Implementation of the CohQL "QueryRecorder" command.
  • Field Details

    • f_sCacheName

      protected final String f_sCacheName
      The name of the cache to query.
    • f_filter

      protected final Filter f_filter
      The Filter to be explained or traced.
    • f_aggregator

      protected final QueryRecorder<Object,Object> f_aggregator
      The type of query recorder to run.
  • Constructor Details

    • QueryRecorderStatement

      public QueryRecorderStatement(String sCacheName, Filter filter, QueryRecorder.RecordType type)
      Construct a QueryRecorderStatement that produces a plan or trace of the specified filter query against the specified cache.
      Parameters:
      sCacheName - the cache to be queried
      filter - the Filter to show the plan or trace for
      type - the type of query recorder - explain plan or trace
  • 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