Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
search_sort_id Class Reference

Sorts by the document ID. More...

#include <couchbase/search_sort_id.hxx>

Inheritance diagram for search_sort_id:
Inheritance graph

Public Member Functions

 search_sort_id ()=default
 
 search_sort_id (bool descending)
 
auto descending (bool desc) -> search_sort_id &
 Set the sorting direction.
 
auto encode () const -> encoded_search_sort override
 
- Public Member Functions inherited from search_sort
virtual ~search_sort ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from search_sort
 search_sort ()=default
 
 search_sort (bool descending)
 
- Protected Attributes inherited from search_sort
std::optional< bool > descending_ {}
 

Detailed Description

Constructor & Destructor Documentation

◆ search_sort_id() [1/2]

search_sort_id ( )
default

◆ search_sort_id() [2/2]

search_sort_id ( bool descending)
inlineexplicit

Member Function Documentation

◆ descending()

auto descending ( bool desc) -> search_sort_id &

Set the sorting direction.

Parameters
desctrue for descending order, false for ascending
Returns
pointer to this
Since
1.0.0
Committed
Generally available API and should be preferred in production

◆ encode()

auto encode ( ) const -> encoded_search_sort
nodiscardoverridevirtual
Returns
encoded representation of the search facet.
Since
1.0.0
Internal
Internal interface

Implements search_sort.


The documentation for this class was generated from the following file: