|
Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
|
#include <lance/lance.h>
Public Attributes | |
| const LanceWriteOptions * | write_options |
| const LanceTransactionProperties * | transaction_properties |
| int32_t | has_enable_v2_manifest_paths |
| bool | enable_v2_manifest_paths |
| const LanceBasePathList * | initial_bases |
| const LanceUInt32List * | target_bases |
| const LanceStringList * | target_base_names_or_paths |
| int32_t | has_target_all_bases |
| bool | target_all_bases |
| const LanceBaseStoreParamsList * | base_store_params |
| bool | allow_external_blob_outside_bases |
| int32_t | external_blob_mode |
| int32_t | has_blob_pack_file_size_threshold |
| uint64_t | blob_pack_file_size_threshold |
| const struct LanceFileWriterOptions * | file_writer_options |
| const LanceSession * | session |
| const LanceStorageOptionsAccessor * | storage_options_accessor |
| const LanceCommitLock * | commit_lock |
| const LanceNativeWriteProgress * | progress |
Borrowed configuration for lance_native_write_options_new.
Every pointer is read only during that constructor call. Values, strings, native owners and callback contexts are copied or cloned into the returned handle. Presence flags preserve native None versus Some(empty) and explicit false values.
Field mapping to native WriteParams:
write_options supplies max rows/bytes, data storage version, enable_stable_row_ids, auto-cleanup and skip_auto_cleanup.transaction_properties maps to native None/Some(map) directly.enable_v2_manifest_paths maps to the create-time native field; omitted keeps the native default. Native ignores it for existing datasets.initial_bases, target_bases, target_base_names_or_paths and target_all_bases map directly, including primary-base ID 0 and dataset-URI references. Empty explicit target lists remain Some(empty) and are rejected by native resolution, not by this binding.base_store_params maps exact base-path keys to native ObjectStoreParams using the representable fields above. The primary base is not a registered BasePath, so its storage comes from the write-level accessor; native target resolution owns that rule.allow_external_blob_outside_bases, external_blob_mode and blob_pack_file_size_threshold map directly. Native validates incompatible combinations such as ingest plus allow-outside-bases.file_writer_options maps to native FileWriterOptions; its raw-file version field must be NULL because dataset file-version selection belongs in write_options.params.data_storage_version.session, storage_options_accessor and commit_lock are cloned into the handle. The caller may close the source handles after construction.progress maps to native WriteParams::progress and write_progress. No wrapper-generated events are emitted. | bool LanceNativeWriteOptionsSpec::allow_external_blob_outside_bases |
| const LanceBaseStoreParamsList* LanceNativeWriteOptionsSpec::base_store_params |
| uint64_t LanceNativeWriteOptionsSpec::blob_pack_file_size_threshold |
| const LanceCommitLock* LanceNativeWriteOptionsSpec::commit_lock |
| const struct LanceFileWriterOptions* LanceNativeWriteOptionsSpec::file_writer_options |
| int32_t LanceNativeWriteOptionsSpec::has_blob_pack_file_size_threshold |
| int32_t LanceNativeWriteOptionsSpec::has_enable_v2_manifest_paths |
| const LanceBasePathList* LanceNativeWriteOptionsSpec::initial_bases |
| const LanceNativeWriteProgress* LanceNativeWriteOptionsSpec::progress |
| const LanceSession* LanceNativeWriteOptionsSpec::session |
| const LanceStorageOptionsAccessor* LanceNativeWriteOptionsSpec::storage_options_accessor |
| const LanceStringList* LanceNativeWriteOptionsSpec::target_base_names_or_paths |
| const LanceUInt32List* LanceNativeWriteOptionsSpec::target_bases |
| const LanceTransactionProperties* LanceNativeWriteOptionsSpec::transaction_properties |
| const LanceWriteOptions* LanceNativeWriteOptionsSpec::write_options |