com.espertech.esper.client.soda
Class SelectClauseStreamWildcard

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

public class SelectClauseStreamWildcard
extends 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

There may also be an alias such that the event ends up in

For example:

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

See Also:
Serialized Form

Constructor Summary
SelectClauseStreamWildcard(String streamAliasName, String optionalColumnAlias)
          Ctor.
 
Method Summary
 String getOptionalColumnAlias()
          Returns the optional column alias name (e.g.
 String getStreamAliasName()
          Returns the stream alias name (e.g.
 void toEPLElement(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(String streamAliasName,
                                  String optionalColumnAlias)
Ctor.

Parameters:
streamAliasName - is the alias name assigned to a stream
optionalColumnAlias - 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

getStreamAliasName

public String getStreamAliasName()
Returns the stream alias name (e.g. select streamAliasName.* as colAlias from MyStream as streamAliasName)

Returns:
alias

getOptionalColumnAlias

public String getOptionalColumnAlias()
Returns the optional column alias name (e.g. select streamAliasName.* as colAlias from MyStream as streamAliasName)

Returns:
alias of column, or null if none defined

toEPLElement

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

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

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