org.mymedialite.data
Class TimedRatingsProxy

java.lang.Object
  extended by org.mymedialite.data.DataSet
      extended by org.mymedialite.data.Ratings
          extended by org.mymedialite.data.TimedRatings
              extended by org.mymedialite.data.TimedRatingsProxy
All Implemented Interfaces:
java.util.Comparator<java.lang.Integer>, IDataSet, IRatings, ITimedDataSet, ITimedRatings

public class TimedRatingsProxy
extends TimedRatings

Data structure that allows access to selected entries of a timed rating data structure.


Field Summary
 
Fields inherited from class org.mymedialite.data.TimedRatings
earliestTime, latestTime, times
 
Fields inherited from class org.mymedialite.data.Ratings
maxRating, minRating, values
 
Fields inherited from class org.mymedialite.data.DataSet
byItem, byUser, items, maxItemID, maxUserID, users
 
Constructor Summary
TimedRatingsProxy(ITimedRatings ratings, IntList indices)
          Create a TimedRatingsProxy object.
 
Method Summary
 
Methods inherited from class org.mymedialite.data.TimedRatings
add, add, compare, earliestTime, latestTime, times
 
Methods inherited from class org.mymedialite.data.Ratings
add, add, average, buildByItemCounts, buildByUserCounts, countByItem, countByUser, get, get, get, isReadOnly, maxRating, minRating, removeAt, removeItem, removeUser, set, tryGet, tryGet, tryGetIndex, values
 
Methods inherited from class org.mymedialite.data.DataSet
allItems, allUsers, buildItemIndices, buildRandomIndex, buildUserIndices, byItem, byUser, getIndex, getIndex, getItems, getUsers, items, maxItemID, maxUserID, randomIndex, size, tryGetIndex, users
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mymedialite.data.IRatings
add, add, average, countByItem, countByUser, get, get, get, maxRating, minRating, removeAt, set, size, tryGet, tryGet, values
 
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
 

Constructor Detail

TimedRatingsProxy

public TimedRatingsProxy(ITimedRatings ratings,
                         IntList indices)
Create a TimedRatingsProxy object.

Parameters:
ratings - a ratings data structure
indices - an index list pointing to entries in the ratings