I
- Data container type for input tuples.O
- Data container type for output tuples.public abstract class Pipe<I,O> extends AbstractOplet<I,O> implements Consumer<I>
Constructor and Description |
---|
Pipe() |
Modifier and Type | Method and Description |
---|---|
protected Consumer<O> |
getDestination() |
java.util.List<Consumer<I>> |
getInputs()
Get the input stream data handlers for this oplet.
|
void |
initialize(OpletContext<I,O> context)
Initialize the oplet.
|
void |
start()
Start the oplet.
|
protected void |
submit(O tuple)
Submit a tuple to single output.
|
getOpletContext
public void initialize(OpletContext<I,O> context)
Oplet
initialize
in interface Oplet<I,O>
initialize
in class AbstractOplet<I,O>
context
- the OpletContextpublic void start()
Oplet
public java.util.List<Consumer<I>> getInputs()
Oplet
protected void submit(O tuple)
tuple
- Tuple to be submitted.Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641