In this section, we will discuss the various APIs and operations exposed by Spark Streaming.
Packaging structure of Spark Streaming
Spark Streaming APIs
All Spark Streaming classes are packaged in the org.apache.spark.streaming.* package. Spark Streaming defines two core classes which also provide access to all Spark Streaming functionality, such as StreamingContext.scala and DStream.scala.
Let's examine the following functions and roles performed by these classes:
- org.apache.spark.streaming.StreamingContext: This is an entry point to Spark Streaming functionality. It defines methods for creating the objects of DStream.scala and also for starting and stopping the Spark Streaming jobs.
- org.apache.spark.streaming.dstream...