|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.search.checkers.SortSpecChecker
public class SortSpecChecker
Checks the values of a SortSpec
.
Field Summary | |
---|---|
static int |
DEFAULT_LIMIT
The default number of documents to score. |
static int |
MAXIMUM_LIMIT
The maximum number of documents that can be requested to be scored. |
Constructor Summary | |
---|---|
SortSpecChecker()
|
Method Summary | |
---|---|
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. |
static SortSpec |
checkValid(SortSpec spec)
Checks the ScorerSpec is valid, specifically checking the limit
on number of documents to score is not too large. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAXIMUM_LIMIT
public static final int DEFAULT_LIMIT
Constructor Detail |
---|
public SortSpecChecker()
Method Detail |
---|
public static int checkLimit(int limit)
limit
- the maximum number of documents to score in the search
java.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 check
java.lang.IllegalArgumentException
- if the spec is invalidpublic static SortSpec checkValid(SortSpec spec)
ScorerSpec
is valid, specifically checking the limit
on number of documents to score is not too large.
spec
- the ScorerSpec
to check
java.lang.IllegalArgumentException
- if the spec is invalid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |