Stream - (Software|Library)

1 - About

Software, Library around the notion of stream

3 - Distributed stream processing

Distributed stream processing frameworks such as:

4 - IO - built-in streams

These streams are built into the application itself: IO - Standard streams (stdin, stdout, stderr)

5 - Example

5.1 - Node.js

Node.js stream uses the pipe function to connect the source to the destination


src.pipe(dst)

<wrap box>.pipe(dst)</note> returns <wrap box>dst</note> so that you can chain together multiple <wrap box>.pipe</note> calls together:


a.pipe(b).pipe(c).pipe(d)

which is the same as:


a.pipe(b);
b.pipe(c);
c.pipe(d);

which is the same as with the shell command-line pipe:


a | b | c | d

5.2 - Java

Java Stream (Map reduce implementation, only one source then)


int sum = widgets.stream()
                      .filter(b -> b.getColor() == RED)
                      .mapToInt(b -> b.getWeight())
                      .sum();

6 - Implementation

Stream - Interface

7 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap