|
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 | |
| PackedBlobWriter (LancePackedBlobWriter *writer) | |
| PackedBlobWriter (PackedBlobWriter &&) noexcept=default | |
| PackedBlobWriter & | operator= (PackedBlobWriter &&) noexcept=default |
| PackedBlobWriter (const PackedBlobWriter &)=delete | |
| PackedBlobWriter & | operator= (const PackedBlobWriter &)=delete |
| uint32_t | blob_id () const |
| Native blob ID. Throws when the writer is NULL or finished. | |
| std::string | path () const |
| Native sidecar path. Throws when the writer is NULL or finished. | |
| void | write_blob (const uint8_t *data, size_t len) |
| Append one payload. A null pointer with zero length is valid. | |
| void | write_blob (const std::vector< uint8_t > &data) |
| void | write_blobs (ArrowArray *payloads, const ArrowSchema *schema) |
Move one binary ArrowArray into the writer; schema is borrowed. | |
| void | finish_array (const std::string &field_name, ArrowArray *out_array, ArrowSchema *out_schema) |
| Consume the native writer and export caller-owned prepared parts. | |
Move-only owner of a native packed blob writer.
The destructor frees the C allocation without finishing. finish_array() consumes the native writer but leaves this object allocation valid, so later calls throw LANCE_ERR_INVALID_ARGUMENT.
Definition at line 2402 of file declarations.hpp.
|
explicit |
|
defaultnoexcept |
|
delete |
| uint32_t lance::PackedBlobWriter::blob_id | ( | ) | const |
Native blob ID. Throws when the writer is NULL or finished.
| void lance::PackedBlobWriter::finish_array | ( | const std::string & | field_name, |
| ArrowArray * | out_array, | ||
| ArrowSchema * | out_schema ) |
Consume the native writer and export caller-owned prepared parts.
|
delete |
|
defaultnoexcept |
| std::string lance::PackedBlobWriter::path | ( | ) | const |
Native sidecar path. Throws when the writer is NULL or finished.
| void lance::PackedBlobWriter::write_blob | ( | const std::vector< uint8_t > & | data | ) |
| void lance::PackedBlobWriter::write_blob | ( | const uint8_t * | data, |
| size_t | len ) |
Append one payload. A null pointer with zero length is valid.
| void lance::PackedBlobWriter::write_blobs | ( | ArrowArray * | payloads, |
| const ArrowSchema * | schema ) |
Move one binary ArrowArray into the writer; schema is borrowed.