public class StreamerStageWrapper extends Object implements StreamerStage<Object>
| Constructor and Description |
|---|
StreamerStageWrapper(StreamerStage<Object> delegate,
int idx) |
| Modifier and Type | Method and Description |
|---|---|
int |
index() |
String |
name()
Gets streamer stage name.
|
String |
nextStageName() |
void |
nextStageName(String nextStageName) |
Map<String,Collection<?>> |
run(StreamerContext ctx,
Collection<Object> evts)
Stage execution routine.
|
String |
toString() |
StreamerStage |
unwrap() |
public StreamerStageWrapper(StreamerStage<Object> delegate, int idx)
delegate - Delegate stage.idx - Index.public int index()
@Nullable public String nextStageName()
null if this is the last stage.public void nextStageName(String nextStageName)
nextStageName - Next stage name in pipeline.public String name()
name in interface StreamerStage<Object>public Map<String,Collection<?>> run(StreamerContext ctx, Collection<Object> evts)
StreamerEventRouter
which will determine on which node the stage should be executed.
Generally, event stage execution graph if fully controlled by return values of
this method, while node execution graph is controlled by
StreamerEventRouter.route(StreamerContext, String, Object) method.
run in interface StreamerStage<Object>ctx - Streamer context.evts - Input events.public StreamerStage unwrap()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015