rewindable iterator for onlinerdd.iterator method