Interface FreqVector
- All Superinterfaces:
java.lang.Iterable<TermFreq>
- All Known Implementing Classes:
ImplFreqVector
,LuceneFreqVector
public interface FreqVector extends java.lang.Iterable<TermFreq>
Frequency vector for forward indexes.
-
Method Details
-
size
long size() throws java.io.IOExceptionThe number of terms in the vector.- Returns:
- the number of terms in the vector.
- Throws:
java.io.IOException
- if something fails while reading the term vector.
-
getFreq
long getFreq(java.lang.String term) throws java.io.IOExceptionThe frequency of the term in the vector.- Parameters:
term
- the term.- Returns:
- the frequency of the term in the vector.
- Throws:
java.io.IOException
- if something fails while reading the vector.
-