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

Hazelcast should provide an abstract Mapper implementation which invokes the Supplier given to Aggregation#getMapper() #7477

messo opened this issue Feb 7, 2016 · 1 comment


None yet
5 participants
Copy link

commented Feb 7, 2016

Currently it is very cumbersome to write an implementation for Aggregation interface, since the Mapper interface isn't ready to accept the Supplier passed to the mapper implementation used in aggregations.

SupplierConsumingMapper shows a way to do it, but SimpleEntry is not part of the public API.

A proposal has been made by @jerrinot in #7412 (comment). Basically there could be an AbstractSupplyingMapper which takes the Supplier instance given to the aggregation, makes a Map.Entry from the key-value pair given to the Mapper, invokes the supply method, and leaves the actual emitting to the context to the implementation.


This comment has been minimized.

Copy link

commented Dec 20, 2016

Since 3.8 the Map-Reduce aggregations are deprecated. Use the Fast-Aggregations instead (plz mind it's a link to Early-Access docs):

@tombujok tombujok closed this Dec 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.