|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TermStatsDictionary
An interface for term statistics dictionaries, so that we can configure different kinds of dictionaries for different situations.
Method Summary | |
---|---|
TermStatsEntry |
getTermStats(java.lang.String term)
Gets the term statistics associated with the give term. |
void |
iterationDone()
Indicates that a reference counted iterator for this dictionary is no longer in use, so a reference may be removed. |
DictionaryIterator |
iterator()
Gets a reference-counted iterator for this dictionary. |
DictionaryIterator |
iterator(boolean ref)
Gets an iterator for this dictionary that may be reference counted. |
int |
size()
Gets the number of entries in the dictionary. |
Methods inherited from interface com.sun.labs.minion.indexer.Closeable |
---|
close, createRemoveFile, getCloseTime, setCloseTime |
Method Detail |
---|
int size()
TermStatsEntry getTermStats(java.lang.String term)
null
if that term does not occur in the indexDictionaryIterator iterator(boolean ref)
ref
- if true
then references to the iterator for a
dictionary will be counted, and the dictionary will not be allowed to be
closed until all references are released. References can be released by
calling the iterationDone
methoditerationDone()
void iterationDone()
DictionaryIterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |