|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.OnClause
com.espertech.esper.client.soda.OnInsertSplitStreamClause
public class OnInsertSplitStreamClause
A clause to insert into zero, one or more streams based on criteria.
Constructor Summary | |
---|---|
OnInsertSplitStreamClause()
Ctor. |
|
OnInsertSplitStreamClause(boolean isFirst,
java.util.List<OnInsertSplitStreamItem> items)
Ctor. |
Method Summary | |
---|---|
void |
addItem(OnInsertSplitStreamItem item)
Add a insert-into, select and where-clause. |
static OnInsertSplitStreamClause |
create()
Creates an split-stream on-insert clause considering only the first where-clause that matches. |
static OnInsertSplitStreamClause |
create(boolean isFirst,
java.util.List<OnInsertSplitStreamItem> items)
Creates a split-stream on-insert clause from an indicator whether to consider the first of all where-clauses, and a list of items. |
boolean |
getFirst()
Returns true for firing the insert-into for only the first where-clause that matches, or false for firing the insert-into for all where-clauses that match. |
java.util.List<OnInsertSplitStreamItem> |
getItems()
Returns a list of insert-into, select and where-clauses. |
boolean |
isFirst()
Returns true for firing the insert-into for only the first where-clause that matches, or false for firing the insert-into for all where-clauses that match. |
void |
setFirst(boolean first)
Set to true for firing the insert-into for only the first where-clause that matches, or false for firing the insert-into for all where-clauses that match. |
void |
setItems(java.util.List<OnInsertSplitStreamItem> items)
Sets a list of insert-into, select and where-clauses. |
void |
toEPL(java.io.StringWriter writer,
EPStatementFormatter formatter)
Renders the clause in textual representation. |
Methods inherited from class com.espertech.esper.client.soda.OnClause |
---|
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnInsertSplitStreamClause()
public OnInsertSplitStreamClause(boolean isFirst, java.util.List<OnInsertSplitStreamItem> items)
isFirst
- indicator whether only the first where-clause is to match or all where-clauses.items
- tuples of insert-into, select and where-clauses.Method Detail |
---|
public static OnInsertSplitStreamClause create(boolean isFirst, java.util.List<OnInsertSplitStreamItem> items)
isFirst
- true for first where-clause, false for all where-clauses fireitems
- is a list of insert-into, select and optional where-clauses
public static OnInsertSplitStreamClause create()
public void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formattingpublic boolean isFirst()
public boolean getFirst()
public void setFirst(boolean first)
first
- indicator first or allpublic java.util.List<OnInsertSplitStreamItem> getItems()
public void setItems(java.util.List<OnInsertSplitStreamItem> items)
items
- split-stream linespublic void addItem(OnInsertSplitStreamItem item)
item
- to add
|
© 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 |