|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.di.mg4j.index.IndexIntervalIterator
public final class IndexIntervalIterator
An interval iterator returning the positions of the current document as singleton intervals.
Constructor Summary | |
---|---|
IndexIntervalIterator(IndexIterator indexIterator)
|
Method Summary | |
---|---|
int |
extent()
Returns an approximation of a lower bound for the length of an interval returned by this iterator. |
void |
intervalTerms(IntSet terms)
Provides the set of terms that span the current interval. |
Interval |
nextInterval()
Returns the next interval provided by this interval iterator, or null if no more intervals are available. |
IndexIntervalIterator |
reset()
A no-op. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexIntervalIterator(IndexIterator indexIterator)
Method Detail |
---|
public IndexIntervalIterator reset() throws IOException
reset
in interface IntervalIterator
IOException
public void intervalTerms(IntSet terms)
IntervalIterator
For each interval returned by MG4J, there is a set of terms that caused the interval to be returned. The terms appear inside the interval, and certainly at its extremes.
Note that the results of this method must be taken with a grain of salt: there might be different sets of terms causing the current interval, and only one will be returned.
intervalTerms
in interface IntervalIterator
terms
- a set of integers that will be filled with the terms spanning the current interval.public Interval nextInterval() throws IOException
IntervalIterator
null
if no more intervals are available.
nextInterval
in interface IntervalIterator
null
if no more intervals are available.
IOException
public int extent()
IntervalIterator
extent
in interface IntervalIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |