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

java.lang.Object
  extended by it.unimi.di.mg4j.search.AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator
All Implemented Interfaces:
IntervalIterator
Direct Known Subclasses:
AndDocumentIterator.AndIntervalIterator, ConsecutiveDocumentIterator.ConsecutiveIntervalIterator, OrderedAndDocumentIterator.OrderedAndIntervalIterator, OrDocumentIterator.OrIntervalIterator
Enclosing class:
AbstractCompositeDocumentIterator

protected abstract static class AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator
extends Object
implements IntervalIterator

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.
 
Constructor Summary
AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator(int n)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.di.mg4j.search.IntervalIterator
extent, intervalTerms, nextInterval, reset
 

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