Package org.apache.ignite.spi.systemview.view

## Class SqlQueryHistoryView

- java.lang.Object
- - org.apache.ignite.spi.systemview.view.SqlQueryHistoryView

-     public class SqlQueryHistoryView
      extends Object

  SQL query history representation for a `SystemView`.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SqlQueryHistoryView​(org.apache.ignite.internal.processors.query.running.QueryHistory qry)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `long` | `durationMax()` |
    `long` | `durationMin()` |
    `long` | `durationTotal()` |
    `long` | `executions()` |
    `long` | `failures()` |
    `String` | `initiatorId()` |
    `Date` | `lastStartTime()` |
    `boolean` | `local()` |
    `String` | `schemaName()` |
    `String` | `sql()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SqlQueryHistoryView

          public SqlQueryHistoryView​(org.apache.ignite.internal.processors.query.running.QueryHistory qry)

      Parameters:
        `qry` - Query history item.

  - ### Method Detail

    - #### schemaName

          public String schemaName()

      Returns:
        Schema name.

    - #### sql

          public String sql()

      Returns:
        Query text.

    - #### local

          public boolean local()

      Returns:
        `True` if query local.

    - #### initiatorId

          public String initiatorId()

      Returns:
        Latest initiator ID.

    - #### executions

          public long executions()

      Returns:
        Number of executions of the query.

    - #### failures

          public long failures()

      Returns:
        Number of failed execution of the query.

    - #### durationMin

          public long durationMin()

      Returns:
        Minimal query duration.

    - #### durationMax

          public long durationMax()

      Returns:
        Maximum query duration.

    - #### durationTotal

          public long durationTotal()

      Returns:
        Total query duration.

    - #### lastStartTime

          public Date lastStartTime()

      Returns:
        Last start time.