public class OnInsertSplitStreamClause extends OnClause
Constructor and Description |
---|
OnInsertSplitStreamClause()
Ctor.
|
OnInsertSplitStreamClause(boolean isFirst,
List<OnInsertSplitStreamItem> items)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
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,
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.
|
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(List<OnInsertSplitStreamItem> items)
Sets a list of insert-into, select and where-clauses.
|
void |
toEPL(StringWriter writer,
EPStatementFormatter formatter)
Renders the clause in textual representation.
|
createOnDelete, createOnInsertSplitStream, createOnSelect, createOnSet, createOnUpdate
public OnInsertSplitStreamClause()
public OnInsertSplitStreamClause(boolean isFirst, 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.public static OnInsertSplitStreamClause create(boolean isFirst, 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-clausespublic static OnInsertSplitStreamClause create()
public void toEPL(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 List<OnInsertSplitStreamItem> getItems()
public void setItems(List<OnInsertSplitStreamItem> items)
items
- split-stream linespublic void addItem(OnInsertSplitStreamItem item)
item
- to add