Filters supported by complex vector API operations. More...
Go to the source code of this file.
Functions | |
auto | pinecone::types::filters::eq (std::string key, metadata_value value) noexcept -> binary_filter |
Equality filter, tests if a key is == to a value. More... | |
auto | pinecone::types::filters::ne (std::string key, metadata_value value) noexcept -> binary_filter |
Not-equal filter, tests if a key is != to a value. More... | |
auto | pinecone::types::filters::gt (std::string key, metadata_value value) noexcept -> binary_filter |
Greater-than filter, tests if a key is > than a value. More... | |
auto | pinecone::types::filters::gte (std::string key, metadata_value value) noexcept -> binary_filter |
Greater-than-or-equal filter, tests if a key is >= a value. More... | |
auto | pinecone::types::filters::lt (std::string key, metadata_value value) noexcept -> binary_filter |
Less-than filter, tests if a key is < a value. More... | |
auto | pinecone::types::filters::lte (std::string key, metadata_value value) noexcept -> binary_filter |
Less-than-or-equal filter, tests if a key is <= a value. More... | |
template<typename iter > | |
auto | pinecone::types::filters::in (std::string key, iter values) noexcept -> array_filter< iter > |
In filter, tests if a key is in a range of values. More... | |
template<typename iter > | |
auto | pinecone::types::filters::nin (std::string key, iter values) noexcept -> array_filter< iter > |
Not-in filter, tests is a key is not in a range of values. More... | |
template<typename... ts> | |
auto | pinecone::types::filters::and_ (ts... filters) noexcept -> combination_filter< ts... > |
And filter, tests if all contained filters are true. More... | |
template<typename... ts> | |
auto | pinecone::types::filters::or_ (ts... filters) noexcept -> combination_filter< ts... > |
Or filter, tests is any contained filter is true. More... | |
auto | pinecone::types::filters::none () noexcept -> no_filter |
No filter, always true. More... | |
Filters supported by complex vector API operations.
All operations that accept metadata filters accept only a single top-level filter instance when the operation is dispatched; however, because of how these filters compose, it is possible to supply as many filters to an operation as you wish. For example, to find values with a "key" metadata value greater than 0 and less than 10, we would use the and
combination filter with the gt
and lt
binary filters:
Definition in file filters.hpp.
|
inlinenoexcept |
And filter, tests if all contained filters are true.
ts |
filters |
Definition at line 137 of file filters.hpp.
Referenced by pinecone::types::filters::and_().
|
inlinenoexcept |
Equality filter, tests if a key is == to a value.
key | |
value |
Definition at line 36 of file filters.hpp.
Referenced by pinecone::types::filters::eq().
|
inlinenoexcept |
Greater-than filter, tests if a key is > than a value.
key | |
value |
Definition at line 60 of file filters.hpp.
Referenced by pinecone::types::filters::gt().
|
inlinenoexcept |
Greater-than-or-equal filter, tests if a key is >= a value.
key | |
value |
Definition at line 72 of file filters.hpp.
Referenced by pinecone::types::filters::gte().
|
inlinenoexcept |
In filter, tests if a key is in a range of values.
iter |
key | |
values |
Definition at line 110 of file filters.hpp.
Referenced by pinecone::types::filters::in().
|
inlinenoexcept |
Less-than filter, tests if a key is < a value.
key | |
value |
Definition at line 84 of file filters.hpp.
Referenced by pinecone::types::filters::lt().
|
inlinenoexcept |
Less-than-or-equal filter, tests if a key is <= a value.
key | |
value |
Definition at line 96 of file filters.hpp.
Referenced by pinecone::types::filters::lte().
|
inlinenoexcept |
Not-equal filter, tests if a key is != to a value.
key | |
value |
Definition at line 48 of file filters.hpp.
Referenced by pinecone::types::filters::ne().
|
inlinenoexcept |
Not-in filter, tests is a key is not in a range of values.
iter |
key | |
values |
Definition at line 124 of file filters.hpp.
Referenced by pinecone::types::filters::nin().
|
inlinenoexcept |
No filter, always true.
Definition at line 160 of file filters.hpp.
Referenced by pinecone::types::filters::none().
|
inlinenoexcept |
Or filter, tests is any contained filter is true.
ts |
filters |
Definition at line 150 of file filters.hpp.
Referenced by pinecone::types::filters::or_().