~/talk

Streams in the Wild

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

Live coding shows how to implement custom Spliterators to feed Stream pipelines: a no-op, a filtering and a mapping Spliterator plus a repeating splitter that duplicates elements. Code demonstrates implementing tryAdvance/trySplit/estimateSize and manipulating characteristics bits, handling sorted streams by supplying comparators, avoiding estimateSize overflow, and ensuring onClose propagation to upstream resources. Live examples run and print expected results; cautions cover calling the consumer only once, parallel thread-safety, and when parallelism harms performance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:18Stream API
  3. 1:15Who am I
  4. 1:30Questions
  5. 2:04Bullet Points
  6. 3:37StreamFactory
  7. 5:17SplitOrator
  8. 6:33Create another stream
  9. 16:07Filtering splitter method
  10. 18:54Adaptive filtering
  11. 22:30Repeating splitter
  12. 27:50Illegal state exception
  13. 30:31Mapping splitter
  14. 33:10Calling the closing method
  15. 36:10Calling streams on resources
~/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.