|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.indexer.dictionary.MemoryDictionary.MemoryDictionaryIterator
public class MemoryDictionary.MemoryDictionaryIterator
A class that implements a dictionary iterator for this dictionary.
Field Summary | |
---|---|
protected boolean |
actualOnly
|
protected java.util.Iterator |
iter
|
Constructor Summary | |
---|---|
MemoryDictionary.MemoryDictionaryIterator()
|
Method Summary | |
---|---|
int |
estimateSize()
Estimates the total size of the documents held in the postings for all of the terms in the iterator. |
QueryEntry |
get(int id)
Gets an entry for a specific ID from the dictionary that this iterator is iterating through. |
QueryEntry |
get(java.lang.Object name)
Gets an entry for a specific name from the dictionary that this iterator is iterating through. |
int |
getNEntries()
Gets the number of entries that will be returned by this iterator. |
boolean |
hasNext()
|
QueryEntry |
next()
|
void |
remove()
|
void |
setActualOnly(boolean actualOnly)
Modifies the iterator so that it only returns entries whose names have actually occurred in the indexed material. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Iterator iter
protected boolean actualOnly
Constructor Detail |
---|
public MemoryDictionary.MemoryDictionaryIterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<QueryEntry>
public QueryEntry next()
next
in interface java.util.Iterator<QueryEntry>
public void remove()
remove
in interface java.util.Iterator<QueryEntry>
public int estimateSize()
DictionaryIterator
estimateSize
in interface DictionaryIterator
public int getNEntries()
DictionaryIterator
getNEntries
in interface DictionaryIterator
public void setActualOnly(boolean actualOnly)
DictionaryIterator
true
.
Note that this option really only makes sense for dictionaries that use cased entries.
setActualOnly
in interface DictionaryIterator
actualOnly
- if true
only entries with names
that actually occurred in the indexed material will be returned.
If false
all entries will be returned.public QueryEntry get(java.lang.Object name)
DictionaryIterator
get
in interface DictionaryIterator
public QueryEntry get(int id)
DictionaryIterator
get
in interface DictionaryIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |