Package org.apache.spark.sql.streaming
Class StreamingQueryListener.QueryTerminatedEvent
Object
org.apache.spark.sql.streaming.StreamingQueryListener.QueryTerminatedEvent
- All Implemented Interfaces:
Serializable
,SparkListenerEvent
,StreamingQueryListener.Event
,scala.Serializable
- Enclosing class:
- StreamingQueryListener
public static class StreamingQueryListener.QueryTerminatedEvent
extends Object
implements StreamingQueryListener.Event, scala.Serializable
Event representing that termination of a query.
param: id A unique query id that persists across restarts. See StreamingQuery.id()
.
param: runId A query id that is unique for every start/restart. See StreamingQuery.runId()
.
param: exception The exception message of the query if the query was terminated
with an exception. Otherwise, it will be None
.
param: errorClassOnException The error class from the exception if the query was terminated
with an exception which is a part of error class framework.
If the query was terminated without an exception, or the
exception is not a part of error class framework, it will be
None
.
- Since:
- 2.1.0
- See Also:
-
Constructor Details
-
QueryTerminatedEvent
-
-
Method Details
-
errorClassOnException
-
exception
-
id
-
json
-
runId
-