edu.qut.cs.rcmd.core.model.tag.impl
Class MemoryBasedTagModel
java.lang.Object
edu.qut.cs.rcmd.core.model.tag.impl.MemoryBasedTagModel
- All Implemented Interfaces:
- TagModel
public class MemoryBasedTagModel
- extends Object
- implements TagModel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryBasedTagModel
public MemoryBasedTagModel(Iterable<UserTagging> userTaggings)
getItemIDs
public Set<Long> getItemIDs(long userID)
- Specified by:
getItemIDs
in interface TagModel
getItemIDs
public org.apache.mahout.cf.taste.impl.common.FastIDSet getItemIDs(long userID,
String tag)
- Specified by:
getItemIDs
in interface TagModel
getItemTaggingHistory
public Map<org.apache.mahout.common.Pair<Long,String>,Integer> getItemTaggingHistory(long itemId)
- Specified by:
getItemTaggingHistory
in interface TagModel
getUserTaggingHistory
public Map<org.apache.mahout.common.Pair<Long,String>,Integer> getUserTaggingHistory(long userId)
- Specified by:
getUserTaggingHistory
in interface TagModel
getTaggedItems
public Map<String,org.apache.mahout.cf.taste.impl.common.FastIDSet> getTaggedItems(String... tags)
- Specified by:
getTaggedItems
in interface TagModel
getItemTags
public Map<Long,Set<String>> getItemTags(long... items)
- Specified by:
getItemTags
in interface TagModel
getTagAuthors
public Map<String,org.apache.mahout.cf.taste.impl.common.FastIDSet> getTagAuthors(String... tags)
- Specified by:
getTagAuthors
in interface TagModel
getUserTags
public Map<Long,Set<String>> getUserTags(long... userIds)
- Specified by:
getUserTags
in interface TagModel
getAllTags
public Set<String> getAllTags()
- Specified by:
getAllTags
in interface TagModel
getUserTaggings
public Iterable<UserTagging> getUserTaggings()
- Specified by:
getUserTaggings
in interface TagModel
Copyright © 2012. All Rights Reserved.