Class SortExpressionChecker
java.lang.Object
com.google.appengine.api.search.checkers.SortExpressionChecker
Checks the values of a
SortExpression
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.appengine.api.search.proto.SearchServicePb.SortSpec
checkValid
(com.google.appengine.api.search.proto.SearchServicePb.SortSpec spec) Checks theSearchServicePb.SortSpec
is valid, specifically checking the limit on number of documents to score is not too large.
-
Constructor Details
-
SortExpressionChecker
public SortExpressionChecker()
-
-
Method Details
-
checkValid
public static com.google.appengine.api.search.proto.SearchServicePb.SortSpec checkValid(com.google.appengine.api.search.proto.SearchServicePb.SortSpec spec) Checks theSearchServicePb.SortSpec
is valid, specifically checking the limit on number of documents to score is not too large.- Parameters:
spec
- theSearchServicePb.SortSpec
to check- Returns:
- the checked spec
- Throws:
IllegalArgumentException
- if the spec is invalid
-