Package it.unimi.di.big.mg4j.search
Class AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator
- java.lang.Object
-
- it.unimi.di.big.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 abstractIndexIterator
-based interval iterator. The difference withAbstractCompositeDocumentIterator.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
Fields Modifier and Type Field Description protected int[]
curr
The last interval returned by each iterator.
-
Constructor Summary
Constructors Constructor Description AbstractCompositeIndexIntervalIterator(int n)
-