public class SimpleCachingItemScorer extends AbstractItemScorer
Constructor and Description |
---|
SimpleCachingItemScorer(ItemScorer sc) |
Modifier and Type | Method and Description |
---|---|
SparseVector |
getCache() |
long |
getId() |
void |
score(long user,
MutableSparseVector scores)
For each input, check with the cached user id.
|
score, score
@Inject public SimpleCachingItemScorer(ItemScorer sc)
public void score(long user, @Nonnull MutableSparseVector scores)
user
- The user ID.scores
- The score vector.public long getId()
public SparseVector getCache()