|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthyspirit.application.indexing.TermFreq
public class TermFreq
Helper class to manage terms and their frequencies.
Created on 18-Jul-2005 18:28:18
| Constructor Summary | |
|---|---|
TermFreq(java.lang.String term)
Creates a new TermFreq object with frequency 1 |
|
TermFreq(java.lang.String term,
int frequency)
Creates a new TermFreq object with the given frequency |
|
| Method Summary | |
|---|---|
int |
frequency()
Returns the frequency |
void |
inc()
Increments the term frequency |
java.lang.String |
term()
Returns the term |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TermFreq(java.lang.String term,
int frequency)
term - the termfrequency - (initial) term frequencypublic TermFreq(java.lang.String term)
term - the term| Method Detail |
|---|
public void inc()
public java.lang.String term()
public int frequency()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||