Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
lance::IvfModel Class Reference

Move-only owner of a cloned native IVF model. More...

#include <lance/detail/declarations.hpp>

Public Member Functions

 IvfModel (IvfModel &&) noexcept=default
 
IvfModel & operator= (IvfModel &&) noexcept=default
 
 IvfModel (const IvfModel &)=delete
 
IvfModel & operator= (const IvfModel &)=delete
 
bool has_centroids () const
 
std::optional< IndexModel > centroids () const
 Owned Arrow centroids, or nullopt when the model has none.
 
uint64_t num_partitions () const
 
uint64_t dimension () const
 
uint64_t partition_size (uint64_t partition_id) const
 Native partition size. An absent partition returns 0.
 
const LanceIvfModel * c_handle () const
 

Friends

class Dataset
 

Detailed Description

Move-only owner of a cloned native IVF model.

Definition at line 5466 of file declarations.hpp.

Constructor & Destructor Documentation

◆ IvfModel() [1/2]

lance::IvfModel::IvfModel ( IvfModel && )
defaultnoexcept

◆ IvfModel() [2/2]

lance::IvfModel::IvfModel ( const IvfModel & )
delete

Member Function Documentation

◆ c_handle()

const LanceIvfModel * lance::IvfModel::c_handle ( ) const

◆ centroids()

std::optional< IndexModel > lance::IvfModel::centroids ( ) const

Owned Arrow centroids, or nullopt when the model has none.

◆ dimension()

uint64_t lance::IvfModel::dimension ( ) const

◆ has_centroids()

bool lance::IvfModel::has_centroids ( ) const

◆ num_partitions()

uint64_t lance::IvfModel::num_partitions ( ) const

◆ operator=() [1/2]

IvfModel & lance::IvfModel::operator= ( const IvfModel & )
delete

◆ operator=() [2/2]

IvfModel & lance::IvfModel::operator= ( IvfModel && )
defaultnoexcept

◆ partition_size()

uint64_t lance::IvfModel::partition_size ( uint64_t partition_id) const

Native partition size. An absent partition returns 0.

Friends And Related Symbol Documentation

◆ Dataset

friend class Dataset
friend

Definition at line 5470 of file declarations.hpp.


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