|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.client.soda.SelectClause
public class SelectClause
A select-clause consists of selection expressions and optionally an indicator that a wildcard is selected and an optional stream selector.
Constructor Summary | |
---|---|
protected |
SelectClause(StreamSelector streamSelector,
boolean isWildcard)
Ctor. |
|
SelectClause(StreamSelector streamSelector,
String... propertyNames)
Ctor. |
Method Summary | |
---|---|
SelectClause |
add(Expression expression)
Adds an expression to the select clause. |
SelectClause |
add(Expression expression,
String asName)
Adds an expression to the select clause and an "as"-asName for the column. |
SelectClause |
add(String... propertyNames)
Adds property names to be selected. |
SelectClause |
addWithAlias(String propertyName,
String asName)
Adds a single property name and an "as"-asName for the column. |
static SelectClause |
create()
Creates an empty select-clause to be added to via add methods. |
static SelectClause |
create(StreamSelector streamSelector)
Creates an empty select-clause. |
static SelectClause |
create(StreamSelector streamSelector,
String... propertyNames)
Creates a select-clause consisting of a list of property names. |
static SelectClause |
create(String... propertyNames)
Creates a select-clause consisting of a list of property names. |
static SelectClause |
createWildcard()
Creates a wildcard select-clause, additional expressions can still be added. |
static SelectClause |
createWildcard(StreamSelector streamSelector)
Creates a wildcard select-clause, additional expressions can still be added. |
List<SelectClauseElement> |
getSelectList()
Returns the list of expressions in the select clause. |
StreamSelector |
getStreamSelector()
Returns the stream selector. |
boolean |
isWildcard()
Returns true is a wildcard is part of the select clause, or false if not. |
void |
setSelectList(List<SelectClauseElement> selectList)
Sets the list of expressions in the select clause. |
void |
setStreamSelector(StreamSelector streamSelector)
Sets the stream selector. |
void |
setWildcard(boolean wildcard)
Set to true if a wildcard is part of the select clause, or false if not. |
void |
toEQL(StringWriter writer)
Renders the clause in textual representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SelectClause(StreamSelector streamSelector, boolean isWildcard)
streamSelector
- selects the streamisWildcard
- is true for wildcard selectspublic SelectClause(StreamSelector streamSelector, String... propertyNames)
streamSelector
- select the streampropertyNames
- is a list of propertiesMethod Detail |
---|
public static SelectClause createWildcard()
public static SelectClause create()
public static SelectClause create(String... propertyNames)
propertyNames
- is the names of properties to select
public static SelectClause createWildcard(StreamSelector streamSelector)
streamSelector
- can be used to select insert or remove streams
public static SelectClause create(StreamSelector streamSelector)
streamSelector
- can be used to select insert or remove streams
public static SelectClause create(StreamSelector streamSelector, String... propertyNames)
propertyNames
- is the names of properties to selectstreamSelector
- can be used to select insert or remove streams
public SelectClause add(String... propertyNames)
propertyNames
- is a list of property names to add
public SelectClause addWithAlias(String propertyName, String asName)
propertyName
- name of propertyasName
- is the "as"-asName for the column
public SelectClause add(Expression expression)
expression
- to add
public SelectClause add(Expression expression, String asName)
expression
- to addasName
- is the "as"-alias for the column
public StreamSelector getStreamSelector()
public List<SelectClauseElement> getSelectList()
public boolean isWildcard()
public void setStreamSelector(StreamSelector streamSelector)
streamSelector
- stream selector to setpublic void setSelectList(List<SelectClauseElement> selectList)
selectList
- list of expressions with column aliasespublic void setWildcard(boolean wildcard)
wildcard
- true for wildcardpublic void toEQL(StringWriter writer)
writer
- to output to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |