Streaming iterable

Backported from an as-yet-unmerged PR to Apache Spark master