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

java.lang.Object
  extended by it.unimi.di.mg4j.search.AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator
All Implemented Interfaces:
IntervalIterator
Direct Known Subclasses:
AndDocumentIterator.AndIndexIntervalIterator, ConsecutiveDocumentIterator.ConsecutiveIndexIntervalIterator, OrderedAndDocumentIterator.OrderedAndIndexIntervalIterator, OrDocumentIterator.OrIndexIntervalIterator
Enclosing class:
AbstractCompositeDocumentIterator

protected abstract static class AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator
extends Object
implements IntervalIterator

An abstract IndexIterator-based interval iterator. The difference with AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator is that this class assumes that all document iterators are actually index iterators. The algorithms in this (very common) case can be significantly simplified, obtaining a large gain in performance.


Field Summary
protected  int[] curr
          The last interval returned by each iterator.
 
Constructor Summary
AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator(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

curr

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

Constructor Detail

AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator

public AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator(int n)
Method Detail

toString

public String toString()
Overrides:
toString in class Object