Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
8.10.1
-
None
-
New
Description
The usage of MultiCollector sometimes is very convenient along with CollectorManagers instances (as an alternative to MultiCollectorManager), for example:
class SomeCollectorManager implements CollectorManager<Collector, ?> { @Override public Collector newCollector() throws IOException { return MultiCollector.wrap(new Collector1(), new Collector2(), ...); } @Override public List<Integer> reduce(Collection<Collector> collectors) throws IOException { return ...; } }
Unfortunately, the reduce() phase is lacking the access to MultiCollector::getCollectors method, since it is package protected at the moment. Making MultiCollector::getCollectors public would make it convenient to use MultiCollector + CollectorManager and implement the reduce phase by accessing individual collectors.
Attachments
Issue Links
- links to