java.lang.Object
es.uam.eps.ir.relison.content.index.freq.impl.ImplTermFreq
- All Implemented Interfaces:
TermFreq
public class ImplTermFreq
extends java.lang.Object
implements TermFreq
Implementation of the TermFreq class
-
Field Summary
Fields
Modifier and Type |
Field |
Description |
private long |
freq |
The frequency.
|
private java.lang.String |
term |
The term
|
-
Constructor Summary
Constructors
Constructor |
Description |
ImplTermFreq(java.lang.String term,
long freq) |
Constructor.
|
-
Method Summary
Modifier and Type |
Method |
Description |
long |
getFreq() |
Obtains the frequency.
|
java.lang.String |
getTerm() |
Obtains the term.
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
private final java.lang.String term
The term
-
private final long freq
The frequency.
-
Constructor Details
-
public ImplTermFreq(java.lang.String term,
long freq)
Constructor.
- Parameters:
term
- the term.
freq
- the frequency of the term.
-
Method Details
-
public java.lang.String getTerm()
Description copied from interface: TermFreq
Obtains the term.
- Specified by:
getTerm
in interface TermFreq
- Returns:
- the term.
-
public long getFreq()
Description copied from interface: TermFreq
Obtains the frequency.
- Specified by:
getFreq
in interface TermFreq
- Returns:
- the frequency.