edu.qut.cs.rcmd.core.model.tag.impl
Class MemoryBasedTagModel

java.lang.Object
  extended by edu.qut.cs.rcmd.core.model.tag.impl.MemoryBasedTagModel
All Implemented Interfaces:
TagModel

public class MemoryBasedTagModel
extends Object
implements TagModel


Constructor Summary
MemoryBasedTagModel(Iterable<UserTagging> userTaggings)
           
 
Method Summary
 Set<String> getAllTags()
           
 Set<Long> getItemIDs(long userID)
           
 org.apache.mahout.cf.taste.impl.common.FastIDSet getItemIDs(long userID, String tag)
           
 Map<org.apache.mahout.common.Pair<Long,String>,Integer> getItemTaggingHistory(long itemId)
           
 Map<Long,Set<String>> getItemTags(long... items)
           
 Map<String,org.apache.mahout.cf.taste.impl.common.FastIDSet> getTagAuthors(String... tags)
           
 Map<String,org.apache.mahout.cf.taste.impl.common.FastIDSet> getTaggedItems(String... tags)
           
 Map<org.apache.mahout.common.Pair<Long,String>,Integer> getUserTaggingHistory(long userId)
           
 Iterable<UserTagging> getUserTaggings()
           
 Map<Long,Set<String>> getUserTags(long... userIds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryBasedTagModel

public MemoryBasedTagModel(Iterable<UserTagging> userTaggings)
Method Detail

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.