Interface ForwardIndex<C>

All Superinterfaces:
DocumentMap<C>, Index<C>
All Known Implementing Classes:
LuceneForwardIndex, WrapperIndividualForwardContentIndex

public interface ForwardIndex<C>
extends Index<C>
Interface for defining a forward index.
  • Method Details

    • getContentVector

      FreqVector getContentVector​(int contentId) throws java.io.IOException
      Obtains a user vector.
      Parameters:
      contentId - identifier of the content in the index.
      Returns:
      a frequency vector for the corresponding content.
      Throws:
      java.io.IOException - if something fails while reading the index.
    • getTermFreq

      long getTermFreq​(java.lang.String term, int contentId) throws java.io.IOException
      Obtains the term frequency of a term in a user vector.
      Parameters:
      term - the term to look up.
      contentId - the content identifier
      Returns:
      the frequency of the term in the content vector
      Throws:
      java.io.IOException - if something fails while reading the value.