Couchbase C++ SDK 1.0.4 (rev. 5355b0f)
Loading...
Searching...
No Matches
numeric_range_facet Class Reference

A facet that categorizes rows into numerical ranges (or buckets) provided by the user. More...

#include <couchbase/numeric_range_facet.hxx>

Inheritance diagram for numeric_range_facet:
Inheritance graph

Public Member Functions

 numeric_range_facet (std::string field, std::vector< numeric_range > ranges)
 
 numeric_range_facet (std::string field, std::uint32_t size, std::vector< numeric_range > ranges)
 
auto encode () const -> encoded_search_facet override
 
- Public Member Functions inherited from search_facet
virtual ~search_facet ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from search_facet
 search_facet (std::string field, std::uint32_t size)
 
 search_facet (std::string field)
 
- Protected Attributes inherited from search_facet
std::string field_
 
std::optional< std::uint32_t > size_ {}
 

Detailed Description

A facet that categorizes rows into numerical ranges (or buckets) provided by the user.

Constructor & Destructor Documentation

◆ numeric_range_facet() [1/2]

numeric_range_facet ( std::string field,
std::vector< numeric_range > ranges )
inline

◆ numeric_range_facet() [2/2]

numeric_range_facet ( std::string field,
std::uint32_t size,
std::vector< numeric_range > ranges )
inline

Member Function Documentation

◆ encode()

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

Implements search_facet.


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