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

ReduceStateByKey state combiner function shouldn't use CombinableReduceFunction #51

Closed
vanekjar opened this issue Mar 20, 2017 · 0 comments
Assignees

Comments

@vanekjar
Copy link
Contributor

Currently the state combiner is type of CombinableReduceFunction

public State apply(Iterable<State> reducedStates)

It turned out runtime needs to choose which of given states will be the final result merged into. That means the function can't be commutative.

Proposed solution is to change the signature of the state combiner to something like

public void merge(State targetState, Iterable<State> mergedStates)

This task involves change of client API as well as modification of all executors relying on this API.

@xitep xitep self-assigned this Apr 3, 2017
xitep pushed a commit that referenced this issue Apr 4, 2017
xitep pushed a commit that referenced this issue Apr 4, 2017
xitep pushed a commit that referenced this issue Apr 4, 2017
xitep pushed a commit that referenced this issue Apr 4, 2017
xitep pushed a commit that referenced this issue Apr 4, 2017
xitep pushed a commit that referenced this issue Apr 4, 2017
xitep pushed a commit that referenced this issue Apr 6, 2017
xitep pushed a commit that referenced this issue Apr 6, 2017
xitep pushed a commit that referenced this issue Apr 6, 2017
xitep pushed a commit that referenced this issue Apr 6, 2017
xitep pushed a commit that referenced this issue Apr 8, 2017
xitep pushed a commit that referenced this issue Apr 8, 2017
xitep pushed a commit that referenced this issue Apr 8, 2017
xitep pushed a commit that referenced this issue Apr 8, 2017
@xitep xitep closed this as completed in #71 Apr 8, 2017
xitep added a commit that referenced this issue Apr 8, 2017
#51 [euphoria-core] Introduce StateMerger
mareksimunek pushed a commit that referenced this issue May 4, 2018
mareksimunek pushed a commit that referenced this issue May 4, 2018
mareksimunek pushed a commit that referenced this issue May 4, 2018
#51 [euphoria-core] Introduce StateMerger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants