T
- Type of the tuple.public class StreamScope<T> extends Peek<T>
This class exists so that we can register a StreamScope at runtime with jobId info (lacking a Function level initialize(FuntionScope) mechanism) and so the Console can differentiate a StreamScope peek from any other random Peek oplet use. Remove this oplet subclass if/when it's no longer needed to achieve the above purpose.
Constructor and Description |
---|
StreamScope(Consumer<T> streamScope)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(OpletContext<T,T> context)
Initialize the oplet.
|
getDestination, getInputs, start, submit
getOpletContext
public void initialize(OpletContext<T,T> context)
Oplet
initialize
in interface Oplet<T,T>
initialize
in class Pipe<T,T>
context
- the OpletContextCopyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641