Package com.lumiomedical.flow.stream
Interface StreamOut<O>
- All Superinterfaces:
Comparable<Node>
,Node
- All Known Implementing Classes:
StreamGenerator
,StreamJoin
,StreamPipe
,StreamSource
public interface StreamOut<O> extends Node
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/12/01
-
Method Summary
Modifier and Type Method Description <N> StreamAccumulator<O,N>
accumulate(Accumulator<O,N> accumulator)
StreamSink<O>
into(Loader<O> loader)
Binds the current node into a Loader, resulting in a new StreamSink node.<NO> StreamPipe<O,NO>
into(Transformer<O,NO> transformer)
Binds the current node into a Transformer, resulting in a new StreamPipe node.<JI, JO> StreamJoin<O,JI,JO>
join(FlowOut<JI> input, BiTransformer<O,JI,JO> transformer)
Joins the current stream node with another non-stream flow using a bi-transformer join function.default StreamSink<O>
sink(Loader<O> loader)
Synonymous with into(Loader), has the advantage of not allowing ambiguous lambdas.Methods inherited from interface com.lumiomedical.flow.node.Node
after, after, compareTo, getDownstream, getRequiredBy, getRequirements, getUid, getUpstream
-
Method Details
-
into
Binds the current node into a Transformer, resulting in a new StreamPipe node.- Type Parameters:
NO
- Output type of the pipe node- Parameters:
transformer
- a Transformer actor- Returns:
- the resulting StreamPipe node
-
into
Binds the current node into a Loader, resulting in a new StreamSink node.- Parameters:
loader
- a Loader actor- Returns:
- the resulting StreamSink node
-
sink
Synonymous with into(Loader), has the advantage of not allowing ambiguous lambdas.- See Also:
into(Loader)
-
join
Joins the current stream node with another non-stream flow using a bi-transformer join function.- Type Parameters:
JI
- Input type from another flowJO
- Output type of the joined flow- Parameters:
input
- Flow with which to join the current flow.transformer
- A bi-transformer function for performing the join.- Returns:
-
accumulate
- Type Parameters:
N
-- Parameters:
accumulator
-- Returns:
-