title: Can we define batches on basis records rather than time(interval) in spark streaming
body: <p>Is there a way to define batch definition in spark streaming such that, each RDD represent a record rather than data of a time interval.</p>