Represents an existing index in a collection.
More...
#include <cbl++/QueryIndex.hh>
|
| std::string | name () const |
| | The index's name.
|
| Collection | collection () const |
| | A index's collection.
|
| IndexUpdater | beginUpdate (size_t limit) |
| | Finds new or updated documents for which vectors need to be (re)computed and returns an IndexUpdater object for setting the computed vectors to update the index.
|
| | QueryIndex () noexcept |
| | Constructs a null reference (one that points to no object).
|
| QueryIndex & | operator= (std::nullptr_t) |
| | Releases the underlying object and resets this to a null reference.
|
| bool | valid () const |
| | Returns true if this references an object, or false if it is a null reference.
|
| | operator bool () const |
| | Returns true if this references an object (same as valid).
|
| bool | operator== (const QueryIndex &other) const |
| | Returns true if both sides reference the same object, or are both null references.
|
| bool | operator!= (const QueryIndex &other) const |
| | Returns true if the two sides reference different objects.
|
| CBLQueryIndex *_Nullable | ref () const |
| | Returns a pointer to the underlying C object (CBLQueryIndex), or NULL if this is a null reference.
|
| | QueryIndex (const QueryIndex &other) noexcept |
| | Copy constructor: creates another reference to the same object as other.
|
| | QueryIndex (QueryIndex &&other) noexcept |
| | Move constructor: takes over the reference from other, leaving it a null reference.
|
| QueryIndex & | operator= (const QueryIndex &other) noexcept |
| | Copy assignment: replaces this reference with a reference to other's object.
|
| QueryIndex & | operator= (QueryIndex &&other) noexcept |
| | Move assignment: replaces this reference with other's, leaving other a null reference.
|
Represents an existing index in a collection.
◆ QueryIndex() [1/4]
| cbl::QueryIndex::QueryIndex |
( |
| ) |
|
|
inlinenoexcept |
Constructs a null reference (one that points to no object).
◆ QueryIndex() [2/4]
(Internal) Constructs a reference wrapping, and retaining, a C object pointer.
◆ QueryIndex() [3/4]
| cbl::QueryIndex::QueryIndex |
( |
const QueryIndex & | other | ) |
|
|
inlinenoexcept |
Copy constructor: creates another reference to the same object as other.
◆ QueryIndex() [4/4]
| cbl::QueryIndex::QueryIndex |
( |
QueryIndex && | other | ) |
|
|
inlinenoexcept |
Move constructor: takes over the reference from other, leaving it a null reference.
◆ adopt()
◆ beginUpdate()
Finds new or updated documents for which vectors need to be (re)computed and returns an IndexUpdater object for setting the computed vectors to update the index.
If the index is not lazy, an error will be returned.
- Note
- ENTERPRISE EDITION ONLY
-
For updating lazy vector indexes only.
- Parameters
-
| limit | The maximum number of vectors to be computed. |
- Returns
- An IndexUpdater object for setting the computed vectors to update the index, or NULL if the index is up-to-date.
◆ collection()
◆ name()
| std::string cbl::QueryIndex::name |
( |
| ) |
const |
|
inline |
◆ operator bool()
| cbl::QueryIndex::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Returns true if this references an object (same as valid).
◆ operator!=()
| bool cbl::QueryIndex::operator!= |
( |
const QueryIndex & | other | ) |
const |
|
inline |
Returns true if the two sides reference different objects.
◆ operator=() [1/3]
Copy assignment: replaces this reference with a reference to other's object.
◆ operator=() [2/3]
Move assignment: replaces this reference with other's, leaving other a null reference.
◆ operator=() [3/3]
| QueryIndex & cbl::QueryIndex::operator= |
( |
std::nullptr_t | | ) |
|
|
inline |
Releases the underlying object and resets this to a null reference.
◆ operator==()
| bool cbl::QueryIndex::operator== |
( |
const QueryIndex & | other | ) |
const |
|
inline |
Returns true if both sides reference the same object, or are both null references.
◆ ref()
Returns a pointer to the underlying C object (CBLQueryIndex), or NULL if this is a null reference.
◆ valid()
| bool cbl::QueryIndex::valid |
( |
| ) |
const |
|
inline |
Returns true if this references an object, or false if it is a null reference.
◆ Collection
The documentation for this class was generated from the following file: