|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.index.TermDocCount
public class TermDocCount
A TermDocCount is returned by 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 Summary | |
---|---|
TermDocCount()
|
Method Summary | |
---|---|
void |
addField(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(Object o)
Compares two TermDocCount by the term count. |
int |
getDocCount()
Gets the docCount attribute of the TermDocCount object |
ArrayList |
getFields()
Gets the fields attribute of the TermDocCount object |
int |
getTermCount()
Gets the termCount attribute of the TermDocCount object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TermDocCount()
Method Detail |
---|
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(String field)
field
- The feature to be added to the Field attributepublic int getTermCount()
public int getDocCount()
public ArrayList getFields()
public int compareTo(Object o) throws ClassCastException
o
- The TermDocCount to compare
ClassCastException
- If the object passed in is not a proper.
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |