Gatherers is a powerful extension of the Stream API which was initially introduced as a preview feature in JDK 22, and became a standard as of yesterday. I tried to explain how it supports the features that intermediate operations have, and how they can be used.
#java #streamAPI #streamGatherers
https://foojay.io/today/introduction-to-intermediate-operations-modeler-stream-gatherers/
Introduction to intermediate operations modeler: Stream Gatherers

Gatherers is a new and powerful API that enhances the Stream API by modeling intermediate operations and allowing the definition of custom intermediate operations.

foojay
JDK22 - Gatherer

Overview If you take a look into JDK-22, you will find a very interesting thing, which is called 461: Stream Gatherers (Preview). Those Gatherers are a way to …

JEP 461, Stream Gatherers (Preview), has been completed for #JDK22.

This JEP proposes to enhance the #StreamAPI to support custom intermediate operations.

"This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations."

More on #InfoQ: https://bit.ly/3NzNbuP

#Java #SoftwareDevelopment

Stream API Evolution: a Closer Look at JEP 461's Stream Gatherers

After its review concluded, JEP 461, Stream Gatherers (Preview), has been completed for JDK 22. This JEP proposes to enhance the Stream API to support custom intermediate operations. "This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations."

InfoQ

@okumurakengo

> Stream api? 何かわからん

#StreamAPI のサーバー側はこんな #PHP コードでも機能するようです。

https://github.com/KEINOS/Dockerfile_of_HTTP-Stream-API/blob/master/src/router.php#L14-L27

上記は、接続すると 0-9 までをカウントアップするだけのストリーミング API です。

クライアント側の HTML はこんな感じ。

https://github.com/KEINOS/Dockerfile_of_HTTP-Stream-API/blob/master/client_local.html

何かのご参考になれば。

KEINOS/Dockerfile_of_HTTP-Stream-API

🚧 Simple HTTP Stream API Server in PHP. Contribute to KEINOS/Dockerfile_of_HTTP-Stream-API development by creating an account on GitHub.

以下のタグの Qiita 記事がこの1時間に投稿されました。
➖➖➖➖➖➖➖➖➖➖
#mysql
#mysql57
#myvisualstudiostudy
#nodejs
#php
#python
#rds
#react
#react_native
#realsense
#salesforce
#scraping
#slack
#slackbot
#sourcetree
#streamapi
#tomoyo
#tomoyolinux
#tool
#ubuntu1604
#unity
#visualstudio
#vpc
#webaudioapi
#webgl20
#windows10
#デザイン
#機械学習
#正規
➖➖➖➖➖➖➖➖➖➖
各 Qiita 記事へのリンクは、このトゥートのスレッドに「非公開」もしくは「未収載」でトゥートされています。
スレッドを見るにはこのトゥートをクリックしてください。