Unfortunately, the iterator() is not a solution if you want to apply a filter, see Getting all items with filter?
iterator()