|
XVector
|
RAII wrapper for xvecIvfFlatIndexTag. More...
#include <xvec_ivf_flat_index.hpp>
Public Member Functions | |
| virtual | ~IvfFlatIndex () |
| IvfFlatIndex (IvfFlatIndex &&other) noexcept | |
| IvfFlatIndex & | operator= (IvfFlatIndex &&other) noexcept |
| IvfFlatIndex (const IvfFlatIndex &)=delete | |
| IvfFlatIndex & | operator= (const IvfFlatIndex &)=delete |
| xvecIvfFlatIndexTag * | handle () const noexcept |
| Get the underlying C API handle. More... | |
Static Public Member Functions | |
| static IvfFlatIndex | fromFaissFile (xvecExecutionContextTag *context, const std::string &path) |
| Load an IVF-Flat index from a Faiss file. More... | |
| static IvfFlatIndex | fromDescriptor (xvecExecutionContextTag *context, const xvecIvfFlatDescriptor &descriptor) |
| Load an IVF-Flat index from a FAISS-free descriptor. More... | |
RAII wrapper for xvecIvfFlatIndexTag.
Manages the lifetime of an IVF-Flat index. The index is loaded via named factory methods and destroyed in the destructor. Supports move semantics but not copying.
Definition at line 58 of file xvec_ivf_flat_index.hpp.
|
virtual |
|
noexcept |
|
delete |
|
static |
Load an IVF-Flat index from a FAISS-free descriptor.
| context | Execution context handle (not owned). |
| descriptor | Fully-populated index descriptor (borrowed for the call). |
| xvec::Error | if loading fails. |
|
static |
Load an IVF-Flat index from a Faiss file.
| context | Execution context handle (not owned). |
| path | Path to the Faiss index file (.faiss). |
| xvec::Error | if loading fails. |
|
noexcept |
Get the underlying C API handle.
|
delete |
|
noexcept |