it.unimi.di.mg4j.search
Class AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator
java.lang.Object
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. |
curr
protected int[] curr
- The last interval returned by each iterator.
AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator
public AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator(int n)
toString
public String toString()
- Overrides:
toString
in class Object