Class QueryEntity


  • public final class QueryEntity
    extends Object
    Author:
    Mark Vollmary
    • Constructor Detail

      • QueryEntity

        public QueryEntity()
    • Method Detail

      • getId

        public String getId()
        Returns:
        the query's id
      • getDatabase

        public String getDatabase()
        Returns:
        the name of the database the query runs in
      • getUser

        public String getUser()
        Returns:
        the name of the user that started the query
      • getQuery

        public String getQuery()
        Returns:
        the query string (potentially truncated)
      • getBindVars

        public Map<String,​Object> getBindVars()
        Returns:
        the bind parameter values used by the query
      • getStarted

        public Date getStarted()
        Returns:
        the date and time when the query was started
      • getRunTime

        public Double getRunTime()
        Returns:
        the query's run time up to the point the list of queries was queried
      • getPeakMemoryUsage

        public Long getPeakMemoryUsage()
        Returns:
        the query’s peak memory usage in bytes (in increments of 32KB)
      • getState

        public QueryExecutionState getState()
        Returns:
        the query's current execution state
      • getStream

        public Boolean getStream()
        Returns:
        whether or not the query uses a streaming cursor