Package com.google.appengine.api.search
Class SortOptions
java.lang.Object
com.google.appengine.api.search.SortOptions
Definition of how to sort documents. You may specify zero or more sort
expressions and set a match scorer. If you have a large index, it is
advisable to set a limit.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintgetLimit()static SortOptions.BuilderCreates and returns a SortOptions Builder.toString()
-
Method Details
-
getSortExpressions
- Returns:
- a list of sort expressions representing a multi-dimensional sort
-
getMatchScorer
- Returns:
- a
MatchScorerused to score the documents
-
getLimit
public int getLimit()- Returns:
- the limit on the number of documents to score or sort
-
newBuilder
Creates and returns a SortOptions Builder.- Returns:
- a new
SortOptions.Builder. Set the parameters for SortOptions on the Builder, and use theSortOptions.Builder.build()method to create a concrete instance of SortOptions
-
toString
-