com.datastax.spark.connector.util
Serves the same purpose as BufferedIterator in Scala, but its takeWhile method properly doesn't consume the next element.
BufferedIterator
takeWhile
(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
collect
toSeq
Serves the same purpose as
BufferedIteratorin Scala, but itstakeWhilemethod properly doesn't consume the next element.