Class ResultSetProcessorHandThroughImpl
java.lang.Object
com.espertech.esper.common.internal.epl.resultset.handthru.ResultSetProcessorHandThroughImpl
- All Implemented Interfaces:
ResultSetProcessor
,StopCallback
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.epl.resultset.core.ResultSetProcessor
EPTYPE, EPTYPE_PROCESSORTYPE
-
Constructor Summary
ConstructorDescriptionResultSetProcessorHandThroughImpl
(ResultSetProcessorHandThroughFactory factory, ExprEvaluatorContext exprEvaluatorContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
applyJoinResult
(Set<MultiKeyArrayOfKeys<EventBean>> newEvents, Set<MultiKeyArrayOfKeys<EventBean>> oldEvents) void
applyViewResult
(EventBean[] newData, EventBean[] oldData) void
clear()
Clear out current state.continueOutputLimitedLastAllNonBufferedJoin
(boolean isSynthesize) continueOutputLimitedLastAllNonBufferedView
(boolean isSynthesize) getIterator
(Viewable viewable) Returns the iterator implementing the group-by and aggregation and order-by logic specific to each case of use of these construct.getIterator
(Set<MultiKeyArrayOfKeys<EventBean>> joinSet) Returns the iterator for iterating over a join-result.Returns the event type of processed results.processJoinResult
(Set<MultiKeyArrayOfKeys<EventBean>> newEvents, Set<MultiKeyArrayOfKeys<EventBean>> oldEvents, boolean isSynthesize) For use by joins posting their result, process the event rows that are entered and removed (new and old events).processOutputLimitedJoin
(List<UniformPair<Set<MultiKeyArrayOfKeys<EventBean>>>> joinEventsSet, boolean generateSynthetic) Processes batched events in case of output-rate limiting.void
processOutputLimitedLastAllNonBufferedJoin
(Set<MultiKeyArrayOfKeys<EventBean>> newEvents, Set<MultiKeyArrayOfKeys<EventBean>> oldEvents, boolean isGenerateSynthetic) void
processOutputLimitedLastAllNonBufferedView
(EventBean[] newData, EventBean[] oldData, boolean isSynthesize) processOutputLimitedView
(List<UniformPair<EventBean[]>> viewEventsList, boolean generateSynthetic) Processes batched events in case of output-rate limiting.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
void
stop()
Stops the underlying resources.
-
Constructor Details
-
ResultSetProcessorHandThroughImpl
public ResultSetProcessorHandThroughImpl(ResultSetProcessorHandThroughFactory factory, ExprEvaluatorContext exprEvaluatorContext)
-
-
Method Details
-
getResultEventType
Description copied from interface:ResultSetProcessor
Returns the event type of processed results.- Specified by:
getResultEventType
in interfaceResultSetProcessor
- Returns:
- event type of the resulting events posted by the processor.
-
processViewResult
public UniformPair<EventBean[]> processViewResult(EventBean[] newData, EventBean[] oldData, boolean isSynthesize) Description copied from interface:ResultSetProcessor
For use by views posting their result, process the event rows that are entered and removed (new and old events). Processes according to select-clauses, group-by clauses and having-clauses and returns new events and old events as specified.- Specified by:
processViewResult
in interfaceResultSetProcessor
- Parameters:
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- Returns:
- pair of new events and old events
-
processJoinResult
public UniformPair<EventBean[]> processJoinResult(Set<MultiKeyArrayOfKeys<EventBean>> newEvents, Set<MultiKeyArrayOfKeys<EventBean>> oldEvents, boolean isSynthesize) Description copied from interface:ResultSetProcessor
For use by joins posting their result, process the event rows that are entered and removed (new and old events). Processes according to select-clauses, group-by clauses and having-clauses and returns new events and old events as specified.- Specified by:
processJoinResult
in interfaceResultSetProcessor
- Parameters:
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- Returns:
- pair of new events and old events
-
getIterator
Description copied from interface:ResultSetProcessor
Returns the iterator implementing the group-by and aggregation and order-by logic specific to each case of use of these construct.- Specified by:
getIterator
in interfaceResultSetProcessor
- Parameters:
viewable
- is the parent view iterator- Returns:
- event iterator
-
getIterator
Description copied from interface:ResultSetProcessor
Returns the iterator for iterating over a join-result.- Specified by:
getIterator
in interfaceResultSetProcessor
- Parameters:
joinSet
- is the join result set- Returns:
- iterator over join results
-
clear
public void clear()Description copied from interface:ResultSetProcessor
Clear out current state.- Specified by:
clear
in interfaceResultSetProcessor
-
stop
public void stop()Description copied from interface:StopCallback
Stops the underlying resources.- Specified by:
stop
in interfaceStopCallback
-
processOutputLimitedJoin
public UniformPair<EventBean[]> processOutputLimitedJoin(List<UniformPair<Set<MultiKeyArrayOfKeys<EventBean>>>> joinEventsSet, boolean generateSynthetic) Description copied from interface:ResultSetProcessor
Processes batched events in case of output-rate limiting.- Specified by:
processOutputLimitedJoin
in interfaceResultSetProcessor
- Parameters:
joinEventsSet
- the join resultsgenerateSynthetic
- flag to indicate whether synthetic events must be generated- Returns:
- results for dispatch
-
processOutputLimitedView
public UniformPair<EventBean[]> processOutputLimitedView(List<UniformPair<EventBean[]>> viewEventsList, boolean generateSynthetic) Description copied from interface:ResultSetProcessor
Processes batched events in case of output-rate limiting.- Specified by:
processOutputLimitedView
in interfaceResultSetProcessor
- Parameters:
viewEventsList
- the view resultsgenerateSynthetic
- flag to indicate whether synthetic events must be generated- Returns:
- results for dispatch
-
setExprEvaluatorContext
- Specified by:
setExprEvaluatorContext
in interfaceResultSetProcessor
-
applyViewResult
- Specified by:
applyViewResult
in interfaceResultSetProcessor
-
applyJoinResult
public void applyJoinResult(Set<MultiKeyArrayOfKeys<EventBean>> newEvents, Set<MultiKeyArrayOfKeys<EventBean>> oldEvents) - Specified by:
applyJoinResult
in interfaceResultSetProcessor
-
processOutputLimitedLastAllNonBufferedView
public void processOutputLimitedLastAllNonBufferedView(EventBean[] newData, EventBean[] oldData, boolean isSynthesize) - Specified by:
processOutputLimitedLastAllNonBufferedView
in interfaceResultSetProcessor
-
processOutputLimitedLastAllNonBufferedJoin
public void processOutputLimitedLastAllNonBufferedJoin(Set<MultiKeyArrayOfKeys<EventBean>> newEvents, Set<MultiKeyArrayOfKeys<EventBean>> oldEvents, boolean isGenerateSynthetic) - Specified by:
processOutputLimitedLastAllNonBufferedJoin
in interfaceResultSetProcessor
-
continueOutputLimitedLastAllNonBufferedView
- Specified by:
continueOutputLimitedLastAllNonBufferedView
in interfaceResultSetProcessor
-
continueOutputLimitedLastAllNonBufferedJoin
- Specified by:
continueOutputLimitedLastAllNonBufferedJoin
in interfaceResultSetProcessor
-
acceptHelperVisitor
- Specified by:
acceptHelperVisitor
in interfaceResultSetProcessor
-