Finalizes the query progress and adds it to list of recent status updates.
Finalizes the query progress and adds it to list of recent status updates.
Returns the most recent query progress update or null if there were no progress updates.
Returns an array containing the most recent query progress updates.
Records the duration of running body
for the next query progress update.
Records the duration of running body
for the next query progress update.
Begins recording statistics about query progress for a given trigger.
Begins recording statistics about query progress for a given trigger.
Returns the current status of the query.
Updates the message returned in status
.
Updates the message returned in status
.
Responsible for continually reporting statistics about the amount of data processed as well as latency for a streaming query. This trait is designed to be mixed into the StreamExecution, who is responsible for calling
startTrigger
andfinishTrigger
at the appropriate times. Additionally, the status can updated withupdateStatusMessage
to allow reporting on the streams current state (i.e. "Fetching more data").