|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DictionaryIterator
An interface for iterators for a dictionary.
| 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. |
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 interface java.util.Iterator |
|---|
hasNext, next, remove |
| Method Detail |
|---|
int estimateSize()
int getNEntries()
QueryEntry get(java.lang.Object name)
QueryEntry get(int id)
void setActualOnly(boolean actualOnly)
true.
Note that this option really only makes sense for dictionaries that use cased entries.
actualOnly - if true only entries with names
that actually occurred in the indexed material will be returned.
If false all entries will be returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||