|
Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
|
#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 |
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.
|
explicit |
| 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.
|
defaultnoexcept |
|
delete |
| const LanceUpdateMap * lance::UpdateMap::c_handle | ( | ) | const |
| UpdateMap lance::UpdateMap::clone | ( | ) | const |
Clone this snapshot into an independently owned handle.
| size_t lance::UpdateMap::count | ( | ) | const |
| std::string lance::UpdateMap::key_at | ( | size_t | index | ) | const |
| bool lance::UpdateMap::replace | ( | ) | const |
| std::optional< std::string > lance::UpdateMap::value_at | ( | size_t | index | ) | const |