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

#include <lance/detail/declarations.hpp>

Public Types

using FragmentCallback
 
using StatsCallback = std::function<void(const NativeWriteStats&)>
 

Public Attributes

FragmentCallback begin_fragment
 
FragmentCallback complete_fragment
 
StatsCallback write_stats
 

Detailed Description

C++ progress callbacks for a dataset write.

Fragment callbacks may throw lance::Error or another exception; the wrapper converts it to a native callback error. The stats callback has no native error channel, so exceptions from it are swallowed to keep the C ABI boundary sound. Callbacks may run concurrently from native worker threads.

Definition at line 655 of file declarations.hpp.

Member Typedef Documentation

◆ FragmentCallback

Initial value:
std::function<void(const FragmentWriteProgressInfo&)>

Definition at line 656 of file declarations.hpp.

◆ StatsCallback

using lance::NativeWriteProgress::StatsCallback = std::function<void(const NativeWriteStats&)>

Definition at line 658 of file declarations.hpp.

Member Data Documentation

◆ begin_fragment

FragmentCallback lance::NativeWriteProgress::begin_fragment

Definition at line 660 of file declarations.hpp.

◆ complete_fragment

FragmentCallback lance::NativeWriteProgress::complete_fragment

Definition at line 661 of file declarations.hpp.

◆ write_stats

StatsCallback lance::NativeWriteProgress::write_stats

Definition at line 662 of file declarations.hpp.


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