|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.indexer.partition.FieldIterator
public class FieldIterator
A class that will iterate through all of the saved values in a set of partitions for a given field.
Nested Class Summary | |
---|---|
protected class |
FieldIterator.HE
An element to put on the heap. |
Field Summary | |
---|---|
protected int |
freq
Used to store the frequency of the current field returned by "next()" |
protected java.util.PriorityQueue<FieldIterator.HE> |
h
A heap holding the individual iterators. |
Constructor Summary | |
---|---|
FieldIterator(java.util.List parts,
java.lang.String field,
boolean ignoreCase)
Creates an iterator for all of the unique field values in the given partitions. |
Method Summary | |
---|---|
int |
getFreq()
|
boolean |
hasNext()
Indicates whether there is another field value to return. |
java.lang.Object |
next()
Gets the next field value. |
void |
remove()
Unsupported operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.PriorityQueue<FieldIterator.HE> h
protected int freq
Constructor Detail |
---|
public FieldIterator(java.util.List parts, java.lang.String field, boolean ignoreCase)
parts
- The partitions from which we'll draw field values.field
- The field whose values we want to iterate through.Method Detail |
---|
public void remove()
remove
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public int getFreq()
public boolean hasNext()
hasNext
in interface java.util.Iterator
true
if there is another value to return,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |