com.sun.labs.minion.retrieval
Class ScoredGroup.ScoredDocIterator

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

public class ScoredGroup.ScoredDocIterator
extends ArrayGroup.DocIterator

A class for an iterator for this set.


Constructor Summary
ScoredGroup.ScoredDocIterator()
           
 
Method Summary
 int compareTo(ArrayGroup.DocIterator o)
          Compares this iterator to another.
 float getScore()
          Gets the score at the head of the iterator.
 boolean next()
          Advance to the next position, skipping deleted documents.
 
Methods inherited from class com.sun.labs.minion.retrieval.ArrayGroup.DocIterator
getDoc, getField, getField, getKey, getPart, getSingleFieldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoredGroup.ScoredDocIterator

public ScoredGroup.ScoredDocIterator()
Method Detail

getScore

public float getScore()
Description copied from class: ArrayGroup.DocIterator
Gets the score at the head of the iterator. In this case, always returns 1.

Specified by:
getScore in interface ResultAccessor
Overrides:
getScore in class ArrayGroup.DocIterator

compareTo

public int compareTo(ArrayGroup.DocIterator o)
Description copied from class: ArrayGroup.DocIterator
Compares this iterator to another. The comparison is done by document ID.

Specified by:
compareTo in interface java.lang.Comparable<ArrayGroup.DocIterator>
Overrides:
compareTo in class ArrayGroup.DocIterator

next

public boolean next()
Description copied from class: ArrayGroup.DocIterator
Advance to the next position, skipping deleted documents.

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