com.espertech.esper.collection
Class FilteredEventIterator

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

public class FilteredEventIterator
extends java.lang.Object
implements java.util.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(ExprEvaluator[] filters, java.util.Iterator<EventBean> parent, ExprEvaluatorContext exprEvaluatorContext)
          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(ExprEvaluator[] filters,
                             java.util.Iterator<EventBean> parent,
                             ExprEvaluatorContext exprEvaluatorContext)
Ctor.

Parameters:
filters - is a list of expression nodes for filtering
parent - is the iterator supplying the events to apply the filter on
exprEvaluatorContext - context for expression evalauation
Method Detail

hasNext

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

next

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

remove

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

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