com.espertech.esper.collection
Class TimeWindowIterator

java.lang.Object
  extended by com.espertech.esper.collection.TimeWindowIterator
All Implemented Interfaces:
Iterator<EventBean>

public final class TimeWindowIterator
extends Object
implements Iterator<EventBean>

Iterator for TimeWindow to iterate over a timestamp slots that hold events.


Constructor Summary
TimeWindowIterator(ArrayDequeJDK6Backport<Pair<Long,ArrayDequeJDK6Backport<EventBean>>> window)
          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

TimeWindowIterator

public TimeWindowIterator(ArrayDequeJDK6Backport<Pair<Long,ArrayDequeJDK6Backport<EventBean>>> window)
Ctor.

Parameters:
window - is the time-slotted collection
Method Detail

next

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

remove

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

hasNext

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

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