it.unimi.dsi.mg4j.search
Class AndDocumentIterator

java.lang.Object
  extended byit.unimi.dsi.fastutil.ints.AbstractIntIterator
      extended byit.unimi.dsi.mg4j.search.AbstractIntersectionDocumentIterator
          extended byit.unimi.dsi.mg4j.search.AndDocumentIterator
All Implemented Interfaces:
DocumentIterator, IntIterator, Iterator

public class AndDocumentIterator
extends AbstractIntersectionDocumentIterator

An iterator on documents that returns the AND of a number of document iterators.

This class adds to AbstractIntersectionDocumentIterator an interval interator generating the AND of the intervals returned for each of the documents involved.


Field Summary
 
Fields inherited from class it.unimi.dsi.mg4j.search.AbstractIntersectionDocumentIterator
it
 
Constructor Summary
AndDocumentIterator(DocumentIterator[] it)
           
 
Method Summary
protected  IntervalIterator getComposedIntervalIterator(Index index)
           
 
Methods inherited from class it.unimi.dsi.mg4j.search.AbstractIntersectionDocumentIterator
document, hasNext, indices, intervalIterator, intervalIterator, intervalIterators, invalidate, nextDocument, nextInt, skipTo, toString
 
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.fastutil.ints.IntIterator
skip
 
Methods inherited from interface java.util.Iterator
next, remove
 

Constructor Detail

AndDocumentIterator

public AndDocumentIterator(DocumentIterator[] it)
Method Detail

getComposedIntervalIterator

protected IntervalIterator getComposedIntervalIterator(Index index)
Specified by:
getComposedIntervalIterator in class AbstractIntersectionDocumentIterator