Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use value object for spout items #1342

Merged
merged 1 commit into from
Jul 10, 2022
Merged

Use value object for spout items #1342

merged 1 commit into from
Jul 10, 2022

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented Jul 9, 2022

Previously, spouts would implement Iterator interface and individual items’ data could be accessed by iterating the spout object and calling its methods.

With this change, each spout has getItems() method that returns an Iterator of Item objects for each item.

This is much cleaner design and having separate object for each source item allows for handling them independently even after iteration switched to a next step.

Previously, spouts would implement Iterator interface
and individual items’ data could be accessed by iterating
the spout object and calling its methods.

With this change, each spout has getItems() method that
returns an Iterator of Item objects for each item.

This is much cleaner design and having separate object
for each source item allows for handling them independently
even after iteration switched to a next step.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant