Returns a list of active queries associated with this SQLContext
Returns a list of active queries associated with this SQLContext
2.0.0
Register a StreamingQueryListener to receive up-calls for life cycle events of StreamingQuery.
Register a StreamingQueryListener to receive up-calls for life cycle events of StreamingQuery.
2.0.0
Wait until any of the queries on the associated SQLContext has terminated since the
creation of the context, or since resetTerminated()
was called.
Wait until any of the queries on the associated SQLContext has terminated since the
creation of the context, or since resetTerminated()
was called. Returns whether any query
has terminated or not (multiple may have terminated). If any query has terminated with an
exception, then the exception will be thrown.
If a query has terminated, then subsequent calls to awaitAnyTermination()
will either
return true
immediately (if the query was terminated by query.stop()
),
or throw the exception immediately (if the query was terminated with exception). Use
resetTerminated()
to clear past terminations and wait for new terminations.
In the case where multiple queries have terminated since resetTermination()
was called,
if any query has terminated with exception, then awaitAnyTermination()
will
throw any of the exception. For correctly documenting exceptions across multiple queries,
users need to stop all of them after any of them terminates with exception, and then check the
query.exception()
for each query.
2.0.0
StreamingQueryException
if any query has terminated with an exception
Wait until any of the queries on the associated SQLContext has terminated since the
creation of the context, or since resetTerminated()
was called.
Wait until any of the queries on the associated SQLContext has terminated since the
creation of the context, or since resetTerminated()
was called. If any query was terminated
with an exception, then the exception will be thrown.
If a query has terminated, then subsequent calls to awaitAnyTermination()
will either
return immediately (if the query was terminated by query.stop()
),
or throw the exception immediately (if the query was terminated with exception). Use
resetTerminated()
to clear past terminations and wait for new terminations.
In the case where multiple queries have terminated since resetTermination()
was called,
if any query has terminated with exception, then awaitAnyTermination()
will
throw any of the exception. For correctly documenting exceptions across multiple queries,
users need to stop all of them after any of them terminates with exception, and then check the
query.exception()
for each query.
2.0.0
StreamingQueryException
if any query has terminated with an exception
Returns the query if there is an active query with the given id, or null.
Returns the query if there is an active query with the given id, or null.
2.1.0
Returns the query if there is an active query with the given id, or null.
Returns the query if there is an active query with the given id, or null.
2.1.0
Deregister a StreamingQueryListener.
Deregister a StreamingQueryListener.
2.0.0
Forget about past terminated queries so that awaitAnyTermination()
can be used again to
wait for new terminations.
Forget about past terminated queries so that awaitAnyTermination()
can be used again to
wait for new terminations.
2.0.0
A class to manage all the StreamingQuery active in a
SparkSession
.2.0.0