|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.FromClause
public class FromClause
The from-clause names the streams to select upon.
The most common projected stream is a filter-based stream which is created by FilterStream
.
Multiple streams can be joined by adding each stream individually.
Outer joins are also handled by this class. To create an outer join consisting of 2 streams,
add one OuterJoinQualifier
that defines the outer join relationship between the 2 streams. The outer joins between
N streams, add N-1 OuterJoinQualifier
qualifiers.
Constructor Summary | |
---|---|
FromClause()
Ctor. |
|
FromClause(Stream... streamsList)
Ctor. |
|
FromClause(Stream streamOne,
OuterJoinQualifier outerJoinQualifier,
Stream streamTwo)
Ctor for an outer join between two streams. |
Method Summary | |
---|---|
FromClause |
add(OuterJoinQualifier outerJoinQualifier)
Adds an outer join descriptor that defines how the streams are related via outer joins. |
FromClause |
add(Stream stream)
Adds a stream. |
static FromClause |
create()
Creates an empty from-clause to which one adds streams via the add methods. |
static FromClause |
create(Stream... streams)
Creates a from clause that selects from a single stream. |
static FromClause |
create(Stream stream,
OuterJoinQualifier outerJoinQualifier,
Stream streamSecond)
Creates a from-clause that lists 2 projected streams joined via outer join. |
java.util.List<OuterJoinQualifier> |
getOuterJoinQualifiers()
Returns the outer join descriptors, if this is an outer join, or an empty list if none of the streams are outer joined. |
java.util.List<Stream> |
getStreams()
Returns the list of streams in the from-clause. |
void |
setOuterJoinQualifiers(java.util.List<OuterJoinQualifier> outerJoinQualifiers)
Set outer joins. |
void |
setStreams(java.util.List<Stream> streams)
Set the streams. |
void |
toEPL(java.io.StringWriter writer,
EPStatementFormatter formatter)
Renders the from-clause in textual representation. |
void |
toEPLOptions(java.io.StringWriter writer,
EPStatementFormatter formatter,
boolean includeFrom)
Renders the from-clause in textual representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FromClause()
public FromClause(Stream streamOne, OuterJoinQualifier outerJoinQualifier, Stream streamTwo)
streamOne
- first stream in outer joinouterJoinQualifier
- type of outer join and fields joined onstreamTwo
- second stream in outer joinpublic FromClause(Stream... streamsList)
streamsList
- is zero or more streams in the from-clause.Method Detail |
---|
public static FromClause create()
public static FromClause create(Stream stream, OuterJoinQualifier outerJoinQualifier, Stream streamSecond)
stream
- first stream in outer joinouterJoinQualifier
- qualifies the outer joinstreamSecond
- second stream in outer join
public static FromClause create(Stream... streams)
Use FilterStream
to create filter-based streams to add.
streams
- is one or more streams to add to the from clause.
public FromClause add(Stream stream)
Use FilterStream
to add filter-based streams.
stream
- to add
public FromClause add(OuterJoinQualifier outerJoinQualifier)
For joining N streams, add N-1 outer join qualifiers.
outerJoinQualifier
- is the type of outer join and the fields in the outer join
public java.util.List<Stream> getStreams()
public void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formattingpublic void toEPLOptions(java.io.StringWriter writer, EPStatementFormatter formatter, boolean includeFrom)
writer
- to output toincludeFrom
- flag whether to add the "from" literalformatter
- for newline-whitespace formattingpublic java.util.List<OuterJoinQualifier> getOuterJoinQualifiers()
public void setStreams(java.util.List<Stream> streams)
streams
- to setpublic void setOuterJoinQualifiers(java.util.List<OuterJoinQualifier> outerJoinQualifiers)
outerJoinQualifiers
- to set
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |