~/talk

Journey’s End: Collection and Reduction in the Streams API

Talkat Oracle OpenWorld 2017 · 2017-10-01..10-05· [java]
slides:none on file

Shows how the Streams Collectors replace unsafe mutable accumulators with a supplier/accumulator/combiner trio, walks the Collectors factory methods (toList, toSet, toMap, joining, counting, averagingInt, summarizingDouble), and demonstrates composition like groupingBy with downstream collector to count, average or join names per key. Presents a custom, parallel-ready collector that builds Oprah book shelf cumulative offsets (no shared accumulator) and notes performance hotspots: map resizing and combiner merges are expensive but the approach works.

AI-written summary · about

  1. 0:00Introduction to collectors
  2. 2:31Stream fundamentals
  3. 6:10Short-circuiting operations
  4. 12:41Reduction explained
  5. 20:22Reduction with identity
  6. 29:19Predefined collectors
  7. 37:11Custom collections
  8. 43:02Grouping and partitioning
  9. 52:33Thread-safe collection
  10. 1:10:29Practical examples
  11. 1:45:12Writing custom collectors
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.