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 java.lang.Object
implements SelectClauseElementCompiled

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


Constructor Summary
SelectClauseStreamCompiledSpec(java.lang.String streamName, java.lang.String optionalColumnName)
          Ctor.
 
Method Summary
 java.lang.String getOptionalName()
          Returns the column name.
 java.lang.Class getPropertyType()
          Returns property type.
 java.lang.String getStreamName()
          Returns the stream name (e.g.
 int getStreamNumber()
          Returns the stream number of the stream for the stream name.
 TableMetadata getTableMetadata()
           
 boolean isFragmentEvent()
          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.
 boolean isProperty()
          True if selecting from a property, false if not
 void setFragmentEvent(boolean taggedEvent)
          Sets a flag indicating whether the stream wildcard is for a tagged event in a pattern.
 void setProperty(boolean property, java.lang.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 setTableMetadata(TableMetadata tableMetadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectClauseStreamCompiledSpec

public SelectClauseStreamCompiledSpec(java.lang.String streamName,
                                      java.lang.String optionalColumnName)
Ctor.

Parameters:
streamName - is the stream name of the stream to select
optionalColumnName - is the column name
Method Detail

getStreamName

public java.lang.String getStreamName()
Returns the stream name (e.g. select streamName from MyEvent as streamName).

Returns:
name

getOptionalName

public java.lang.String getOptionalName()
Returns the column name.

Returns:
name

getStreamNumber

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

Returns:
stream number

isFragmentEvent

public boolean isFragmentEvent()
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

setFragmentEvent

public void setFragmentEvent(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,
                        java.lang.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 java.lang.Class getPropertyType()
Returns property type.

Returns:
property type

getTableMetadata

public TableMetadata getTableMetadata()

setTableMetadata

public void setTableMetadata(TableMetadata tableMetadata)

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com