public class SortOptionsChecker
extends java.lang.Object
SortOptions.| Constructor and Description |
|---|
SortOptionsChecker() |
| Modifier and Type | Method and Description |
|---|---|
static int |
checkLimit(int limit)
Checks whether the limit on number of documents to score is between 0 and
the maximum.
|
static ScorerSpec |
checkValid(ScorerSpec spec)
Checks the
ScorerSpec is valid, specifically checking the limit
on number of documents to score is not too large. |
public static int checkLimit(int limit)
limit - the maximum number of documents to score in the searchjava.lang.IllegalArgumentException - if the limit is out of rangepublic static ScorerSpec checkValid(ScorerSpec spec)
ScorerSpec is valid, specifically checking the limit
on number of documents to score is not too large.spec - the ScorerSpec to checkjava.lang.IllegalArgumentException - if the spec is invalid