Github user rmetzger commented on the pull request:
https://github.com/apache/incubator-flink/pull/84#issuecomment-50512992
Very nice change!
While reading through the examples, I was wondering if it would make sense
to throw an exception if the user is trying to create a second iterator(). Or
maybe an exception if hasNext() == false and the user wants to create a second
iterator.
I don't know if a) there are usecases for creating two iterators
and b) users will be confused by the behavior (similar to the mutable
objects)
In addition to that, we should copy the nicely written comment of the pull
request into the documentation.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---