com.sun.labs.minion.retrieval
Class NegativeGroup.NegativeDocIterator

java.lang.Object
  extended by com.sun.labs.minion.retrieval.ArrayGroup.DocIterator
      extended by com.sun.labs.minion.retrieval.NegativeGroup.NegativeDocIterator
All Implemented Interfaces:
ResultAccessor, java.lang.Comparable<ArrayGroup.DocIterator>
Enclosing class:
NegativeGroup

protected class NegativeGroup.NegativeDocIterator
extends ArrayGroup.DocIterator

A class containing an iterator for the documents in this group. Or, more to the point, the documents not in this group.


Field Summary
protected  int currDoc
          The current document.
protected  int partDocs
          The number of docs in the partition.
 
Constructor Summary
NegativeGroup.NegativeDocIterator()
           
 
Method Summary
 int getDoc()
          Gets the document at the head of the iterator.
 boolean next()
          Advance to the next document ID in the set, skipping deleted documents.
 
Methods inherited from class com.sun.labs.minion.retrieval.ArrayGroup.DocIterator
compareTo, getField, getField, getKey, getPart, getScore, getSingleFieldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currDoc

protected int currDoc
The current document.


partDocs

protected int partDocs
The number of docs in the partition.

Constructor Detail

NegativeGroup.NegativeDocIterator

public NegativeGroup.NegativeDocIterator()
Method Detail

next

public boolean next()
Advance to the next document ID in the set, skipping deleted documents.

Overrides:
next in class ArrayGroup.DocIterator
Returns:
true if there is a next position, false otherwise.

getDoc

public int getDoc()
Gets the document at the head of the iterator.

Overrides:
getDoc in class ArrayGroup.DocIterator