Interface TermFreq

All Known Implementing Classes:
ImplTermFreq, LuceneTermFreq

public interface TermFreq
Element for storing a term and its frequency.
  • Method Summary

    Modifier and Type Method Description
    long getFreq()
    Obtains the frequency.
    java.lang.String getTerm()
    Obtains the term.
  • Method Details

    • getTerm

      java.lang.String getTerm() throws java.io.IOException
      Obtains the term.
      Returns:
      the term.
      Throws:
      java.io.IOException - if something fails while reading the term.
    • getFreq

      long getFreq() throws java.io.IOException
      Obtains the frequency.
      Returns:
      the frequency.
      Throws:
      java.io.IOException - if something fails while obtaining the frequency.