Change Iterator interface to generator in ResultCollection