public interface StreamLookupEnvironment
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
lookupChannelForLabelOrModule(java.lang.String streamName,
java.lang.String labelOrModuleName)
Look up an existing label or module name.
|
StreamNode |
lookupStream(java.lang.String name)
Look up a previously defined stream by name, returns the parsed AST for it.
|
StreamNode lookupStream(java.lang.String name)
name - name of the streamjava.lang.String lookupChannelForLabelOrModule(java.lang.String streamName,
java.lang.String labelOrModuleName)
mystream = http | foo | file
tap mystream.foo > count
will cause a lookup for stream 'mystream' module 'foo' when the tap is being resolved. The return value would be
'mystream.1' (The output channel for a module is based on the index of the module within the stream, starting at
0).streamName - the name of the streamlabelOrModuleName - a label or name of a module