|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.core.ResultSetProcessorBaseSimple
com.espertech.esper.epl.core.ResultSetProcessorSimple
public class ResultSetProcessorSimple
Result set processor for the simplest case: no aggregation functions used in the select clause, and no group-by.
The processor generates one row for each event entering (new event) and one row for each event leaving (old event).
Constructor Summary | |
---|---|
ResultSetProcessorSimple(ResultSetProcessorSimpleFactory prototype,
SelectExprProcessor selectExprProcessor,
OrderByProcessor orderByProcessor,
ExprEvaluatorContext exprEvaluatorContext)
|
Method Summary | |
---|---|
void |
applyJoinResult(java.util.Set<MultiKey<EventBean>> newEvents,
java.util.Set<MultiKey<EventBean>> oldEvents)
|
void |
applyViewResult(EventBean[] newData,
EventBean[] oldData)
|
void |
clear()
Clear out current state. |
java.util.Iterator<EventBean> |
getIterator(java.util.Set<MultiKey<EventBean>> joinSet)
Returns the iterator for iterating over a join-result. |
java.util.Iterator<EventBean> |
getIterator(Viewable parent)
Returns the iterator implementing the group-by and aggregation and order-by logic specific to each case of use of these construct. |
EventType |
getResultEventType()
Returns the event type of processed results. |
boolean |
hasAggregation()
|
UniformPair<EventBean[]> |
processJoinResult(java.util.Set<MultiKey<EventBean>> newEvents,
java.util.Set<MultiKey<EventBean>> oldEvents,
boolean isSynthesize)
For use by joins posting their result, process the event rows that are entered and removed (new and old events). |
UniformPair<EventBean[]> |
processViewResult(EventBean[] newData,
EventBean[] oldData,
boolean isSynthesize)
For use by views posting their result, process the event rows that are entered and removed (new and old events). |
UniformPair<EventBean[]> |
processViewResultIterator(EventBean[] newData)
Process view results for the iterator. |
void |
setAgentInstanceContext(AgentInstanceContext context)
|
Methods inherited from class com.espertech.esper.epl.core.ResultSetProcessorBaseSimple |
---|
processOutputLimitedJoin, processOutputLimitedView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultSetProcessorSimple(ResultSetProcessorSimpleFactory prototype, SelectExprProcessor selectExprProcessor, OrderByProcessor orderByProcessor, ExprEvaluatorContext exprEvaluatorContext)
Method Detail |
---|
public void setAgentInstanceContext(AgentInstanceContext context)
public EventType getResultEventType()
ResultSetProcessor
public UniformPair<EventBean[]> processJoinResult(java.util.Set<MultiKey<EventBean>> newEvents, java.util.Set<MultiKey<EventBean>> oldEvents, boolean isSynthesize)
ResultSetProcessor
newEvents
- - new events posted by joinoldEvents
- - old events posted by joinisSynthesize
- - set to true to indicate that synthetic events are required for an iterator result set
public UniformPair<EventBean[]> processViewResult(EventBean[] newData, EventBean[] oldData, boolean isSynthesize)
ResultSetProcessor
newData
- - new events posted by viewoldData
- - old events posted by viewisSynthesize
- - set to true to indicate that synthetic events are required for an iterator result set
public UniformPair<EventBean[]> processViewResultIterator(EventBean[] newData)
newData
- new events
public java.util.Iterator<EventBean> getIterator(Viewable parent)
ResultSetProcessor
parent
- is the parent view iterator
public java.util.Iterator<EventBean> getIterator(java.util.Set<MultiKey<EventBean>> joinSet)
ResultSetProcessor
joinSet
- is the join result set
public void clear()
ResultSetProcessor
clear
in interface ResultSetProcessor
clear
in class ResultSetProcessorBaseSimple
public boolean hasAggregation()
public void applyViewResult(EventBean[] newData, EventBean[] oldData)
public void applyJoinResult(java.util.Set<MultiKey<EventBean>> newEvents, java.util.Set<MultiKey<EventBean>> oldEvents)
|
© 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 |