QueryStatistics (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.cache.query, interface: QueryStatistics

Package org.apache.geode.cache.query

# Interface QueryStatistics

public interface QueryStatistics
Provides statistical information about a query performed on a GemFire `Region`.

Since:
  GemFire 4.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `getNumExecutions()`
  Returns the total number of times the query has been executed.
  `long`
  `getTotalExecutionTime()`
  Returns the total amount of time (in nanoseconds) spent executing the query.

- ## Method Details

  - ### getNumExecutions

    long getNumExecutions()
    Returns the total number of times the query has been executed.
    Returns:
      the total number of times the query has been executed

  - ### getTotalExecutionTime

    long getTotalExecutionTime()
    Returns the total amount of time (in nanoseconds) spent executing the query.
    Returns:
      the total amount of time (in nanoseconds) spent executing the query