The Java API returns arrays, and I just used that. Iterator might be better after the filter is applied.