[SPARK-4964] [Streaming] Exactly-once semantics for Kafka

The code for actually using the rdd and committing offsets transactionally is quite awkward without that method, see

https://github.com/koeninger/kafka-exactly-once/commit/cb812c918f724b3ae5e57c66618276b6947ed30d