public interface HasOffsetRanges
OffsetRanges. This can be used to 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
...
}
| Modifier and Type | Method and Description |
|---|---|
OffsetRange[] |
offsetRanges() |
OffsetRange[] offsetRanges()