com.sun.labs.minion.indexer.partition
Class DocumentIterator
java.lang.Object
com.sun.labs.minion.indexer.partition.DocumentIterator
- All Implemented Interfaces:
- java.util.Iterator<Document>
public class DocumentIterator
- extends java.lang.Object
- implements java.util.Iterator<Document>
An iterator for all of the documents in a set of partitions.
Constructor Summary |
DocumentIterator(PartitionManager m)
Creates a DocumentIterator that will iterate through all of the documents
managed by the given partition manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m
protected PartitionManager m
parts
protected java.util.List parts
currPart
protected DiskPartition currPart
currEntry
protected QueryEntry currEntry
partIter
protected java.util.Iterator partIter
docIter
protected java.util.Iterator docIter
hasNextCalled
protected boolean hasNextCalled
DocumentIterator
public DocumentIterator(PartitionManager m)
- Creates a DocumentIterator that will iterate through all of the documents
managed by the given partition manager.
- Parameters:
m
- the manager for the partitions for which we want a document
iterator.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<Document>
next
public Document next()
- Specified by:
next
in interface java.util.Iterator<Document>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<Document>