public abstract class Source<T> extends AbstractOplet<java.lang.Void,T>
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
protected Consumer<T> |
getDestination() |
java.util.List<Consumer<java.lang.Void>> |
getInputs()
Get the input stream data handlers for this oplet.
|
void |
initialize(OpletContext<java.lang.Void,T> context)
Initialize the oplet.
|
protected void |
submit(T tuple)
Submit a tuple to single output.
|
getOpletContext
public void initialize(OpletContext<java.lang.Void,T> context)
Oplet
initialize
in interface Oplet<java.lang.Void,T>
initialize
in class AbstractOplet<java.lang.Void,T>
context
- the OpletContextprotected void submit(T tuple)
tuple
- Tuple to be submitted.public final java.util.List<Consumer<java.lang.Void>> getInputs()
Oplet
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641