Class StreamListener
Object
org.apache.spark.sql.streaming.StreamingQueryListener
org.apache.spark.sql.pipelines.logging.StreamListener
- All Implemented Interfaces:
Serializable,org.apache.spark.internal.Logging
public class StreamListener
extends StreamingQueryListener
implements org.apache.spark.internal.Logging
A streaming listener that converts streaming events into pipeline events for the relevant flows.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.spark.sql.streaming.StreamingQueryListener
StreamingQueryListener.Event, StreamingQueryListener.QueryIdleEvent, StreamingQueryListener.QueryIdleEvent$, StreamingQueryListener.QueryProgressEvent, StreamingQueryListener.QueryProgressEvent$, StreamingQueryListener.QueryStartedEvent, StreamingQueryListener.QueryStartedEvent$, StreamingQueryListener.QueryTerminatedEvent, StreamingQueryListener.QueryTerminatedEvent$Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging
org.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when there is some status update (ingestion rate updated, etc.)voidCalled when a query is started.voidCalled when a query is stopped, with or without error.Methods inherited from class org.apache.spark.sql.streaming.StreamingQueryListener
onQueryIdleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logBasedOnLevel, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, MDC, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContext
-
Constructor Details
-
StreamListener
-
-
Method Details
-
onQueryProgress
Description copied from class:StreamingQueryListenerCalled when there is some status update (ingestion rate updated, etc.)- Specified by:
onQueryProgressin classStreamingQueryListener- Parameters:
event- (undocumented)
-
onQueryStarted
Description copied from class:StreamingQueryListenerCalled when a query is started.- Specified by:
onQueryStartedin classStreamingQueryListener- Parameters:
event- (undocumented)
-
onQueryTerminated
Description copied from class:StreamingQueryListenerCalled when a query is stopped, with or without error.- Specified by:
onQueryTerminatedin classStreamingQueryListener- Parameters:
event- (undocumented)
-