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

Move-only owner of an Arrow C Data Interface model array and schema. More...

#include <lance/detail/declarations.hpp>

Public Member Functions

 ~IndexModel ()
 
 IndexModel (IndexModel &&other) noexcept
 
IndexModel & operator= (IndexModel &&other) noexcept
 
 IndexModel (const IndexModel &)=delete
 
IndexModel & operator= (const IndexModel &)=delete
 
ArrowArray * array () noexcept
 
const ArrowSchema * schema () const noexcept
 

Static Public Member Functions

static IndexModel adopt (ArrowArray *array, ArrowSchema *schema)
 

Friends

class Dataset
 
class IvfModel
 

Detailed Description

Move-only owner of an Arrow C Data Interface model array and schema.

Definition at line 5424 of file declarations.hpp.

Constructor & Destructor Documentation

◆ ~IndexModel()

lance::IndexModel::~IndexModel ( )

◆ IndexModel() [1/2]

lance::IndexModel::IndexModel ( IndexModel && other)
noexcept

◆ IndexModel() [2/2]

lance::IndexModel::IndexModel ( const IndexModel & )
delete

Member Function Documentation

◆ adopt()

static IndexModel lance::IndexModel::adopt ( ArrowArray * array,
ArrowSchema * schema )
static

Adopt caller-produced native Arrow model structs, transferring their release responsibility to this object. Both inputs are required and are cleared to an empty state only after a complete transfer. This allows arbitrary native model dtypes and shapes to be passed to VectorIndexOptions.

◆ array()

ArrowArray * lance::IndexModel::array ( )
noexcept

◆ operator=() [1/2]

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

◆ operator=() [2/2]

IndexModel & lance::IndexModel::operator= ( IndexModel && other)
inlinenoexcept

Definition at line 5448 of file declarations.hpp.

◆ schema()

const ArrowSchema * lance::IndexModel::schema ( ) const
noexcept

Friends And Related Symbol Documentation

◆ Dataset

friend class Dataset
friend

Definition at line 5430 of file declarations.hpp.

◆ IvfModel

friend class IvfModel
friend

Definition at line 5431 of file declarations.hpp.


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