|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.cf.taste.impl.neighborhood.CachingUserNeighborhood
public final class CachingUserNeighborhood
A caching wrapper around an underlying UserNeighborhood
implementation.
Constructor Summary | |
---|---|
CachingUserNeighborhood(UserNeighborhood neighborhood,
DataModel dataModel)
|
Method Summary | |
---|---|
long[] |
getUserNeighborhood(long userID)
|
void |
refresh(java.util.Collection<Refreshable> alreadyRefreshed)
Triggers "refresh" -- whatever that means -- of the implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingUserNeighborhood(UserNeighborhood neighborhood, DataModel dataModel) throws TasteException
TasteException
Method Detail |
---|
public long[] getUserNeighborhood(long userID) throws TasteException
getUserNeighborhood
in interface UserNeighborhood
userID
- ID of user for which a neighborhood will be computed
TasteException
- if an error occurs while accessing datapublic void refresh(java.util.Collection<Refreshable> alreadyRefreshed)
Refreshable
Triggers "refresh" -- whatever that means -- of the implementation. The general contract is that any should always leave itself in a consistent, operational state, and that the refresh atomically updates internal state from old to new.
refresh
in interface Refreshable
alreadyRefreshed
- s that are known to have already been
refreshed as a result of an initial call to a method on some
object. This ensure that objects in a refresh dependency graph aren't refreshed twice
needlessly.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |