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

#include <lance/detail/declarations.hpp>

Public Member Functions

 DedicatedBlobWriter (LanceDedicatedBlobWriter *writer)
 
 DedicatedBlobWriter (DedicatedBlobWriter &&) noexcept=default
 
DedicatedBlobWriter & operator= (DedicatedBlobWriter &&) noexcept=default
 
 DedicatedBlobWriter (const DedicatedBlobWriter &)=delete
 
DedicatedBlobWriter & operator= (const DedicatedBlobWriter &)=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 (const uint8_t *data, size_t len)
 Append bytes. Repeated calls concatenate.
 
void write (const std::vector< uint8_t > &data)
 
void finish_array (const std::string &field_name, ArrowArray *out_array, ArrowSchema *out_schema)
 Consume the native writer and export caller-owned prepared parts.
 

Detailed Description

Move-only owner of a native dedicated blob writer.

Repeated writes concatenate into one sidecar. The destructor frees the C allocation without finishing.

Definition at line 2438 of file declarations.hpp.

Constructor & Destructor Documentation

◆ DedicatedBlobWriter() [1/3]

lance::DedicatedBlobWriter::DedicatedBlobWriter ( LanceDedicatedBlobWriter * writer)
explicit

◆ DedicatedBlobWriter() [2/3]

lance::DedicatedBlobWriter::DedicatedBlobWriter ( DedicatedBlobWriter && )
defaultnoexcept

◆ DedicatedBlobWriter() [3/3]

lance::DedicatedBlobWriter::DedicatedBlobWriter ( const DedicatedBlobWriter & )
delete

Member Function Documentation

◆ blob_id()

uint32_t lance::DedicatedBlobWriter::blob_id ( ) const

Native blob ID. Throws when the writer is NULL or finished.

◆ finish_array()

void lance::DedicatedBlobWriter::finish_array ( const std::string & field_name,
ArrowArray * out_array,
ArrowSchema * out_schema )

Consume the native writer and export caller-owned prepared parts.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ path()

std::string lance::DedicatedBlobWriter::path ( ) const

Native sidecar path. Throws when the writer is NULL or finished.

◆ write() [1/2]

void lance::DedicatedBlobWriter::write ( const std::vector< uint8_t > & data)

◆ write() [2/2]

void lance::DedicatedBlobWriter::write ( const uint8_t * data,
size_t len )

Append bytes. Repeated calls concatenate.


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