Class SelectClauseStreamWildcard

java.lang.Object
com.espertech.esper.common.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
See Also:
  • Constructor Details

    • SelectClauseStreamWildcard

      public SelectClauseStreamWildcard()
      Ctor.
    • SelectClauseStreamWildcard

      public SelectClauseStreamWildcard(String streamName, 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 Details

    • getStreamName

      public String getStreamName()
      Returns the stream name (e.g. select streamName.* as colName from MyStream as streamName)
      Returns:
      name
    • getOptionalColumnName

      public 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(String streamName)
      Sets the stream name.
      Parameters:
      streamName - stream name
    • setOptionalColumnName

      public void setOptionalColumnName(String optionalColumnName)
      Sets the column name.
      Parameters:
      optionalColumnName - column name
    • toEPLElement

      public void toEPLElement(StringWriter writer)
      Renders the element in textual representation.
      Specified by:
      toEPLElement in interface SelectClauseElement
      Parameters:
      writer - to output to