T
- Type of the tuple.public class Isolate<T> extends Pipe<T,T>
Constructor and Description |
---|
Isolate()
Create a new Isolate oplet.
|
Isolate(int queueCapacity)
Create a new Isolate oplet.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(T tuple)
Apply the function to
value . |
void |
close() |
void |
initialize(OpletContext<T,T> context)
Initialize the oplet.
|
void |
start()
Start the oplet.
|
getDestination, getInputs, submit
getOpletContext
public Isolate()
public Isolate(int queueCapacity)
queueCapacity
- size of the queue between the input stream
and the output stream.
accept
blocks when the queue is full.public void initialize(OpletContext<T,T> context)
Oplet
initialize
in interface Oplet<T,T>
initialize
in class Pipe<T,T>
context
- the OpletContextpublic void start()
Oplet
public void accept(T tuple)
Consumer
value
.tuple
- Value function is applied to.public void close() throws java.lang.Exception
java.lang.Exception
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641