Class SelectClauseStreamWildcard
java.lang.Object
com.espertech.esper.common.client.soda.SelectClauseStreamWildcard
- All Implemented Interfaces:
SelectClauseElement
,Serializable
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 Summary
ConstructorDescriptionCtor.SelectClauseStreamWildcard
(String streamName, String optionalColumnName) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional column name (e.g.Returns the stream name (e.g.void
setOptionalColumnName
(String optionalColumnName) Sets the column name.void
setStreamName
(String streamName) Sets the stream name.void
toEPLElement
(StringWriter writer) Renders the element in textual representation.
-
Constructor Details
-
SelectClauseStreamWildcard
public SelectClauseStreamWildcard()Ctor. -
SelectClauseStreamWildcard
Ctor.- Parameters:
streamName
- is the name assigned to a streamoptionalColumnName
- 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
Returns the stream name (e.g. select streamName.* as colName from MyStream as streamName)- Returns:
- name
-
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
Sets the stream name.- Parameters:
streamName
- stream name
-
setOptionalColumnName
Sets the column name.- Parameters:
optionalColumnName
- column name
-
toEPLElement
Renders the element in textual representation.- Specified by:
toEPLElement
in interfaceSelectClauseElement
- Parameters:
writer
- to output to
-