edu.sc.seis.fissuresUtil.flow.querier
Class EventFinderIterator

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.flow.querier.EventFinderIterator
All Implemented Interfaces:
java.util.Iterator

public class EventFinderIterator
extends java.lang.Object
implements java.util.Iterator


Constructor Summary
EventFinderIterator(edu.iris.Fissures.IfEvent.EventAccessOperations[] initialEvents, edu.iris.Fissures.IfEvent.EventSeqIter iter, int eventsPerNext)
           
 
Method Summary
static EventFinderIterator create(edu.iris.Fissures.IfEvent.EventFinder ef)
          Returns an iterator over all the events in the finder
static EventFinderIterator create(edu.iris.Fissures.IfEvent.EventFinder ef, EventFinderQuery eq)
          Returns an iterator over the events in the finder returned by the given query
static EventFinderIterator create(edu.iris.Fissures.IfEvent.EventFinder ef, EventFinderQuery eq, int eventsPerServerCall)
          Returns an iterator over the events in the finder returned by the given query with eventsPerServerCall events returned per call to the server
static edu.iris.Fissures.IfEvent.EventAccessOperations[] getEvents(EventFinderQuery q, edu.iris.Fissures.IfEvent.EventFinder finder, edu.iris.Fissures.IfEvent.EventSeqIterHolder holder, int eventsPerServerCall)
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventFinderIterator

public EventFinderIterator(edu.iris.Fissures.IfEvent.EventAccessOperations[] initialEvents,
                           edu.iris.Fissures.IfEvent.EventSeqIter iter,
                           int eventsPerNext)
Method Detail

create

public static EventFinderIterator create(edu.iris.Fissures.IfEvent.EventFinder ef)
Returns an iterator over all the events in the finder


create

public static EventFinderIterator create(edu.iris.Fissures.IfEvent.EventFinder ef,
                                         EventFinderQuery eq)
Returns an iterator over the events in the finder returned by the given query


create

public static EventFinderIterator create(edu.iris.Fissures.IfEvent.EventFinder ef,
                                         EventFinderQuery eq,
                                         int eventsPerServerCall)
Returns an iterator over the events in the finder returned by the given query with eventsPerServerCall events returned per call to the server


getEvents

public static edu.iris.Fissures.IfEvent.EventAccessOperations[] getEvents(EventFinderQuery q,
                                                                          edu.iris.Fissures.IfEvent.EventFinder finder,
                                                                          edu.iris.Fissures.IfEvent.EventSeqIterHolder holder,
                                                                          int eventsPerServerCall)

hasNext

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

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

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