org.apache.spark.streaming.kafka
:: Experimental :: Represents any object that has a collection of OffsetRanges. This can be used access the offset ranges in RDDs generated by the direct Kafka DStream (see KafkaUtils.createDirectStream()).
KafkaUtils.createDirectStream(...).foreachRDD { rdd => val offsetRanges = rdd.asInstanceOf[HasOffsetRanges].offsetRanges ... }
:: Experimental :: Represents any object that has a collection of OffsetRanges. This can be used access the offset ranges in RDDs generated by the direct Kafka DStream (see KafkaUtils.createDirectStream()).