Table of Contents

About

A pipeline is a query for a stream.

A stream pipeline can be viewed as a query on the stream source.

Data Processing - (Pipeline | Compose | Chain)

A stream pipeline consists of:

  • a source (which might be an array, a collection, a generator function, an I/O channel, etc),
  • zero or more intermediate operations (which transform a stream into another stream, such as filter(Predicate)),
  • and a terminal operation (which produces a result).

Type of pipeline

Functional

In functional programming, Streams are lazy; computation on the source data is only performed when the terminal operation is initiated, and source elements are consumed only as needed.