~/talk

Collectors in the wild!

Talkat Devoxx Belgium 2017 · 2017-11-06..11-10· [java]
slides:none on file

Collector API in JDK 8 gets used to replace many stream terminal patterns by composable collectors, with concrete demos on a 120,000‑line article file: groupingBy + downstream builds histograms, Collectors.counting and summarizingInt compute counts/means in one pass, code finds year 2004 has ~7,600 articles and one author ~1,400 articles, pair counting finds duos >200. Implements a custom filtering collector, shows Optional.stream to drop empties, and points out Java 9 adds collectors for filtering/flatMapping; examples and utilities land on GitHub.

AI-written summary · about

  1. 0:00Start
  2. 0:40Why Should We Be Interested in Characters
  3. 5:36Overview of the Stream Api
  4. 6:01Collector Api
  5. 8:19Mapping Operation
  6. 8:30Filtering Operation
  7. 8:50Flattening Operation with the Flat Map Method
  8. 11:19Stateless Operation
  9. 13:26How Can I Tell an Intermediate Operation from a Terminal Operation
  10. 16:08Collect Method
  11. 16:49Joining Collector
  12. 27:23Grouping by Character
  13. 48:00Parallelization
  14. 51:46String Builder
  15. 55:25Method Extraction
  16. 1:17:39Collector Interface
  17. 1:25:55Intermediate Operation
  18. 1:28:16Demo
  19. 1:52:26Optional Objects
  20. 2:03:28Characteristics of an Optional
~/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.