com.espertech.esper.epl.named
Class FilteredEventIterator

java.lang.Object
  extended by com.espertech.esper.epl.named.FilteredEventIterator
All Implemented Interfaces:
Iterator<EventBean>

public class FilteredEventIterator
extends Object
implements Iterator<EventBean>

An iterator that filters events suppied by another iterator, using a list of one or more filter expressions as filter.


Constructor Summary
FilteredEventIterator(List<ExprNode> filters, Iterator<EventBean> parent)
          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

FilteredEventIterator

public FilteredEventIterator(List<ExprNode> filters,
                             Iterator<EventBean> parent)
Ctor.

Parameters:
filters - is a list of expression nodes for filtering
parent - is the iterator supplying the events to apply the filter on
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