public abstract class AbstractCandidateItemsStrategy extends Object implements CandidateItemsStrategy, MostSimilarItemsCandidateItemsStrategy
| Constructor and Description |
|---|
AbstractCandidateItemsStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected FastIDSet |
doGetCandidateItems(long[] preferredItemIDs,
DataModel dataModel) |
protected abstract FastIDSet |
doGetCandidateItems(long[] preferredItemIDs,
DataModel dataModel,
boolean includeKnownItems) |
FastIDSet |
getCandidateItems(long[] itemIDs,
DataModel dataModel) |
FastIDSet |
getCandidateItems(long userID,
PreferenceArray preferencesFromUser,
DataModel dataModel,
boolean includeKnownItems) |
void |
refresh(Collection<Refreshable> alreadyRefreshed)
Triggers "refresh" -- whatever that means -- of the implementation.
|
protected FastIDSet doGetCandidateItems(long[] preferredItemIDs, DataModel dataModel) throws TasteException
TasteExceptionpublic FastIDSet getCandidateItems(long userID, PreferenceArray preferencesFromUser, DataModel dataModel, boolean includeKnownItems) throws TasteException
getCandidateItems in interface CandidateItemsStrategyTasteExceptionpublic FastIDSet getCandidateItems(long[] itemIDs, DataModel dataModel) throws TasteException
getCandidateItems in interface MostSimilarItemsCandidateItemsStrategyTasteExceptionprotected abstract FastIDSet doGetCandidateItems(long[] preferredItemIDs, DataModel dataModel, boolean includeKnownItems) throws TasteException
TasteExceptionpublic void refresh(Collection<Refreshable> alreadyRefreshed)
Refreshable
Triggers "refresh" -- whatever that means -- of the implementation. The general contract is that any
Refreshable should always leave itself in a consistent, operational state, and that the refresh
atomically updates internal state from old to new.
refresh in interface RefreshablealreadyRefreshed - Refreshables that are known to have already been
refreshed as a result of an initial call to a {#refresh(Collection)} method on some
object. This ensure that objects in a refresh dependency graph aren't refreshed twice
needlessly.Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.