groupByKeyAndWindow
Return a new DStream by applying groupByKey
over a sliding window on this
DStream. Similar to DStream.groupByKey()
, but applies it over a sliding window. Hash partitioning is used to generate the RDDs with numPartitions
partitions.
Parameters
width of the window; must be a multiple of this DStream's batching interval
sliding interval of the window (i.e., the interval after which the new DStream will generate RDDs); must be a multiple of this DStream's batching interval
number of partitions of each RDD in the new DStream; if not specified then Spark's default number of partitions will be used
Create a new DStream by applying groupByKey
over a sliding window on this
DStream. Similar to DStream.groupByKey()
, but applies it over a sliding window.
Parameters
width of the window; must be a multiple of this DStream's batching interval
sliding interval of the window (i.e., the interval after which the new DStream will generate RDDs); must be a multiple of this DStream's batching interval
partitioner for controlling the partitioning of each RDD in the new DStream.