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 Summary
Modifier and Type Method Description FreqVectorgetContentVector(int contentId)Obtains a user vector.longgetTermFreq(java.lang.String term, int contentId)Obtains the term frequency of a term in a user vector.Methods inherited from interface es.uam.eps.ir.relison.content.index.DocumentMap
getContent, getContentId, numDocsMethods inherited from interface es.uam.eps.ir.relison.content.index.Index
getAllTerms, getDocFreq, getPostings, getTotalFreq
-
Method Details
-
getContentVector
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.IOExceptionObtains 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.
-