com.espertech.esper.epl.core
Class ResultSetProcessorRowPerGroupUnbound

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

public class ResultSetProcessorRowPerGroupUnbound
extends ResultSetProcessorRowPerGroup
implements AggregationRowRemovedCallback


Field Summary
protected  ResultSetProcessorRowPerGroupUnboundGroupRep groupReps
           
 
Fields inherited from class com.espertech.esper.epl.core.ResultSetProcessorRowPerGroup
agentInstanceContext, aggregationService, orderByProcessor, outputAllGroupReps, prototype, selectExprProcessor
 
Constructor Summary
ResultSetProcessorRowPerGroupUnbound(ResultSetProcessorRowPerGroupFactory prototype, SelectExprProcessor selectExprProcessor, 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.ResultSetProcessorRowPerGroup
applyJoinResult, clear, continueOutputLimitedLastAllNonBufferedJoin, continueOutputLimitedLastAllNonBufferedView, generateGroupKey, generateGroupKeys, generateOutputBatchedArr, generateOutputBatchedNoSortWMap, generateOutputEventsView, getAggregationService, getIterator, getIteratorSorted, getOptionalHavingNode, getResultEventType, getSelectExprProcessor, hasAggregation, obtainIterator, 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
 
Methods inherited from interface com.espertech.esper.epl.agg.service.AggregationRowRemovedCallback
removed
 

Field Detail

groupReps

protected final ResultSetProcessorRowPerGroupUnboundGroupRep groupReps
Constructor Detail

ResultSetProcessorRowPerGroupUnbound

public ResultSetProcessorRowPerGroupUnbound(ResultSetProcessorRowPerGroupFactory prototype,
                                            SelectExprProcessor selectExprProcessor,
                                            OrderByProcessor orderByProcessor,
                                            AggregationService aggregationService,
                                            AgentInstanceContext agentInstanceContext)
Method Detail

applyViewResult

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

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 ResultSetProcessorRowPerGroup
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 ResultSetProcessorRowPerGroup
Parameters:
parent - is the parent view iterator
Returns:
event iterator

stop

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

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

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