com.espertech.esper.epl.spec
Class SelectClauseStreamCompiledSpec

java.lang.Object
  extended by com.espertech.esper.epl.spec.SelectClauseStreamCompiledSpec
All Implemented Interfaces:
SelectClauseElementCompiled

public class SelectClauseStreamCompiledSpec
extends Object
implements SelectClauseElementCompiled

Mirror class to SelectClauseStreamRawSpec but added the stream number for the alias.


Constructor Summary
SelectClauseStreamCompiledSpec(String streamAliasName, String optionalAliasName)
          Ctor.
 
Method Summary
 String getOptionalAliasName()
          Returns the column alias (e.g.
 String getStreamAliasName()
          Returns the stream alias (e.g.
 int getStreamNumber()
          Returns the stream number of the stream for the stream alias.
 boolean isTaggedEvent()
          Returns true to indicate that we are meaning to select a tagged event in a pattern, or false if selecting an event from a stream.
 void setStreamNumber(int streamNumber)
          Sets the stream number of the selected stream within the context of the from-clause.
 void setTaggedEvent(boolean taggedEvent)
          Sets a flag indicating whether the stream wildcard is for a tagged event in a pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectClauseStreamCompiledSpec

public SelectClauseStreamCompiledSpec(String streamAliasName,
                                      String optionalAliasName)
Ctor.

Parameters:
streamAliasName - is the stream alias of the stream to select
optionalAliasName - is the column alias
Method Detail

getStreamAliasName

public String getStreamAliasName()
Returns the stream alias (e.g. select streamAlias from MyEvent as streamAlias).

Returns:
alias

getOptionalAliasName

public String getOptionalAliasName()
Returns the column alias (e.g. select streamAlias as mycol from MyEvent as streamAlias).

Returns:
alias

getStreamNumber

public int getStreamNumber()
Returns the stream number of the stream for the stream alias.

Returns:
stream number

isTaggedEvent

public boolean isTaggedEvent()
Returns true to indicate that we are meaning to select a tagged event in a pattern, or false if selecting an event from a stream.

Returns:
true for tagged event in pattern, false for stream

setStreamNumber

public void setStreamNumber(int streamNumber)
Sets the stream number of the selected stream within the context of the from-clause.

Parameters:
streamNumber - to set

setTaggedEvent

public void setTaggedEvent(boolean taggedEvent)
Sets a flag indicating whether the stream wildcard is for a tagged event in a pattern.

Parameters:
taggedEvent - in pattern

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com