Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Singular() method to force operation to be not partitioned #97

Open
asubb opened this issue Jan 5, 2021 · 0 comments
Open

Singular() method to force operation to be not partitioned #97

asubb opened this issue Jan 5, 2021 · 0 comments
Labels
enhancement New feature or request lib research
Milestone

Comments

@asubb
Copy link
Member

asubb commented Jan 5, 2021

Sometimes it is really needed to have a stateful map (or any other) operation, in this case, it can't be partitioned (automatically), and needed to be marked as SinglePartitionBean. Right now you may use flatMap() returning singleton list, but that way is hacky and non-consistent.

Proposed signature:

stream.map { }.singular()
@asubb asubb added enhancement New feature or request lib research labels Jan 5, 2021
@asubb asubb added this to the 0.4.0 milestone Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lib research
Projects
None yet
Development

No branches or pull requests

1 participant