|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.dir.master.selection.criteria.ResultDistributionCriterion
public class ResultDistributionCriterion
A criterion to select collections based on the number of results which should be retrieved from each collection with respect to an upper bound on the number of results required for a qiven query.
Constructor Summary | |
---|---|
ResultDistributionCriterion(int numberOfResults)
Creates an instance with a given number of result estimate. |
Method Summary | ||
---|---|---|
int |
getNumberOfResults()
Returns the number of results to retrieve, |
|
|
select(java.util.List<T> ranking)
Returns an ordered selection of a ranked list of content sources. |
|
void |
setNumberOfResults(int numberOfResult)
Sets the number of results to retrieve. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultDistributionCriterion(int numberOfResults)
numberOfResults
- the estimate.Method Detail |
---|
public int getNumberOfResults()
public void setNumberOfResults(int numberOfResult)
numberOfResult
- the number.public <T extends CollectionRank> java.util.List<ExtendedCollectionRank> select(java.util.List<T> ranking)
select
in interface SelectionCriterion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |