Level Up Your Java Streams with Gatherers
summary
Shows how Java 24 Stream Gatherers let streams take mutable state and emit zero, one or many outputs so you can compute hourly averages from per-minute sensor data, running and sliding averages, or a zip-with-index; five built-ins (window fixed, window sliding, scan, fold, mapConcurrent) arrive ready to use, they preserve parallel/virtual-thread behavior but break the debugger’s element trace, and the demo builds a sequential zip-with-index gatherer that works and handles finisher/combiner correctly.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 3:13Java streams features
- 8:53Standard stream limits
- 10:17Stream gatherers intro
- 12:27Window gatherers fixed sliding
- 18:45Scan fold gatherers explained
- 24:43Map concurrent gatherer
- 27:32Custom gatherers implementation
- 32:14Zip with index gatherer
- 36:50Advanced gatherer use cases
- 37:33Summary
- 38:13Q&A
related talks
44mLevel Up Your Java Streams with Gatherers
40mStream Gathers - The biggest change to Java Streams since 10 years
46mJEP 461: Breathing New Life into Java Stream API
43mStream Gatherers - Deep Dive with the Expert
45mStream Gatherers
45mHunting with Stream Gatherers
48mWe Are All Gathered — We Are All to Gather
51mHunting with Stream Gatherers
