Class SearchSortField
- java.lang.Object
-
- com.couchbase.client.java.search.sort.SearchSort
-
- com.couchbase.client.java.search.sort.SearchSortField
-
public class SearchSortField extends SearchSort
Sort by a field in the rows.- Since:
- 2.4.5
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchSortField
desc(boolean descending)
protected String
identifier()
The identifier for the sort type, used in the "by" field.void
injectParams(JsonObject queryJson)
SearchSortField
missing(SearchFieldMissing missing)
SearchSortField
mode(SearchFieldMode mode)
SearchSortField
type(SearchFieldType type)
-
Methods inherited from class com.couchbase.client.java.search.sort.SearchSort
byField, byGeoDistance, byId, byScore
-
-
-
-
Method Detail
-
desc
public SearchSortField desc(boolean descending)
- Overrides:
desc
in classSearchSort
-
type
public SearchSortField type(SearchFieldType type)
-
mode
public SearchSortField mode(SearchFieldMode mode)
-
missing
public SearchSortField missing(SearchFieldMissing missing)
-
identifier
protected String identifier()
Description copied from class:SearchSort
The identifier for the sort type, used in the "by" field.- Specified by:
identifier
in classSearchSort
-
injectParams
public void injectParams(JsonObject queryJson)
- Overrides:
injectParams
in classSearchSort
-
-