org.mymedialite.data
Interface ITimedRatings

All Superinterfaces:
java.util.Comparator<java.lang.Integer>, IDataSet, IRatings, ITimedDataSet
All Known Implementing Classes:
TimedRatings, TimedRatingsProxy

public interface ITimedRatings
extends IRatings, ITimedDataSet

Interface for rating datasets with time information.


Method Summary
 void add(int user_id, int item_id, double rating, java.util.Date time)
          Add a rating event including time information.
 
Methods inherited from interface org.mymedialite.data.IRatings
add, add, add, average, countByItem, countByUser, get, get, get, maxRating, minRating, removeAt, set, size, tryGet, tryGet, values
 
Methods inherited from interface org.mymedialite.data.ITimedDataSet
compare, earliestTime, latestTime, times
 
Methods inherited from interface org.mymedialite.data.IDataSet
allItems, allUsers, buildItemIndices, buildRandomIndex, buildUserIndices, byItem, byUser, getIndex, getIndex, getItems, getUsers, items, maxItemID, maxUserID, randomIndex, removeItem, removeUser, tryGetIndex, tryGetIndex, users
 
Methods inherited from interface java.util.Comparator
equals
 

Method Detail

add

void add(int user_id,
         int item_id,
         double rating,
         java.util.Date time)
Add a rating event including time information. It is up to the user of a class implementing this interface to decide whether the DateTime object represent local time, UTC, or any other time.

Parameters:
user_id - the user ID
item_id - the item ID
rating - the rating value
time - a Date specifying the time of the rating event