Class SqlStatementEndEvent

  • All Implemented Interfaces:
    Message

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

      • rowFetchCount

        public final long rowFetchCount
      • canceled

        public final boolean canceled
      • throwable

        public final Throwable throwable
    • Constructor Detail

      • 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 Detail

      • 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