(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
We need to determine which iterator is behind since we are assuming sorted order.
We need to determine which iterator is behind since we are assuming sorted order. We then pull all the elements from that iterator as long as the key matches, then pull all the elements from the right iterator.
An iterator that preforms a mergeJoin between two ordered iterators joining on a given key. The input iterators are assumed to be ordered so we can do a greedy merge join. Since our iterators are lazy we cannot check that they are ordered before starting.
Example: