org.apache.spark.streaming

SnappyStreamingContext

class SnappyStreamingContext extends StreamingContext with Serializable

Main entry point for SnappyData extensions to Spark Streaming. A SnappyStreamingContext extends Spark's org.apache.spark.streaming.StreamingContext to provides an ability to manipulate SQL like query on org.apache.spark.streaming.dstream.DStream. You can apply schema and register continuous SQL queries(CQ) over the data streams. A single shared SnappyStreamingContext makes it possible to re-use Executors across client connections or applications.

Self Type
SnappyStreamingContext
Linear Supertypes
Serializable, Serializable, StreamingContext, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SnappyStreamingContext
  2. Serializable
  3. Serializable
  4. StreamingContext
  5. Logging
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SnappyStreamingContext(path: String, sparkContext: SparkContext)

    Recreate a SnappyStreamingContext from a checkpoint file using an existing SparkContext.

    Recreate a SnappyStreamingContext from a checkpoint file using an existing SparkContext.

    path

    Path to the directory that was specified as the checkpoint directory

    sparkContext

    Existing SparkContext

  2. new SnappyStreamingContext(path: String)

    Recreate a SnappyStreamingContext from a checkpoint file.

    Recreate a SnappyStreamingContext from a checkpoint file.

    path

    Path to the directory that was specified as the checkpoint directory

  3. new SnappyStreamingContext(path: String, hadoopConf: Configuration)

    Recreate a SnappyStreamingContext from a checkpoint file.

    Recreate a SnappyStreamingContext from a checkpoint file.

    path

    Path to the directory that was specified as the checkpoint directory

    hadoopConf

    Optional, configuration object if necessary for reading from HDFS compatible filesystems

  4. new SnappyStreamingContext(conf: SparkConf, batchDuration: Duration)

    Create a SnappyStreamingContext by providing the configuration necessary for a new SparkContext.

    Create a SnappyStreamingContext by providing the configuration necessary for a new SparkContext.

    conf

    a org.apache.spark.SparkConf object specifying Spark parameters

    batchDuration

    the time interval at which streaming data will be divided into batches

  5. new SnappyStreamingContext(sparkContext: SparkContext, batchDuration: Duration)

    Create a SnappyStreamingContext using an existing SparkContext.

    Create a SnappyStreamingContext using an existing SparkContext.

    sparkContext

    existing SparkContext

    batchDuration

    the time interval at which streaming data will be divided into batches

  6. new SnappyStreamingContext(sc_: SparkContext, cp_: Checkpoint, batchDur_: Duration)

    Attributes
    protected[org.apache.spark]

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def actorStream[T](props: Props, name: String, storageLevel: StorageLevel, supervisorStrategy: SupervisorStrategy)(implicit arg0: ClassTag[T]): ReceiverInputDStream[T]

    Definition Classes
    StreamingContext
  7. def addStreamingListener(streamingListener: StreamingListener): Unit

    Definition Classes
    StreamingContext
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def awaitTermination(): Unit

    Definition Classes
    StreamingContext
  10. def awaitTerminationOrTimeout(timeout: Long): Boolean

    Definition Classes
    StreamingContext
  11. def binaryRecordsStream(directory: String, recordLength: Int): DStream[Array[Byte]]

    Definition Classes
    StreamingContext
  12. def checkpoint(directory: String): Unit

    Definition Classes
    StreamingContext
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def createSchemaDStream(rowStream: DStream[Row], schema: StructType): SchemaDStream

  15. def createSchemaDStream[A <: Product](stream: DStream[A])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): SchemaDStream

    Creates a SchemaDStream from an DStream of Product (e.

    Creates a SchemaDStream from an DStream of Product (e.g. case classes).

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def fileStream[K, V, F <: InputFormat[K, V]](directory: String, filter: (Path) ⇒ Boolean, newFilesOnly: Boolean, conf: Configuration)(implicit arg0: ClassTag[K], arg1: ClassTag[V], arg2: ClassTag[F]): InputDStream[(K, V)]

    Definition Classes
    StreamingContext
  19. def fileStream[K, V, F <: InputFormat[K, V]](directory: String, filter: (Path) ⇒ Boolean, newFilesOnly: Boolean)(implicit arg0: ClassTag[K], arg1: ClassTag[V], arg2: ClassTag[F]): InputDStream[(K, V)]

    Definition Classes
    StreamingContext
  20. def fileStream[K, V, F <: InputFormat[K, V]](directory: String)(implicit arg0: ClassTag[K], arg1: ClassTag[V], arg2: ClassTag[F]): InputDStream[(K, V)]

    Definition Classes
    StreamingContext
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getSchemaDStream(tableName: String): SchemaDStream

  24. def getState(): StreamingContextState

    Definition Classes
    StreamingContext
    Annotations
    @DeveloperApi()
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  28. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  29. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  30. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  31. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  32. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  33. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  34. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  35. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  36. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  37. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  38. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  39. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  40. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  41. final def notify(): Unit

    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  43. def queueStream[T](queue: Queue[RDD[T]], oneAtATime: Boolean, defaultRDD: RDD[T])(implicit arg0: ClassTag[T]): InputDStream[T]

    Definition Classes
    StreamingContext
  44. def queueStream[T](queue: Queue[RDD[T]], oneAtATime: Boolean)(implicit arg0: ClassTag[T]): InputDStream[T]

    Definition Classes
    StreamingContext
  45. def rawSocketStream[T](hostname: String, port: Int, storageLevel: StorageLevel)(implicit arg0: ClassTag[T]): ReceiverInputDStream[T]

    Definition Classes
    StreamingContext
  46. def receiverStream[T](receiver: Receiver[T])(implicit arg0: ClassTag[T]): ReceiverInputDStream[T]

    Definition Classes
    StreamingContext
  47. def registerCQ(queryStr: String): SchemaDStream

    Registers and executes given SQL query and returns SchemaDStream to consume the results

    Registers and executes given SQL query and returns SchemaDStream to consume the results

    queryStr
    returns

  48. def remember(duration: Duration): Unit

    Definition Classes
    StreamingContext
  49. val snappyContext: SnappyContext

  50. def socketStream[T](hostname: String, port: Int, converter: (InputStream) ⇒ Iterator[T], storageLevel: StorageLevel)(implicit arg0: ClassTag[T]): ReceiverInputDStream[T]

    Definition Classes
    StreamingContext
  51. def socketTextStream(hostname: String, port: Int, storageLevel: StorageLevel): ReceiverInputDStream[String]

    Definition Classes
    StreamingContext
  52. def sparkContext: SparkContext

    Definition Classes
    StreamingContext
  53. def sql(sqlText: String): DataFrame

  54. def start(): Unit

    Start the execution of the streams.

    Start the execution of the streams. Also registers population of AQP tables from stream tables if present.

    Definition Classes
    SnappyStreamingContext → StreamingContext
    Exceptions thrown
    IllegalStateException

    if the StreamingContext is already stopped

  55. def stop(stopSparkContext: Boolean, stopGracefully: Boolean): Unit

    Definition Classes
    SnappyStreamingContext → StreamingContext
  56. def stop(stopSparkContext: Boolean): Unit

    Definition Classes
    StreamingContext
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  58. def textFileStream(directory: String): DStream[String]

    Definition Classes
    StreamingContext
  59. def toString(): String

    Definition Classes
    AnyRef → Any
  60. def transform[T](dstreams: Seq[DStream[_]], transformFunc: (Seq[RDD[_]], Time) ⇒ RDD[T])(implicit arg0: ClassTag[T]): DStream[T]

    Definition Classes
    StreamingContext
  61. def union[T](streams: Seq[DStream[T]])(implicit arg0: ClassTag[T]): DStream[T]

    Definition Classes
    StreamingContext
  62. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def awaitTermination(timeout: Long): Unit

    Definition Classes
    StreamingContext
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0) Use awaitTerminationOrTimeout(Long) instead

  2. def networkStream[T](receiver: Receiver[T])(implicit arg0: ClassTag[T]): ReceiverInputDStream[T]

    Definition Classes
    StreamingContext
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use receiverStream

Inherited from Serializable

Inherited from Serializable

Inherited from StreamingContext

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped