edu.qut.cs.rcmd.core.model.tag.impl
Class MongoDBTagModel
java.lang.Object
edu.qut.cs.rcmd.core.model.tag.impl.MongoDBTagModel
- All Implemented Interfaces:
- TagModel
public class MongoDBTagModel
- extends Object
- implements TagModel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ATTR_USER_ID
public static final String DEFAULT_ATTR_USER_ID
- See Also:
- Constant Field Values
DEFAULT_ATTR_ITEM_ID
public static final String DEFAULT_ATTR_ITEM_ID
- See Also:
- Constant Field Values
DEFAULT_ATTR_TAG
public static final String DEFAULT_ATTR_TAG
- See Also:
- Constant Field Values
MongoDBTagModel
public MongoDBTagModel(com.mongodb.DBCollection tagCollection,
String attrUserId,
String attrItemId,
String attrTag)
MongoDBTagModel
public MongoDBTagModel(com.mongodb.DBCollection tagCollection)
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
getTagAuthors
public Map<String,org.apache.mahout.cf.taste.impl.common.FastIDSet> getTagAuthors(String... tags)
- Specified by:
getTagAuthors
in interface TagModel
getItemTags
public Map<Long,Set<String>> getItemTags(long... items)
- Specified by:
getItemTags
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.