public final class MultiRescorerProvider extends AbstractRescorerProvider
RescorerProvider
s.
It will filter an item if any of the given instances filter it, and will rescore by applying
the rescorings in the given order.MultiRescorer
Modifier and Type | Method and Description |
---|---|
Rescorer |
getMostActiveUsersRescorer(List<String> args) |
Rescorer |
getMostPopularItemsRescorer(List<String> args) |
Rescorer |
getMostSimilarItemsRescorer(List<String> args) |
Rescorer |
getRecommendRescorer(List<String> userIDs,
List<String> args) |
Rescorer |
getRecommendToAnonymousRescorer(List<String> itemIDs,
List<String> args) |
static RescorerProvider |
of(RescorerProvider... providers) |
public static RescorerProvider of(RescorerProvider... providers)
providers
- RescorerProvider
s to aggregateRescorerProvider
which combines the rescoring of the given implementationsIllegalArgumentException
- if providers
is empty or nullpublic Rescorer getRecommendRescorer(List<String> userIDs, List<String> args)
getRecommendRescorer
in interface RescorerProvider
getRecommendRescorer
in class AbstractRescorerProvider
userIDs
- user(s) for which recommendations are being made, which may be needed
in the rescoring logic.args
- arguments, if any, that should be used when making the Rescorer
.
This is additional information from the request that may be necessary to its logic,
like current location. What it means is up to the implementation.null
public Rescorer getRecommendToAnonymousRescorer(List<String> itemIDs, List<String> args)
getRecommendToAnonymousRescorer
in interface RescorerProvider
getRecommendToAnonymousRescorer
in class AbstractRescorerProvider
itemIDs
- items that the anonymous user is associated toargs
- arguments, if any, that should be used when making the Rescorer
.
This is additional information from the request that may be necessary to its logic,
like current location. What it means is up to the implementation.null
public Rescorer getMostPopularItemsRescorer(List<String> args)
getMostPopularItemsRescorer
in interface RescorerProvider
getMostPopularItemsRescorer
in class AbstractRescorerProvider
args
- arguments, if any, that should be used when making the Rescorer
.
This is additional information from the request that may be necessary to its logic,
like current location. What it means is up to the implementation.null
public Rescorer getMostActiveUsersRescorer(List<String> args)
getMostActiveUsersRescorer
in interface RescorerProvider
getMostActiveUsersRescorer
in class AbstractRescorerProvider
args
- arguments, if any, that should be used when making the Rescorer
.
This is additional information from the request that may be necessary to its logic,
like current location. What it means is up to the implementation.null
public Rescorer getMostSimilarItemsRescorer(List<String> args)
getMostSimilarItemsRescorer
in interface RescorerProvider
getMostSimilarItemsRescorer
in class AbstractRescorerProvider
args
- arguments, if any, that should be used when making the Rescorer
.
This is additional information from the request that may be necessary to its logic,
like current location. What it means is up to the implementation.null
Copyright © 2014–2018. All rights reserved.