Package com.lumiomedical.flow.stream
Class StreamPipe<I,O>
java.lang.Object
com.lumiomedical.flow.node.AbstractNode
com.lumiomedical.flow.node.SimpleNode<Transformer<I,O>>
com.lumiomedical.flow.stream.StreamPipe<I,O>
- All Implemented Interfaces:
Node
,StreamIn<I>
,StreamNode
,StreamOut<O>
,Comparable<Node>
public class StreamPipe<I,O> extends SimpleNode<Transformer<I,O>> implements StreamIn<I>, StreamOut<O>, StreamNode
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/12/01
-
Constructor Summary
Constructors Constructor Description StreamPipe(Transformer<I,O> actor)
-
Method Summary
Modifier and Type Method Description <N> StreamAccumulator<O,N>
accumulate(Accumulator<O,N> accumulator)
StreamPipe<I,O>
drift(Loader<O> loader)
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.Methods inherited from class com.lumiomedical.flow.node.SimpleNode
bind, getActor, getSimpleUpstream, getUpstream
Methods inherited from class com.lumiomedical.flow.node.AbstractNode
after, after, equals, getDownstream, getRequiredBy, getRequirements, getUid, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.lumiomedical.flow.node.Node
after, after, compareTo, getDownstream, getRequiredBy, getRequirements, getUid, getUpstream
-
Constructor Details
-
StreamPipe
- Parameters:
actor
-
-
-
Method Details
-
into
Description copied from interface:StreamOut
Binds the current node into a Transformer, resulting in a new StreamPipe node. -
into
Description copied from interface:StreamOut
Binds the current node into a Loader, resulting in a new StreamSink node. -
join
public <JI, JO> StreamJoin<O,JI,JO> join(FlowOut<JI> input, BiTransformer<O,JI,JO> transformer)Description copied from interface:StreamOut
Joins the current stream node with another non-stream flow using a bi-transformer join function. -
accumulate
- Specified by:
accumulate
in interfaceStreamOut<I>
- Returns:
-
drift
- Parameters:
loader
-- Returns:
-