StreamingContext.
queueStream
Create an input stream from a queue of RDDs or list. In each batch, it will process either one or all of the RDDs returned by the queue.
Queue of RDDs
pick one rdd each time or pick all of them once.
pyspark.RDD
The default rdd if no more in rdds
Notes
Changes to the queue after the stream is created will not be recognized.