|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.ints.AbstractIntIterator
it.unimi.dsi.mg4j.search.AbstractDocumentIterator
it.unimi.dsi.mg4j.search.AbstractCompositeDocumentIterator
it.unimi.dsi.mg4j.search.AbstractIntersectionDocumentIterator
it.unimi.dsi.mg4j.search.AndDocumentIterator
public class AndDocumentIterator
A document iterator that returns the AND of a number of document iterators.
This class adds to AbstractIntersectionDocumentIterator
an interval iterator generating the AND of the intervals returned for each of the documents involved.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class it.unimi.dsi.mg4j.search.AbstractCompositeDocumentIterator |
|---|
AbstractCompositeDocumentIterator.AbstractCompositeIndexIntervalIterator, AbstractCompositeDocumentIterator.AbstractCompositeIntervalIterator |
| Nested classes/interfaces inherited from class it.unimi.dsi.mg4j.search.AbstractDocumentIterator |
|---|
AbstractDocumentIterator.AbstractIntervalIterator |
| Field Summary |
|---|
| Fields inherited from class it.unimi.dsi.mg4j.search.AbstractIntersectionDocumentIterator |
|---|
currentIterators, intervalIterators, unmodifiableCurrentIterators |
| Fields inherited from class it.unimi.dsi.mg4j.search.AbstractCompositeDocumentIterator |
|---|
documentIterator, indexIterator, indices, n, soleIndex |
| Fields inherited from class it.unimi.dsi.mg4j.search.AbstractDocumentIterator |
|---|
ahead, curr, weight |
| Fields inherited from interface it.unimi.dsi.mg4j.search.DocumentIterator |
|---|
END_OF_LIST |
| Constructor Summary | |
|---|---|
protected |
AndDocumentIterator(DocumentIterator[] documentIterator)
|
| Method Summary | |
|---|---|
protected IntervalIterator |
getComposedIntervalIterator(Index index)
|
static DocumentIterator |
getInstance(DocumentIterator... documentIterator)
Returns a document iterator that computes the AND of the given nonzero-length array of iterators. |
static DocumentIterator |
getInstance(Index index,
DocumentIterator... documentIterator)
Returns a document iterator that computes the AND of the given array of iterators. |
| Methods inherited from class it.unimi.dsi.mg4j.search.AbstractIntersectionDocumentIterator |
|---|
intervalIterator, intervalIterators, nextDocumentInternal, skipTo |
| Methods inherited from class it.unimi.dsi.mg4j.search.AbstractCompositeDocumentIterator |
|---|
accept, acceptOnTruePaths, dispose, indices, intervalIterator, toString |
| Methods inherited from class it.unimi.dsi.mg4j.search.AbstractDocumentIterator |
|---|
document, ensureOnADocument, fromNextDocument, hasNext, iterator, nextDocument, nextInt, toNextDocument, weight, weight |
| Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntIterator |
|---|
next, remove, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.mg4j.search.DocumentIterator |
|---|
document, iterator, nextDocument, nextInt, weight, weight |
| Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator |
|---|
skip |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Constructor Detail |
|---|
protected AndDocumentIterator(DocumentIterator[] documentIterator)
throws IOException
IOException| Method Detail |
|---|
public static DocumentIterator getInstance(Index index,
DocumentIterator... documentIterator)
throws IOException
Note that the special case of the empty and of the singleton arrays are handled efficiently.
index - the default index; relevant only if it has zero length.documentIterator - the iterators to be joined.
it.
IOException
public static DocumentIterator getInstance(DocumentIterator... documentIterator)
throws IOException
Note that the special case of the singleton array is handled efficiently.
documentIterator - the iterators to be joined (at least one).
it.
IOExceptionprotected IntervalIterator getComposedIntervalIterator(Index index)
getComposedIntervalIterator in class AbstractIntersectionDocumentIterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||