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 Summary

    Modifier and Type Method Description
    long getFreq​(java.lang.String term)
    The frequency of the term in the vector.
    long size()
    The number of terms in the vector.

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • size

      long size() throws java.io.IOException
      The 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.IOException
      The 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.