T - Type of the tuple.public class Split<T> extends AbstractOplet<T,T> implements Consumer<T>
| Constructor and Description |
|---|
Split(ToIntFunction<T> splitter) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T tuple)
Apply the function to
value. |
void |
close() |
java.util.List<Consumer<T>> |
getInputs()
Get the input stream data handlers for this oplet.
|
void |
initialize(OpletContext<T,T> context)
Initialize the oplet.
|
void |
start()
Start the oplet.
|
getOpletContextpublic Split(ToIntFunction<T> splitter)
public void initialize(OpletContext<T,T> context)
Opletinitialize in interface Oplet<T,T>initialize in class AbstractOplet<T,T>public void start()
Opletpublic java.util.List<Consumer<T>> getInputs()
Opletpublic void accept(T tuple)
Consumervalue.public void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.ExceptionCopyright IBM 2015,2016 - 2f6ad0e-20160307-0902