У нас вы можете посмотреть бесплатно Deep Dive into Gatherers - JEP Cafe #24 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This JEP Café takes you through everything you can do with Gatherers, added to JDK 24 and available in JDK 25, the version you are going to use for your business applications. Along with many examples, it shows you the basics of mapping and filtering, how you can create and manage an internal mutable state to limit your stream, and sort them. It shows you how you can properly interrupt a stream when you need, and how you can avoid resource leaking and race conditions in the use of the API. It also shows you how you can leverage some available optimizations by declaring your integrators greedy when you can. One of the greatest features of the Stream API is that you can decide to go parallel. So parallel Gatherers are covered, along with the use of non-parallel Gatherers in parallel streams. At the end of this video you will know eveything you need to write efficient and correct Gatherers, but also when you should use them, and when you should stay away from them. You can watch all the episodes on the JEP Café series here: • JEP Café 00:00 Intro 01:22 Modeling intermediate operations with Gatherers 04:36 Gatherer interface, gather() method and Gatherers factor class 05:43 Writing a mapping Gatherer 10:14 Writing a filtering Gatherer 11:50 Writing a first, simple, but buggy flat-mapper 13:12 Exploring the Downstream object 16:28 Checking the rejecting state of a Downstream 18:45 Warning about the non-thread safety of Downstream 20:07 Checking the rejecting state for each push in the flat-mapping Gatherer 22:38 Closing properly your stream in the flat-mapping Gatherer 24:00 Fixing the race condition in the flat-mapping Gatherer 25:16 Protecing the flat-mapping Gatherer against NullPointerException 26:05 Writing a skipping Gatherer with an internal mutable state 29:21 Writing a limiting Gatherer 29:40 Writing a distinct Gatherer with an internal HashSet 30:30 Declaring the distinct Gatherer a Greedy Gatherer 32:26 Writing a sorting Gatherer with an internal TreeSet and a Finisher 35:06 Checking the rejecting state of a Downstream in a Finisher 36:53 Using a sequential Gatherer in a parallel stream 40:59 Creating parallel Gatherers with an internal state and a Combiner 44:24 Chaining Gatherer with the andThen() method 45:45 Using mapConcurrent() from the Gatherers factory class 49:12 That's it for today, talk to you soon! ⎯⎯⎯⎯⎯⎯ Resources ⎯⎯⎯⎯⎯⎯ ◦ Previous episode ➱ • Better Java Streams with Gatherers - JEP C... ◦ The JEP 485 about Gatherers ➱ https://openjdk.org/jeps/485 ◦ Nicolai on Gatherers ➱ • Better Java Streams with Gatherers - Insid... and • Implementing New Java Stream Operations ◦ Dev.java ➱ https://dev.java ◦ Inside.java ➱ https://inside.java ◦ JDK 25 ➱ https://openjdk.org/projects/jdk/25 ◦ OpenJDK ➱ https://openjdk.org ◦ Oracle Java ➱ https://www.oracle.com/java/