JEP 485: Stream Gatherers

Most likely those will be created by library creators and not end user-developers but still you should know your tools

Parallel Gatherers

Check presentations from Java channel - its hard - leave it library creators

RUN:

StreamGatherersIntro

It shows shortcomings of flatMap, specific goal of multiMap and general gatherer mechanism

RUN :

StreamGatherersParsingExample

Another example of have gatherers simplify pipeline

RUN :

ReimplementPopularOperations

Illustration how to use gatherers to implement map,multiMap and stateful limit.

RUN:

BuildInGatherers

To see what gatherers are available in : java.util.stream.Gatherers

RUN:

GathererStreamRejectionDemo

To see how to pass rejection signal between stream phases

Last updated