Interface IndividualContentIndex<C,U>
- Type Parameters:
C
- type of the content identifiers.U
- type of the user identifiers.
- All Superinterfaces:
DocumentMap<C>
,Index<C>
- All Known Implementing Classes:
AbstractIndividualContentIndex
,WrapperIndividualContentIndex
,WrapperIndividualForwardContentIndex
public interface IndividualContentIndex<C,U> extends Index<C>
Index that stores individual pieces for each user.
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.Integer>
getContents(U user)
Given a user identifier, obtains the list of contents published by the user.U
getUser(int contentId)
Given a content identifier, obtains the user that created it.Methods inherited from interface es.uam.eps.ir.relison.content.index.DocumentMap
getContent, getContentId, numDocs
Methods inherited from interface es.uam.eps.ir.relison.content.index.Index
getAllTerms, getDocFreq, getPostings, getTotalFreq
-
Method Details
-
getUser
Given a content identifier, obtains the user that created it.- Parameters:
contentId
- the content identifier.- Returns:
- the creator of the content.
-
getContents
Given a user identifier, obtains the list of contents published by the user.- Parameters:
user
- the user identifier- Returns:
- the list of identifiers of the contents in the index.
-