com.espertech.esper.epl.core
Class ResultSetProcessorRowPerGroupRollupUnbound

java.lang.Object
  extended by com.espertech.esper.epl.core.ResultSetProcessorRowPerGroupRollup
      extended by com.espertech.esper.epl.core.ResultSetProcessorRowPerGroupRollupUnbound
All Implemented Interfaces:
AggregationRowRemovedCallback, ResultSetProcessor, StopCallback

public class ResultSetProcessorRowPerGroupRollupUnbound
extends ResultSetProcessorRowPerGroupRollup


Field Summary
 
Fields inherited from class com.espertech.esper.epl.core.ResultSetProcessorRowPerGroupRollup
agentInstanceContext, aggregationService, orderByProcessor, prototype
 
Constructor Summary
ResultSetProcessorRowPerGroupRollupUnbound(ResultSetProcessorRowPerGroupRollupFactory prototype, OrderByProcessor orderByProcessor, AggregationService aggregationService, AgentInstanceContext agentInstanceContext)
           
 
Method Summary
 void applyViewResult(EventBean[] newData, EventBean[] oldData)
           
 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.
 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 stop()
          Stops the underlying resources.
 
Methods inherited from class com.espertech.esper.epl.core.ResultSetProcessorRowPerGroupRollup
applyJoinResult, clear, continueOutputLimitedLastAllNonBufferedJoin, continueOutputLimitedLastAllNonBufferedView, generateGroupKey, generateGroupKeysView, generateOutputBatched, generateOutputBatchedMapUnsorted, generateOutputEventsView, getAggregationService, getIterator, getResultEventType, hasAggregation, processJoinResult, processOutputLimitedJoin, processOutputLimitedLastAllNonBufferedJoin, processOutputLimitedLastAllNonBufferedView, processOutputLimitedView, removed, setAgentInstanceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetProcessorRowPerGroupRollupUnbound

public ResultSetProcessorRowPerGroupRollupUnbound(ResultSetProcessorRowPerGroupRollupFactory prototype,
                                                  OrderByProcessor orderByProcessor,
                                                  AggregationService aggregationService,
                                                  AgentInstanceContext agentInstanceContext)
Method Detail

stop

public void stop()
Description copied from interface: StopCallback
Stops the underlying resources.

Specified by:
stop in interface StopCallback
Overrides:
stop in class ResultSetProcessorRowPerGroupRollup

applyViewResult

public void applyViewResult(EventBean[] newData,
                            EventBean[] oldData)
Specified by:
applyViewResult in interface ResultSetProcessor
Overrides:
applyViewResult in class ResultSetProcessorRowPerGroupRollup

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 interface ResultSetProcessor
Overrides:
processViewResult in class ResultSetProcessorRowPerGroupRollup
Parameters:
newData - - new events posted by view
oldData - - old events posted by view
isSynthesize - - set to true to indicate that synthetic events are required for an iterator result set
Returns:
pair of new events and old events

getIterator

public java.util.Iterator<EventBean> getIterator(Viewable parent)
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 interface ResultSetProcessor
Overrides:
getIterator in class ResultSetProcessorRowPerGroupRollup
Parameters:
parent - is the parent view iterator
Returns:
event iterator

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com