com.espertech.esper.client.soda
Class SelectClauseStreamWildcard

java.lang.Object
  extended by com.espertech.esper.client.soda.SelectClauseStreamWildcard
All Implemented Interfaces:
SelectClauseElement, java.io.Serializable

public class SelectClauseStreamWildcard
extends java.lang.Object
implements SelectClauseElement

For use in a select clause, this element in a select clause defines that for a given stream we want to select the underlying type. Most often used in joins to select wildcard from one of the joined streams.

For example:

select streamOne.* from StreamOne as streamOne, StreamTwo as streamTwo

See Also:
Serialized Form

Constructor Summary
SelectClauseStreamWildcard()
          Ctor.
SelectClauseStreamWildcard(java.lang.String streamName, java.lang.String optionalColumnName)
          Ctor.
 
Method Summary
 java.lang.String getOptionalColumnName()
          Returns the optional column name (e.g.
 java.lang.String getStreamName()
          Returns the stream name (e.g.
 void setOptionalColumnName(java.lang.String optionalColumnName)
          Sets the column name.
 void setStreamName(java.lang.String streamName)
          Sets the stream name.
 void toEPLElement(java.io.StringWriter writer)
          Renders the element in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectClauseStreamWildcard

public SelectClauseStreamWildcard()
Ctor.


SelectClauseStreamWildcard

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

Parameters:
streamName - is the name assigned to a stream
optionalColumnName - is the name to assign to the column carrying the streams generated events, or null if the event should not appear in a column
Method Detail

getStreamName

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

Returns:
name

getOptionalColumnName

public java.lang.String getOptionalColumnName()
Returns the optional column name (e.g. select streamName.* as colName from MyStream as streamName)

Returns:
name of column, or null if none defined

setStreamName

public void setStreamName(java.lang.String streamName)
Sets the stream name.

Parameters:
streamName - stream name

setOptionalColumnName

public void setOptionalColumnName(java.lang.String optionalColumnName)
Sets the column name.

Parameters:
optionalColumnName - column name

toEPLElement

public void toEPLElement(java.io.StringWriter writer)
Renders the element in textual representation.

Specified by:
toEPLElement in interface SelectClauseElement
Parameters:
writer - to output to

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