Class SqlStatementEndEvent

All Implemented Interfaces:
Message

public class SqlStatementEndEvent extends SqlStatementEvent
Event created when Mondrian finishes executing an SQL statement.
  • Field Details

    • rowFetchCount

      public final long rowFetchCount
    • canceled

      public final boolean canceled
    • throwable

      public final Throwable throwable
  • Constructor Details

    • SqlStatementEndEvent

      public SqlStatementEndEvent(long timestamp, long sqlStatementId, Locus locus, String sql, SqlStatementEvent.Purpose purpose, long rowFetchCount, boolean canceled, Throwable throwable)
      Creates a SqlStatementEndEvent.
      Parameters:
      timestamp - Timestamp
      sqlStatementId - SQL statement id
      locus - Locus of event
      sql - SQL
      purpose - Why Mondrian is executing this statement
      rowFetchCount - Number of rows fetched
      canceled - Whether statement was canceled
      throwable - Throwable, or null if there was no error
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • accept

      public <T> T accept(Visitor<T> visitor)
      Description copied from interface: Message
      Dispatches a call to the appropriate visit method on Visitor.
      Type Parameters:
      T - Return type
      Parameters:
      visitor - Visitor
      Returns:
      Value returned by the visit method