Github user zentol commented on the pull request: https://github.com/apache/flink/pull/202#issuecomment-76979731 yes they are implemented as they are for performance reasons. the python cogroup grouping logic is actually a direct port of the SortMergeCoGroupIterator. it also makes things a bit simpler since you can work on the assumption that an operators function is not called more than once. if, on the java side, hasNext() returns false we know that we processed all input data, something you usually can only say when close() was called. the coGroupPython* stuiff is generic, will try to come up with a more suitable name.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---