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

#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
 

Detailed Description

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.

Definition at line 6858 of file lance.h.

Member Data Documentation

◆ allow_external_blob_outside_bases

bool LanceNativeWriteOptionsSpec::allow_external_blob_outside_bases

Definition at line 6869 of file lance.h.

◆ base_store_params

const LanceBaseStoreParamsList* LanceNativeWriteOptionsSpec::base_store_params

Definition at line 6868 of file lance.h.

◆ blob_pack_file_size_threshold

uint64_t LanceNativeWriteOptionsSpec::blob_pack_file_size_threshold

Definition at line 6872 of file lance.h.

◆ commit_lock

const LanceCommitLock* LanceNativeWriteOptionsSpec::commit_lock

Definition at line 6876 of file lance.h.

◆ enable_v2_manifest_paths

bool LanceNativeWriteOptionsSpec::enable_v2_manifest_paths

Definition at line 6862 of file lance.h.

◆ external_blob_mode

int32_t LanceNativeWriteOptionsSpec::external_blob_mode

Definition at line 6870 of file lance.h.

◆ file_writer_options

const struct LanceFileWriterOptions* LanceNativeWriteOptionsSpec::file_writer_options

Definition at line 6873 of file lance.h.

◆ has_blob_pack_file_size_threshold

int32_t LanceNativeWriteOptionsSpec::has_blob_pack_file_size_threshold

Definition at line 6871 of file lance.h.

◆ has_enable_v2_manifest_paths

int32_t LanceNativeWriteOptionsSpec::has_enable_v2_manifest_paths

Definition at line 6861 of file lance.h.

◆ has_target_all_bases

int32_t LanceNativeWriteOptionsSpec::has_target_all_bases

Definition at line 6866 of file lance.h.

◆ initial_bases

const LanceBasePathList* LanceNativeWriteOptionsSpec::initial_bases

Definition at line 6863 of file lance.h.

◆ progress

const LanceNativeWriteProgress* LanceNativeWriteOptionsSpec::progress

Definition at line 6877 of file lance.h.

◆ session

const LanceSession* LanceNativeWriteOptionsSpec::session

Definition at line 6874 of file lance.h.

◆ storage_options_accessor

const LanceStorageOptionsAccessor* LanceNativeWriteOptionsSpec::storage_options_accessor

Definition at line 6875 of file lance.h.

◆ target_all_bases

bool LanceNativeWriteOptionsSpec::target_all_bases

Definition at line 6867 of file lance.h.

◆ target_base_names_or_paths

const LanceStringList* LanceNativeWriteOptionsSpec::target_base_names_or_paths

Definition at line 6865 of file lance.h.

◆ target_bases

const LanceUInt32List* LanceNativeWriteOptionsSpec::target_bases

Definition at line 6864 of file lance.h.

◆ transaction_properties

const LanceTransactionProperties* LanceNativeWriteOptionsSpec::transaction_properties

Definition at line 6860 of file lance.h.

◆ write_options

const LanceWriteOptions* LanceNativeWriteOptionsSpec::write_options

Definition at line 6859 of file lance.h.


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