org.apache.spark.streaming.api.java
:: Experimental :: * Get the currently active context, if there is one.
:: Experimental :: * Get the currently active context, if there is one. Active means started but not stopped.
:: Experimental ::
:: Experimental ::
Either get the currently active JavaSnappyStreamingContext (that is, started but
not stopped), OR recreate a JavaSnappyStreamingContext from checkpoint data in
the given path. If checkpoint data does not exist in the provided, then create
a new JavaSnappyStreamingContext by calling the provided
creatingFunc
.
Checkpoint directory used in an earlier JavaSnappyStreamingContext program
Function to create a new JavaSnappyStreamingContext
Optional Hadoop configuration if necessary for reading from the file system
Optional, whether to create a new JavaSnappyStreamingContext if there is an error in reading checkpoint data. By default, an exception will be thrown on error.
:: Experimental ::
:: Experimental ::
Either return the "active" JavaSnappyStreamingContext (that is, started but not stopped), or create a new JavaSnappyStreamingContext that is
Function to create a new StreamingContext
:: Experimental ::
:: Experimental ::
Get the currently created context, it may be started or not, but never stopped.
Either recreate a JavaSnappyStreamingContext from checkpoint data or create a new JavaSnappyStreamingContext.
Either recreate a JavaSnappyStreamingContext from checkpoint data or create a new
JavaSnappyStreamingContext.
If checkpoint data exists in the provided checkpointPath
, then JavaSnappyStreamingContext
will be recreated from the checkpoint data. If the data does not exist, then the
JavaSnappyStreamingContext will be created by called the provided creatingFunc
.
Checkpoint directory used in an earlier JavaSnappyStreamingContext program
Function to create a new JavaSnappyStreamingContext
Optional Hadoop configuration if necessary for reading from the file system
Optional, whether to create a new JavaSnappyStreamingContext if there is an error in reading checkpoint data. By default, an exception will be thrown on error.