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.
|
getOpletContext
public Split(ToIntFunction<T> splitter)
public void initialize(OpletContext<T,T> context)
Oplet
initialize
in interface Oplet<T,T>
initialize
in class AbstractOplet<T,T>
public void start()
Oplet
public java.util.List<Consumer<T>> getInputs()
Oplet
public void accept(T tuple)
Consumer
value
.public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception
Copyright IBM 2015,2016 - 2f6ad0e-20160307-0902