it.unimi.dsi.mg4j.search
Class AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.objects.AbstractObjectIterator<Interval>
      extended by it.unimi.dsi.mg4j.search.AbstractDocumentIterator.AbstractIntervalIterator
          extended by it.unimi.dsi.mg4j.search.AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator
All Implemented Interfaces:
ObjectIterator<Interval>, IntervalIterator, Iterator<Interval>
Direct Known Subclasses:
AbstractOrderedIntervalDocumentIterator.AbstractOrderedIntervalIterator
Enclosing class:
AbstractCompositeDocumentIterator

protected abstract static class AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator
extends AbstractDocumentIterator.AbstractIntervalIterator

An abstract interval iterator. Provide mainly storage for the component interval iterators, place for the last interval returned by each iterator and toString().


Field Summary
protected  Interval[] curr
          The last interval returned by each iterator.
protected  IntervalIterator[] intervalIterator
          The underlying iterators.
 
Fields inherited from class it.unimi.dsi.mg4j.search.AbstractDocumentIterator.AbstractIntervalIterator
next
 
Constructor Summary
AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator(int n)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class it.unimi.dsi.mg4j.search.AbstractDocumentIterator.AbstractIntervalIterator
hasNext, next
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectIterator
remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.mg4j.search.IntervalIterator
extent, intervalTerms, nextInterval, reset
 
Methods inherited from interface java.util.Iterator
remove
 

Field Detail

intervalIterator

protected IntervalIterator[] intervalIterator
The underlying iterators.


curr

protected Interval[] curr
The last interval returned by each iterator.

Constructor Detail

AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator

public AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator(int n)
Method Detail

toString

public String toString()
Overrides:
toString in class Object