Returns a collector that applies the given mapper function to the elements, and performs a reduction operation on the results using the downstream collector.
mapper |
a mapper function |
downstream |
a downstream collector |
the collector implementation |