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

#include <lance/detail/declarations.hpp>

Public Member Functions

 UpdateMap (LanceUpdateMap *map)
 
 UpdateMap (const std::vector< std::string > &keys, const std::vector< std::optional< std::string > > &values, bool replace)
 
 UpdateMap (UpdateMap &&) noexcept=default
 
UpdateMap & operator= (UpdateMap &&) noexcept=default
 
 UpdateMap (const UpdateMap &)=delete
 
UpdateMap & operator= (const UpdateMap &)=delete
 
size_t count () const
 
std::string key_at (size_t index) const
 
std::optional< std::string > value_at (size_t index) const
 
bool replace () const
 
UpdateMap clone () const
 Clone this snapshot into an independently owned handle.
 
const LanceUpdateMap * c_handle () const
 

Detailed Description

Owned native UpdateMap snapshot. Move-only.

Entries are an ordered list, not a hash map: duplicate keys, order and absent values are native data. replace == true makes native commit code clear the target and insert only entries with values; replace == false upserts values and removes keys whose value is std::nullopt.

Definition at line 790 of file declarations.hpp.

Constructor & Destructor Documentation

◆ UpdateMap() [1/4]

lance::UpdateMap::UpdateMap ( LanceUpdateMap * map)
explicit

◆ UpdateMap() [2/4]

lance::UpdateMap::UpdateMap ( const std::vector< std::string > & keys,
const std::vector< std::optional< std::string > > & values,
bool replace )

Construct from parallel key/value lists. Every key is required; a std::nullopt value is a native None entry. Duplicate keys and input order are preserved.

◆ UpdateMap() [3/4]

lance::UpdateMap::UpdateMap ( UpdateMap && )
defaultnoexcept

◆ UpdateMap() [4/4]

lance::UpdateMap::UpdateMap ( const UpdateMap & )
delete

Member Function Documentation

◆ c_handle()

const LanceUpdateMap * lance::UpdateMap::c_handle ( ) const

◆ clone()

UpdateMap lance::UpdateMap::clone ( ) const

Clone this snapshot into an independently owned handle.

◆ count()

size_t lance::UpdateMap::count ( ) const

◆ key_at()

std::string lance::UpdateMap::key_at ( size_t index) const

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ replace()

bool lance::UpdateMap::replace ( ) const

◆ value_at()

std::optional< std::string > lance::UpdateMap::value_at ( size_t index) const

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