|
||||||||||
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.ResultSetProcessorHandThrough
public class ResultSetProcessorHandThrough
Result set processor for the hand-through case: no aggregation functions used in the select clause, and no group-by, no having and ordering.
Constructor Summary | |
---|---|
ResultSetProcessorHandThrough(ResultSetProcessorHandThroughFactory prototype,
SelectExprProcessor selectExprProcessor,
AgentInstanceContext agentInstanceContext)
|
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. |
UniformPair<EventBean[]> |
continueOutputLimitedLastAllNonBufferedJoin(boolean isSynthesize,
boolean isAll)
|
UniformPair<EventBean[]> |
continueOutputLimitedLastAllNonBufferedView(boolean isSynthesize,
boolean isAll)
|
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. |
protected static EventBean[] |
getSelectEventsNoHaving(SelectExprProcessor exprProcessor,
EventBean[] events,
boolean isNewData,
boolean isSynthesize,
ExprEvaluatorContext agentInstanceContext)
Applies the select-clause to the given events returning the selected events. |
protected static EventBean[] |
getSelectEventsNoHaving(SelectExprProcessor exprProcessor,
java.util.Set<MultiKey<EventBean>> events,
boolean isNewData,
boolean isSynthesize,
ExprEvaluatorContext agentInstanceContext)
Applies the select-clause to the given events returning the selected events. |
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). |
void |
processOutputLimitedLastAllNonBufferedJoin(java.util.Set<MultiKey<EventBean>> newEvents,
java.util.Set<MultiKey<EventBean>> oldEvents,
boolean isGenerateSynthetic,
boolean isAll)
|
void |
processOutputLimitedLastAllNonBufferedView(EventBean[] newData,
EventBean[] oldData,
boolean isGenerateSynthetic,
boolean isAll)
|
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). |
void |
setAgentInstanceContext(AgentInstanceContext agentInstanceContext)
|
void |
stop()
Stops the underlying resources. |
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 ResultSetProcessorHandThrough(ResultSetProcessorHandThroughFactory prototype, SelectExprProcessor selectExprProcessor, AgentInstanceContext agentInstanceContext)
Method Detail |
---|
public void setAgentInstanceContext(AgentInstanceContext agentInstanceContext)
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
protected static EventBean[] getSelectEventsNoHaving(SelectExprProcessor exprProcessor, EventBean[] events, boolean isNewData, boolean isSynthesize, ExprEvaluatorContext agentInstanceContext)
exprProcessor
- - processes each input event and returns output eventevents
- - input eventsisNewData
- - indicates whether we are dealing with new data (istream) or old data (rstream)isSynthesize
- - set to true to indicate that synthetic events are required for an iterator result set
protected static EventBean[] getSelectEventsNoHaving(SelectExprProcessor exprProcessor, java.util.Set<MultiKey<EventBean>> events, boolean isNewData, boolean isSynthesize, ExprEvaluatorContext agentInstanceContext)
exprProcessor
- - processes each input event and returns output eventevents
- - input eventsisNewData
- - indicates whether we are dealing with new data (istream) or old data (rstream)isSynthesize
- - set to true to indicate that synthetic events are required for an iterator result set
public void clear()
ResultSetProcessor
clear
in interface ResultSetProcessor
clear
in class ResultSetProcessorBaseSimple
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 boolean hasAggregation()
public void applyViewResult(EventBean[] newData, EventBean[] oldData)
public void applyJoinResult(java.util.Set<MultiKey<EventBean>> newEvents, java.util.Set<MultiKey<EventBean>> oldEvents)
public void processOutputLimitedLastAllNonBufferedView(EventBean[] newData, EventBean[] oldData, boolean isGenerateSynthetic, boolean isAll)
public void processOutputLimitedLastAllNonBufferedJoin(java.util.Set<MultiKey<EventBean>> newEvents, java.util.Set<MultiKey<EventBean>> oldEvents, boolean isGenerateSynthetic, boolean isAll)
public UniformPair<EventBean[]> continueOutputLimitedLastAllNonBufferedView(boolean isSynthesize, boolean isAll)
public UniformPair<EventBean[]> continueOutputLimitedLastAllNonBufferedJoin(boolean isSynthesize, boolean isAll)
public void stop()
StopCallback
|
© 2006-2016 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 |