|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.retrieval.ArrayGroup.DocIterator
public class ArrayGroup.DocIterator
A class that provides an iterator for the documents in this group.
Constructor Summary | |
---|---|
ArrayGroup.DocIterator()
|
Method Summary | |
---|---|
int |
compareTo(ArrayGroup.DocIterator o)
Compares this iterator to another. |
int |
getDoc()
Gets the document at the head of the iterator. |
java.util.List<java.lang.Object> |
getField(java.lang.String field)
Gets the values associated with the given saved field for the current result |
java.util.List<java.lang.Object> |
getField(java.lang.String field,
java.util.List<java.lang.Object> l)
|
java.lang.String |
getKey()
Gets the key of the result under consideration |
DiskPartition |
getPart()
Gets the partition associated with this array group. |
float |
getScore()
Gets the score at the head of the iterator. |
java.lang.Object |
getSingleFieldValue(java.lang.String field)
Gets a single value for the given saved field for the current result |
boolean |
next()
Advance to the next position, skipping deleted documents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayGroup.DocIterator()
Method Detail |
---|
public boolean next()
true
if there is a next position,
false
otherwise.public int getDoc()
public float getScore()
getScore
in interface ResultAccessor
public DiskPartition getPart()
public int compareTo(ArrayGroup.DocIterator o)
compareTo
in interface java.lang.Comparable<ArrayGroup.DocIterator>
public java.lang.String getKey()
ResultAccessor
getKey
in interface ResultAccessor
public java.util.List<java.lang.Object> getField(java.lang.String field)
ResultAccessor
getField
in interface ResultAccessor
field
- the field whose values we want
public java.util.List<java.lang.Object> getField(java.lang.String field, java.util.List<java.lang.Object> l)
public java.lang.Object getSingleFieldValue(java.lang.String field)
ResultAccessor
getSingleFieldValue
in interface ResultAccessor
field
- the field whose value we want
null
if
this result does not have a value saved for this field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |