groupingBy(Function classifier) Uses the classifier function to make a classification mapping
24
groupingBy(Function)
25
Concurrent Collection
26
Writing a Collector
27
Sources - parallel streams
28
Visualizing Stream Operations
29
What Does Parallel-Ready Mean?
30
So, Is Your Code Parallel-Ready?
31
Using Streams Sanely Rules in the JavaDoc for java.util.stream
32
Conclusion
Description:
Explore parallel-ready Java code and managing mutation in imperative languages in this 54-minute conference talk from PhillyETE 2015. Dive into the Collectors API introduced in Java 8, which enables concurrent access to non-threadsafe mutable collections, offering developers "free" parallelism. Learn how to adapt your thinking and follow simple rules to make your code parallel-ready. Discover the Lambda FAQ, Stream API concepts, and the pipes and filters pattern in Java. Examine sequential streams, including sources, intermediate operations like filter(), map(), and flatMap(), and sinks. Understand parallelism, automated resource management, and retooling techniques. Explore examples of summation, reduction of primitives and mutable objects, and predefined Collectors like toMap() and groupingBy(). Learn about concurrent collections, writing custom Collectors, and visualizing stream operations. Gain insights into what makes code parallel-ready and how to use streams effectively by following JavaDoc rules for java.util.stream.
Read more
Parallel-Ready Java Code: Managing Mutation in Concurrent Systems - PhillyETE 2015