|
Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
|
#include <lance/detail/declarations.hpp>
Public Attributes | |
| std::function< bool(const BatchUDFInfo &, ArrowArray &)> | get_batch |
| std::function< void(const BatchUDFInfo &, ArrowArray &, ArrowSchema &)> | insert_batch |
| std::function< std::optional< std::string >(uint32_t)> | get_fragment |
| std::function< void(uint64_t, const std::string &)> | insert_fragment |
Optional native UDF checkpoint store.
get_batch returns true on a hit, false on a miss, and throws on error. insert_batch receives mutable owned Arrow values: it may move both structs into its storage and clear the source release callbacks. The library releases any ownership left in those arguments after the callback returns. get_fragment returns opaque native Fragment JSON or std::nullopt on a miss. insert_fragment receives the native u64 Fragment ID and borrowed JSON. All four callbacks are required when the store is engaged.
Definition at line 1591 of file declarations.hpp.
| std::function<bool( const BatchUDFInfo&, ArrowArray&)> lance::UDFCheckpointStore::get_batch |
Definition at line 1594 of file declarations.hpp.
| std::function<std::optional<std::string>(uint32_t)> lance::UDFCheckpointStore::get_fragment |
Definition at line 1601 of file declarations.hpp.
| std::function<void( const BatchUDFInfo&, ArrowArray&, ArrowSchema&)> lance::UDFCheckpointStore::insert_batch |
Definition at line 1599 of file declarations.hpp.
| std::function<void(uint64_t, const std::string&)> lance::UDFCheckpointStore::insert_fragment |
Definition at line 1603 of file declarations.hpp.