public abstract class StreamingQueryListener
extends Object
implements scala.Serializable
StreamingQueries.| Modifier and Type | Class and Description |
|---|---|
static interface |
StreamingQueryListener.Event
Base type of
StreamingQueryListener events |
static class |
StreamingQueryListener.QueryIdleEvent
Event representing that query is idle and waiting for new data to process.
|
static class |
StreamingQueryListener.QueryProgressEvent
Event representing any progress updates in a query.
|
static class |
StreamingQueryListener.QueryStartedEvent
Event representing the start of a query
param: id A unique query id that persists across restarts.
|
static class |
StreamingQueryListener.QueryTerminatedEvent
Event representing that termination of a query.
|
| Constructor and Description |
|---|
StreamingQueryListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onQueryIdle(StreamingQueryListener.QueryIdleEvent event)
Called when the query is idle and waiting for new data to process.
|
abstract void |
onQueryProgress(StreamingQueryListener.QueryProgressEvent event)
Called when there is some status update (ingestion rate updated, etc.)
|
abstract void |
onQueryStarted(StreamingQueryListener.QueryStartedEvent event)
Called when a query is started.
|
abstract void |
onQueryTerminated(StreamingQueryListener.QueryTerminatedEvent event)
Called when a query is stopped, with or without error.
|
public abstract void onQueryStarted(StreamingQueryListener.QueryStartedEvent event)
event - (undocumented)DataStreamWriter.start(),
that is, onQueryStart will be called on all listeners before
DataStreamWriter.start() returns the corresponding StreamingQuery. Please
don't block this method as it will block your query.public abstract void onQueryProgress(StreamingQueryListener.QueryProgressEvent event)
event - (undocumented)StreamingQuery will always be
latest no matter when this method is called. Therefore, the status of StreamingQuery
may be changed before/when you process the event. E.g., you may find StreamingQuery
is terminated when you are processing QueryProgressEvent.public void onQueryIdle(StreamingQueryListener.QueryIdleEvent event)
event - (undocumented)public abstract void onQueryTerminated(StreamingQueryListener.QueryTerminatedEvent event)
event - (undocumented)