public static classSortOrder.BuilderextendsObject
Public Constructor Summary
Public Method Summary
SortOrder.Builder |
addSortAscending(SortableMetadataField
sortField)
Adds the
SortableMetadataField to be used to sort the query results in
ascending order of the values of the sortField.
|
SortOrder.Builder |
addSortDescending(SortableMetadataField
sortField)
Adds the
SortableMetadataField to be used to sort the query results in
descending order of the values of the sortField.
|
SortOrder |
build()
|
Inherited Method Summary
Public Constructors
publicSortOrder.Builder()
Public Methods
publicSortOrder.Builder addSortAscending(SortableMetadataField sortField)
Adds theSortableMetadataField
to be used to sort the query results in ascending order of the values of the sortField.
Query results are sorted in the same order the fields are added.
Parameters
sortField | the field to be used to sort the query results in ascending order, see
SortableField
for the list of fields that can be used to sort query results |
---|
publicSortOrder.Builder addSortDescending(SortableMetadataField sortField)
Adds theSortableMetadataField
to be used to sort the query results in descending order of the values of the
sortField. Query results are sorted in the same order the fields are added.
Parameters
sortField | the field to be used to sort the query results in descending order, see
SortableField
for the list of fields that can be used to sort query results |
---|