public class CustomTermIndexImpl extends java.lang.Object implements CustomTermIndex
Modifier and Type | Method and Description |
---|---|
void |
cleanEntriesByMaxSize(int maxSize)
For each entry of this index, increase the frequency threshhold and
remove all terms under the frequency threshold until there are
less than
maxSize terms left in the enrty. |
void |
cleanSingletonKeys() |
void |
dropBiggerEntries(int threshholdSize,
boolean logWarning) |
java.util.List<Term> |
getTerms(java.lang.String key) |
void |
indexTerm(TermIndex termIndex,
Term term)
Adds the param term to internal index.
|
java.util.Collection<java.lang.String> |
keySet() |
void |
removeTerm(TermIndex termIndex,
Term t) |
int |
size() |
public java.util.Collection<java.lang.String> keySet()
keySet
in interface CustomTermIndex
public java.util.List<Term> getTerms(java.lang.String key)
getTerms
in interface CustomTermIndex
public void indexTerm(TermIndex termIndex, Term term)
CustomTermIndex
indexTerm
in interface CustomTermIndex
term
- The term to add to index.public void cleanSingletonKeys()
cleanSingletonKeys
in interface CustomTermIndex
public int size()
size
in interface CustomTermIndex
public void removeTerm(TermIndex termIndex, Term t)
removeTerm
in interface CustomTermIndex
public void dropBiggerEntries(int threshholdSize, boolean logWarning)
dropBiggerEntries
in interface CustomTermIndex
public void cleanEntriesByMaxSize(int maxSize)
CustomTermIndex
maxSize
terms left in the enrty.cleanEntriesByMaxSize
in interface CustomTermIndex