public class TermDocCount
extends java.lang.Object
SimpleLuceneIndex.getTermAndDocCounts(String[])
and contains the term count, the total number of documents containing the term and a
list of fields in which the term appears.Constructor and Description |
---|
TermDocCount() |
Modifier and Type | Method and Description |
---|---|
void |
addField(java.lang.String field)
Adds a feature to the Field attribute of the TermDocCount object
|
void |
addToDocCount(int add)
Adds a feature to the ToDocCount attribute of the TermDocCount object
|
void |
addToTermCount(int add)
Adds a feature to the ToTermCount attribute of the TermDocCount object
|
int |
compareTo(java.lang.Object o)
Compares two TermDocCount by the term count.
|
int |
getDocCount()
Gets the docCount attribute of the TermDocCount object
|
java.util.ArrayList |
getFields()
Gets the fields attribute of the TermDocCount object
|
int |
getTermCount()
Gets the termCount attribute of the TermDocCount object
|
public void addToTermCount(int add)
add
- The feature to be added to the ToTermCount attributepublic void addToDocCount(int add)
add
- The feature to be added to the ToDocCount attributepublic void addField(java.lang.String field)
field
- The feature to be added to the Field attributepublic int getTermCount()
public int getDocCount()
public java.util.ArrayList getFields()
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
o
- The TermDocCount to comparejava.lang.ClassCastException
- If the object passed in is not a proper.