public final class QueryCheckerChecks values of com.google.appengine.api.search.Query.
Static Methods
checkQuery(String query)
public static String checkQuery(String query)Checks that query is not null and is parsable.
| Parameter | |
|---|---|
| Name | Description | 
| query | Stringthe query to check | 
| Returns | |
|---|---|
| Type | Description | 
| String | the checked query | 
checkValid(SearchServicePb.SearchParams params)
public static SearchServicePb.SearchParams checkValid(SearchServicePb.SearchParams params)Checks the search specification is valid, specifically, has a valid index specification, a non-null query, a non-null number of documents to return specification, a valid cursor if present, valid sort specification list, a valid collection of field names for sorting, and a valid scorer specification.
| Parameter | |
|---|---|
| Name | Description | 
| params | com.google.appengine.api.search.proto.SearchServicePb.SearchParamsthe SearchParams to check | 
| Returns | |
|---|---|
| Type | Description | 
| com.google.appengine.api.search.proto.SearchServicePb.SearchParams | this checked SearchParams | 
checkValidFast(SearchServicePb.SearchParams params)
public static SearchServicePb.SearchParams checkValidFast(SearchServicePb.SearchParams params)Performs a fast check of the search parameters. This method does not check if the query stored in the parameters parses.
| Parameter | |
|---|---|
| Name | Description | 
| params | com.google.appengine.api.search.proto.SearchServicePb.SearchParamsthe search parameters to check | 
| Returns | |
|---|---|
| Type | Description | 
| com.google.appengine.api.search.proto.SearchServicePb.SearchParams | this checked SearchParams | 
Constructors
QueryChecker()
public QueryChecker()