|
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 | |
| BlobDescriptorArrayBuilder (const std::string &column) | |
| void | append_inline (const uint8_t *data, size_t len) |
| void | append_inline (const std::vector< uint8_t > &data) |
| void | append_null () |
| void | append_packed (uint32_t blob_id, uint64_t offset, uint64_t length) |
| void | append_packed (uint32_t blob_id, const BlobRange &range) |
| void | extend_packed (uint32_t blob_id, const std::vector< BlobRange > &ranges) |
| void | append_dedicated (uint32_t blob_id, uint64_t length) |
| void | append_managed (const std::string &uri, uint64_t offset, uint64_t length, std::optional< uint32_t > base_id=std::nullopt) |
| void | append_external (uint32_t base_id, const std::string &uri, uint64_t offset, uint64_t length) |
| void | push_external (const std::string &uri, std::optional< BlobRange > range=std::nullopt) |
| void | field (ArrowSchema *out) const |
Export the prepared field. out is caller-owned and must be released. | |
| void | finish (ArrowArray *out_array, ArrowSchema *out_schema) |
RAII owner of a native writer-prepared blob descriptor array builder.
This produces the prepared Arrow field/array consumed by dataset writes. finish() consumes the native builder; field() remains available afterwards, while later appends throw. The wrapper does not write payload objects or commit data.
Definition at line 2352 of file declarations.hpp.
|
explicit |
| void lance::BlobDescriptorArrayBuilder::append_dedicated | ( | uint32_t | blob_id, |
| uint64_t | length ) |
| void lance::BlobDescriptorArrayBuilder::append_external | ( | uint32_t | base_id, |
| const std::string & | uri, | ||
| uint64_t | offset, | ||
| uint64_t | length ) |
| void lance::BlobDescriptorArrayBuilder::append_inline | ( | const std::vector< uint8_t > & | data | ) |
| void lance::BlobDescriptorArrayBuilder::append_inline | ( | const uint8_t * | data, |
| size_t | len ) |
| void lance::BlobDescriptorArrayBuilder::append_managed | ( | const std::string & | uri, |
| uint64_t | offset, | ||
| uint64_t | length, | ||
| std::optional< uint32_t > | base_id = std::nullopt ) |
| void lance::BlobDescriptorArrayBuilder::append_null | ( | ) |
| void lance::BlobDescriptorArrayBuilder::append_packed | ( | uint32_t | blob_id, |
| const BlobRange & | range ) |
| void lance::BlobDescriptorArrayBuilder::append_packed | ( | uint32_t | blob_id, |
| uint64_t | offset, | ||
| uint64_t | length ) |
| void lance::BlobDescriptorArrayBuilder::extend_packed | ( | uint32_t | blob_id, |
| const std::vector< BlobRange > & | ranges ) |
| void lance::BlobDescriptorArrayBuilder::field | ( | ArrowSchema * | out | ) | const |
Export the prepared field. out is caller-owned and must be released.
| void lance::BlobDescriptorArrayBuilder::finish | ( | ArrowArray * | out_array, |
| ArrowSchema * | out_schema ) |
Consume the native builder and export its prepared array and field. Both outputs are caller-owned and must each be released exactly once.
| void lance::BlobDescriptorArrayBuilder::push_external | ( | const std::string & | uri, |
| std::optional< BlobRange > | range = std::nullopt ) |