Package com.lumiomedical.flow
Class Join<I1,I2,O>
java.lang.Object
com.lumiomedical.flow.node.AbstractNode
com.lumiomedical.flow.node.BiNode
com.lumiomedical.flow.Join<I1,I2,O>
- All Implemented Interfaces:
FlowOut<O>
,Node
,Comparable<Node>
public class Join<I1,I2,O> extends BiNode implements FlowOut<O>
Joins are a point of passage joining two upstream branchs of a DAG.
They accept two inputs from upstream, produce a joined output using a provided BiTransformer implementation, then pass it downstream.
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/03/01
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Recipient<O>
collect(String name)
Join<I1,I2,O>
drift(Loader<O> loader)
BiTransformer<I1,I2,O>
getActor()
Sink<O>
into(Loader<O> loader)
Binds the current node into a Loader, resulting in a new Sink node.<N> Pipe<O,N>
into(Transformer<O,N> transformer)
Binds the current node into a Transformer, resulting in a new Pipe node.<JI, JO> Join<O,JI,JO>
join(FlowOut<JI> input, BiTransformer<O,JI,JO> transformer)
Joins the current node with another flow using a bi-transformer join function.Join<I1,I2,O>
sample(String name)
<N> StreamGenerator<O,N>
stream(Function<O,Generator<N>> generatorSupplier)
Initiates a stream from the current node, results in a new StreamGenerator node.Methods inherited from class com.lumiomedical.flow.node.BiNode
bind, getUpstream, getUpstream1, getUpstream2
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
-
Join
- Parameters:
input1
-input2
-actor
-
-
-
Method Details
-
getActor
- Returns:
-
into
Description copied from interface:FlowOut
Binds the current node into a Transformer, resulting in a new Pipe node. -
into
Description copied from interface:FlowOut
Binds the current node into a Loader, resulting in a new Sink node. -
join
Description copied from interface:FlowOut
Joins the current node with another flow using a bi-transformer join function. -
stream
Description copied from interface:FlowOut
Initiates a stream from the current node, results in a new StreamGenerator node. -
drift
- Parameters:
loader
-- Returns:
-
collect
-
sample
- Parameters:
name
-- Returns:
-