net.esper.eql.core
Class ResultSetRowPerGroupIterator

java.lang.Object
  extended by net.esper.eql.core.ResultSetRowPerGroupIterator
All Implemented Interfaces:
Iterator<EventBean>

public class ResultSetRowPerGroupIterator
extends Object
implements Iterator<EventBean>

Iterator for the group-by case with a row per group.


Constructor Summary
ResultSetRowPerGroupIterator(Iterator<EventBean> sourceIterator, ResultSetProcessorRowPerGroup resultSetProcessor, AggregationService aggregationService)
          Ctor.
 
Method Summary
 boolean hasNext()
           
 EventBean next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetRowPerGroupIterator

public ResultSetRowPerGroupIterator(Iterator<EventBean> sourceIterator,
                                    ResultSetProcessorRowPerGroup resultSetProcessor,
                                    AggregationService aggregationService)
Ctor.

Parameters:
sourceIterator - is the parent view iterator
resultSetProcessor - for providing results
aggregationService - for pointing to the right aggregation row
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<EventBean>

next

public EventBean next()
Specified by:
next in interface Iterator<EventBean>

remove

public void remove()
Specified by:
remove in interface Iterator<EventBean>

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com