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
BufferedIterator
in Scala, but itstakeWhile
method properly doesn't consume the next element.