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.
 Class getPropertyType()
          Returns property type.
 String getStreamAliasName()
          Returns the stream alias (e.g.
 int getStreamNumber()
          Returns the stream number of the stream for the stream alias.
 boolean isProperty()
          True if selecting from a property, false if not
 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 setProperty(boolean property, Class propertyType)
          Sets an indicate that a property was selected with wildcard.
 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

setProperty

public void setProperty(boolean property,
                        Class propertyType)
Sets an indicate that a property was selected with wildcard.

Parameters:
property - selected
propertyType - the return type

isProperty

public boolean isProperty()
True if selecting from a property, false if not

Returns:
indicator whether property or not

getPropertyType

public Class getPropertyType()
Returns property type.

Returns:
property type

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