Tag: Stream
Total: 14 Posts
Posts of Tag: Stream
Total: 14 Posts
Posts of Tag: Stream
Java 8 Streams: Definitive Guide to Parallel Streaming with parallel()
Parallel Streams in Java 8 Today, the Java Streams API is in extensive use, making Java more functional than ever. Thus, models like MapReduce have emerged for easier stream handling. Although these models mad...Learn MoreJavaStreamstreamsJava 8 Streams: Definitive Guide to findFirst() and findAny()
Introduction The findFirst() and findAny() methods are terminal operations (terminate and return results) of the Stream API. Yet, there is something special about them - they not only terminate a stream, but al...Learn MoreJavaStreamstreamsJava 8 Streams - Collect and Reverse Stream into List
Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn MoreJavaStreamstreamslistJava 8 Streams: Definitive Guide to flatMap()
Introduction Mapping elements from one collection to another, applying a transformative function between them is a fairly common and very powerful operation. Java's functional API supports both map() and flatMa...Learn MoreJavaStreamstreamsJava 8 Streams: Definitive Guide to partitioningBy()
Introduction A stream represents a sequence of elements and supports different kinds of operations that lead to the desired result. The source of a stream is usually a Collection or an Array, from which data is...Learn MoreJavaStreamstreamsJava 8 Streams: Definitive Guide to reduce()
Introduction The reduce() method is Java 8's answer to the need for a fold implementation in the Stream API. Folding is a very useful and common functional programming feature. It operates on a collection of e...Learn MoreJavaStreamstreamsJava 8 Streams: Definitive Guide to the filter() Method
Introduction The Java Streams API simplifies working with a collection of elements. Because streams turn these elements into a pipeline, you could test them using a set of conditions (known as predicates), befo...Learn MoreJavaStreamstreamsJava: Finding Duplicate Elements in a Stream
Java: Finding Duplicate Elements in a Stream Introduction Introduced in Java 8, the Stream API is commonly used for filtering, mapping and iterating over elements. When working with streams, one of the common t...Learn MoreJavaStreamstreamsIntroduction to Java 8 Streams
Introduction to Java 8 Streams Introduction The main subject of this article is advanced data processing topics using a new functionality added to Java 8 – The Stream API and the Collector API. To get the most ...Learn MoreJavaStreamstreamsSpring Cloud Stream with RabbitMQ: Message-Driven Microservices
Spring Cloud Stream with RabbitMQ: Message-Driven Microservices Overview In this article, we'll introduce you to Spring Cloud Stream, which is a framework for building message-driven microservice applications t...Learn MoreJavaSpringcloudmicroservicesStreamamqpIntroduction to Node.js Streams
Introduction to Node.js Streams Introduction Streams are a somewhat advanced concept to understand. So in this article, we will go along with some examples for a better understanding and introduce you to a few ...Learn MoreJavaScriptNodejsStreamstreamsGuide to Java Streams: forEach() with Examples
Guide to Java Streams: forEach() with Examples Introduction The forEach() method is part of the Stream interface and is used to execute a specified operation, defined by a Consumer. The Consumer interface repre...Learn MoreJavaStream