com.sun.labs.minion.indexer.partition
Class DocumentIterator

java.lang.Object
  extended by 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.


Field Summary
protected  QueryEntry currEntry
           
protected  DiskPartition currPart
           
protected  java.util.Iterator docIter
           
protected  boolean hasNextCalled
           
protected  PartitionManager m
           
protected  java.util.Iterator partIter
           
protected  java.util.List parts
           
 
Constructor Summary
DocumentIterator(PartitionManager m)
          Creates a DocumentIterator that will iterate through all of the documents managed by the given partition manager.
 
Method Summary
 boolean hasNext()
           
 Document next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.
Method Detail

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>