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

#include <lance/detail/declarations.hpp>

Public Member Functions

 Operation (LanceOperation *operation)
 
 Operation (Operation &&) noexcept=default
 
Operation & operator= (Operation &&) noexcept=default
 
 Operation (const Operation &)=delete
 
Operation & operator= (const Operation &)=delete
 
OperationKind kind () const
 
uint64_t fragment_count () const
 
bool preserves_nullability () const
 
uint64_t append_fragment_count () const
 Number of fragments in an Append operation.
 
Fragment append_fragment_at (size_t index) const
 Clone one Append fragment as an independent detached fragment.
 
uint64_t restore_version () const
 Target version of a Restore operation.
 
uint32_t reserve_fragments_count () const
 Reserved fragment count of a ReserveFragments operation.
 
uint64_t update_bases_count () const
 Number of new base paths in an UpdateBases operation.
 
LanceBasePathView update_bases_at (size_t index) const
 
std::vector< BasePath > update_bases () const
 New base paths cloned from an UpdateBases operation.
 
uint64_t overwrite_fragment_count () const
 Number of fragments in an Overwrite operation.
 
Fragment overwrite_fragment_at (size_t index) const
 Clone one Overwrite fragment as an independent detached fragment.
 
LanceSchema overwrite_schema () const
 Clone the in-memory schema of an Overwrite operation.
 
bool has_config_upsert_values () const
 
uint64_t config_upsert_count () const
 Number of config upsert entries. Native None reports 0.
 
std::string config_upsert_key_at (size_t index) const
 Borrowed config upsert key by native iteration position.
 
std::string config_upsert_value_at (size_t index) const
 Borrowed config upsert value by native iteration position.
 
bool has_initial_bases () const
 
uint64_t initial_base_count () const
 Number of initial base paths. Native None reports 0.
 
LanceBasePathView initial_base_at (size_t index) const
 
std::vector< BasePath > initial_bases () const
 Initial base paths cloned from an Overwrite operation.
 
uint64_t merge_fragment_count () const
 Number of fragments in a Merge operation.
 
Fragment merge_fragment_at (size_t index) const
 Clone one Merge fragment as an independent detached fragment.
 
LanceSchema merge_schema () const
 Clone the in-memory schema of a Merge operation.
 
bool merge_preserves_nullability () const
 Native preserves_nullability assertion from a Merge operation.
 
LanceSchema project_schema () const
 Clone the in-memory schema of a Project operation.
 
bool clone_is_shallow () const
 Shallow-clone flag of a Clone operation.
 
std::optional< std::string > clone_ref_name () const
 Optional native reference name of a Clone operation.
 
uint64_t clone_ref_version () const
 Native reference version of a Clone operation.
 
std::string clone_ref_path () const
 Borrowed native reference path of a Clone operation.
 
std::optional< std::string > clone_branch_name () const
 Optional native branch name of a Clone operation.
 
std::optional< UpdateMap > config_updates () const
 Optional native config updates map from an UpdateConfig operation.
 
std::optional< UpdateMap > table_metadata_updates () const
 Optional native table metadata updates map.
 
std::optional< UpdateMap > schema_metadata_updates () const
 Optional native schema metadata updates map.
 
std::map< int32_t, UpdateMap > field_metadata_updates () const
 Per-field native metadata update maps keyed by field ID.
 
std::vector< IndexSegmentMetadata > create_index_new () const
 
std::vector< IndexSegmentMetadata > create_index_removed () const
 Removed-index metadata cloned from a CreateIndex operation.
 
uint64_t data_replacement_count () const
 Number of data replacement groups.
 
DataReplacementGroup data_replacement_at (size_t index) const
 Clone one data replacement group.
 
uint64_t data_overlay_group_count () const
 Number of data overlay groups.
 
DataOverlayGroup data_overlay_group_at (size_t index) const
 Clone one data overlay group.
 
uint64_t delete_updated_fragment_count () const
 Number of updated fragments in a Delete operation.
 
std::string delete_updated_fragment_metadata_json (size_t index) const
 Native Fragment metadata JSON for one updated Delete fragment.
 
uint64_t delete_deleted_fragment_count () const
 Number of fully deleted fragment IDs in a Delete operation.
 
uint64_t delete_deleted_fragment_id (size_t index) const
 One fully deleted fragment ID from a Delete operation.
 
std::string delete_predicate () const
 Delete predicate captured by the native operation.
 
uint64_t removed_fragment_count () const
 Number of removed fragment IDs in an Update operation.
 
uint64_t removed_fragment_id (size_t index) const
 One removed fragment ID by position.
 
uint64_t updated_fragment_count () const
 Number of updated fragments in an Update operation.
 
Fragment updated_fragment_at (size_t index) const
 Clone one updated fragment as an independent snapshot.
 
uint64_t new_fragment_count () const
 Number of new fragments in an Update operation.
 
Fragment new_fragment_at (size_t index) const
 Clone one new fragment as an independent snapshot.
 
uint64_t fields_modified_count () const
 Number of modified field IDs in an Update operation.
 
uint32_t fields_modified (size_t index) const
 One modified field ID by position.
 
uint64_t compacted_sstable_count () const
 Number of compacted SSTable entries in an Update operation.
 
CompactedSsTable compacted_sstable_at (size_t index) const
 One compacted SSTable entry by position.
 
uint64_t fields_for_preserving_frag_bitmap_count () const
 Number of preserved-fragment-bitmap field IDs in an Update operation.
 
uint32_t fields_for_preserving_frag_bitmap (size_t index) const
 One preserved-fragment-bitmap field ID by position.
 
std::optional< UpdateMode > update_mode () const
 Native update mode, distinguishing absent from both variants.
 
std::optional< KeyExistenceFilter > inserted_rows_filter () const
 Cloned inserted-rows filter, or nullopt for native None.
 
std::optional< UpdatedFragmentOffsets > updated_fragment_offsets () const
 
std::optional< std::string > update_mem_wal_dir_id () const
 
uint64_t rewrite_group_count () const
 Number of groups in a Rewrite operation.
 
RewriteGroup rewrite_group_at (size_t index) const
 Clone one Rewrite group by position.
 
uint64_t rewritten_index_count () const
 Number of rewritten indices in a Rewrite operation.
 
RewrittenIndex rewritten_index_at (size_t index) const
 Clone one rewritten index by position.
 
std::optional< IndexSegmentMetadata > frag_reuse_index () const
 Cloned in-memory fragment-reuse index, or nullopt for native None.
 
uint64_t update_mem_wal_state_compacted_sstable_count () const
 Number of flushed generation markers in an UpdateMemWalState operation.
 
CompactedSsTable update_mem_wal_state_compacted_sstable_at (size_t index) const
 Copy one flushed generation marker by position.
 
std::string update_mem_wal_state_dir_id () const
 
const LanceOperation * c_handle () const
 

Static Public Member Functions

static Operation make_overwrite (const LanceSchema &schema, const std::vector< const Fragment * > &fragments, std::optional< std::vector< std::pair< std::string, std::string > > > config_upsert_values=std::nullopt, std::optional< std::vector< BasePath > > initial_bases=std::nullopt)
 
static Operation make_merge (const LanceSchema &schema, const std::vector< const Fragment * > &fragments, bool preserves_nullability=false)
 
static Operation make_clone (bool is_shallow, std::optional< std::string > ref_name, uint64_t ref_version, std::string ref_path, std::optional< std::string > branch_name)
 
static Operation make_update_config (const UpdateConfigOptions &options)
 
static Operation make_append (const std::vector< const Fragment * > &fragments)
 
static Operation make_restore (uint64_t version)
 Construct an owned native Restore operation.
 
static Operation make_reserve_fragments (uint32_t num_fragments)
 Construct an owned native ReserveFragments operation.
 
static Operation make_update_bases (const std::vector< BasePath > &new_bases)
 
static Operation make_delete (const std::vector< const Fragment * > &updated_fragments, const std::vector< uint64_t > &deleted_fragment_ids, const std::string &predicate)
 
static Operation make_create_index (const std::vector< const IndexSegmentMetadata * > &new_indices, const std::vector< const IndexSegmentMetadata * > &removed_indices)
 
static Operation make_data_replacement (const std::vector< const DataReplacementGroup * > &replacements)
 
static Operation make_data_overlay (const std::vector< const DataOverlayGroup * > &groups)
 
static Operation make_project (const LanceSchema &schema, bool preserves_nullability=false)
 
static Operation make_update (const UpdateOperationSpec &spec)
 
static Operation make_rewrite (const std::vector< const RewriteGroup * > &groups, const std::vector< const RewrittenIndex * > &rewritten_indices, const IndexSegmentMetadata *frag_reuse_index=nullptr)
 
static Operation make_update_mem_wal_state (const std::vector< CompactedSsTable > &compacted_sstables)
 
static Operation make_update_mem_wal_state_with_dir_id (const std::vector< CompactedSsTable > &compacted_sstables, const std::string &dir_id)
 

Detailed Description

Owned native Operation snapshot. Move-only; closing the source Transaction does not invalidate this handle.

Definition at line 1112 of file declarations.hpp.

Constructor & Destructor Documentation

◆ Operation() [1/3]

lance::Operation::Operation ( LanceOperation * operation)
explicit

◆ Operation() [2/3]

lance::Operation::Operation ( Operation && )
defaultnoexcept

◆ Operation() [3/3]

lance::Operation::Operation ( const Operation & )
delete

Member Function Documentation

◆ append_fragment_at()

Fragment lance::Operation::append_fragment_at ( size_t index) const

Clone one Append fragment as an independent detached fragment.

◆ append_fragment_count()

uint64_t lance::Operation::append_fragment_count ( ) const

Number of fragments in an Append operation.

◆ c_handle()

const LanceOperation * lance::Operation::c_handle ( ) const

◆ clone_branch_name()

std::optional< std::string > lance::Operation::clone_branch_name ( ) const

Optional native branch name of a Clone operation.

◆ clone_is_shallow()

bool lance::Operation::clone_is_shallow ( ) const

Shallow-clone flag of a Clone operation.

◆ clone_ref_name()

std::optional< std::string > lance::Operation::clone_ref_name ( ) const

Optional native reference name of a Clone operation.

◆ clone_ref_path()

std::string lance::Operation::clone_ref_path ( ) const

Borrowed native reference path of a Clone operation.

◆ clone_ref_version()

uint64_t lance::Operation::clone_ref_version ( ) const

Native reference version of a Clone operation.

◆ compacted_sstable_at()

CompactedSsTable lance::Operation::compacted_sstable_at ( size_t index) const

One compacted SSTable entry by position.

◆ compacted_sstable_count()

uint64_t lance::Operation::compacted_sstable_count ( ) const

Number of compacted SSTable entries in an Update operation.

◆ config_updates()

std::optional< UpdateMap > lance::Operation::config_updates ( ) const

Optional native config updates map from an UpdateConfig operation.

◆ config_upsert_count()

uint64_t lance::Operation::config_upsert_count ( ) const

Number of config upsert entries. Native None reports 0.

◆ config_upsert_key_at()

std::string lance::Operation::config_upsert_key_at ( size_t index) const

Borrowed config upsert key by native iteration position.

◆ config_upsert_value_at()

std::string lance::Operation::config_upsert_value_at ( size_t index) const

Borrowed config upsert value by native iteration position.

◆ create_index_new()

std::vector< IndexSegmentMetadata > lance::Operation::create_index_new ( ) const

New-index metadata cloned from a CreateIndex operation. Each returned value is independent of this operation handle.

◆ create_index_removed()

std::vector< IndexSegmentMetadata > lance::Operation::create_index_removed ( ) const

Removed-index metadata cloned from a CreateIndex operation.

◆ data_overlay_group_at()

DataOverlayGroup lance::Operation::data_overlay_group_at ( size_t index) const

Clone one data overlay group.

◆ data_overlay_group_count()

uint64_t lance::Operation::data_overlay_group_count ( ) const

Number of data overlay groups.

◆ data_replacement_at()

DataReplacementGroup lance::Operation::data_replacement_at ( size_t index) const

Clone one data replacement group.

◆ data_replacement_count()

uint64_t lance::Operation::data_replacement_count ( ) const

Number of data replacement groups.

◆ delete_deleted_fragment_count()

uint64_t lance::Operation::delete_deleted_fragment_count ( ) const

Number of fully deleted fragment IDs in a Delete operation.

◆ delete_deleted_fragment_id()

uint64_t lance::Operation::delete_deleted_fragment_id ( size_t index) const

One fully deleted fragment ID from a Delete operation.

◆ delete_predicate()

std::string lance::Operation::delete_predicate ( ) const

Delete predicate captured by the native operation.

◆ delete_updated_fragment_count()

uint64_t lance::Operation::delete_updated_fragment_count ( ) const

Number of updated fragments in a Delete operation.

◆ delete_updated_fragment_metadata_json()

std::string lance::Operation::delete_updated_fragment_metadata_json ( size_t index) const

Native Fragment metadata JSON for one updated Delete fragment.

◆ field_metadata_updates()

std::map< int32_t, UpdateMap > lance::Operation::field_metadata_updates ( ) const

Per-field native metadata update maps keyed by field ID.

◆ fields_for_preserving_frag_bitmap()

uint32_t lance::Operation::fields_for_preserving_frag_bitmap ( size_t index) const

One preserved-fragment-bitmap field ID by position.

◆ fields_for_preserving_frag_bitmap_count()

uint64_t lance::Operation::fields_for_preserving_frag_bitmap_count ( ) const

Number of preserved-fragment-bitmap field IDs in an Update operation.

◆ fields_modified()

uint32_t lance::Operation::fields_modified ( size_t index) const

One modified field ID by position.

◆ fields_modified_count()

uint64_t lance::Operation::fields_modified_count ( ) const

Number of modified field IDs in an Update operation.

◆ frag_reuse_index()

std::optional< IndexSegmentMetadata > lance::Operation::frag_reuse_index ( ) const

Cloned in-memory fragment-reuse index, or nullopt for native None.

◆ fragment_count()

uint64_t lance::Operation::fragment_count ( ) const

Fragment count for Append/Overwrite. Other native variants throw LANCE_ERR_NOT_SUPPORTED until their typed wrappers are added.

◆ has_config_upsert_values()

bool lance::Operation::has_config_upsert_values ( ) const

Whether the Overwrite operation carries native Some config upserts. Some(empty) is distinct from None.

◆ has_initial_bases()

bool lance::Operation::has_initial_bases ( ) const

Whether the Overwrite operation carries native Some initial bases. Some(empty) is distinct from None.

◆ initial_base_at()

LanceBasePathView lance::Operation::initial_base_at ( size_t index) const

Borrowed initial base path from an Overwrite operation. The strings remain valid until this operation handle is closed.

◆ initial_base_count()

uint64_t lance::Operation::initial_base_count ( ) const

Number of initial base paths. Native None reports 0.

◆ initial_bases()

std::vector< BasePath > lance::Operation::initial_bases ( ) const

Initial base paths cloned from an Overwrite operation.

◆ inserted_rows_filter()

std::optional< KeyExistenceFilter > lance::Operation::inserted_rows_filter ( ) const

Cloned inserted-rows filter, or nullopt for native None.

◆ kind()

OperationKind lance::Operation::kind ( ) const

◆ make_append()

static Operation lance::Operation::make_append ( const std::vector< const Fragment * > & fragments)
static

Construct an owned native Append operation. Fragment handles are borrowed and their complete native metadata is copied.

◆ make_clone()

static Operation lance::Operation::make_clone ( bool is_shallow,
std::optional< std::string > ref_name,
uint64_t ref_version,
std::string ref_path,
std::optional< std::string > branch_name )
static

Construct an owned native Clone operation. ref_name == std::nullopt maps to native None; an engaged empty string is Some(""). branch_name follows the same mapping. Native commit owns shallow publication and deep-clone rejection.

◆ make_create_index()

static Operation lance::Operation::make_create_index ( const std::vector< const IndexSegmentMetadata * > & new_indices,
const std::vector< const IndexSegmentMetadata * > & removed_indices )
static

Construct an owned native CreateIndex operation. Metadata handles are borrowed and their complete native values are copied. Native Operation::CreateIndex owns replacement, name and coverage semantics.

◆ make_data_overlay()

static Operation lance::Operation::make_data_overlay ( const std::vector< const DataOverlayGroup * > & groups)
static

Construct an owned native DataOverlay operation. Group handles are borrowed and cloned in input order. Native commit validation remains authoritative for fragment existence, coverage and layout.

◆ make_data_replacement()

static Operation lance::Operation::make_data_replacement ( const std::vector< const DataReplacementGroup * > & replacements)
static

Construct an owned native DataReplacement operation. Group handles are borrowed and copied in input order. Native commit validation remains authoritative.

◆ make_delete()

static Operation lance::Operation::make_delete ( const std::vector< const Fragment * > & updated_fragments,
const std::vector< uint64_t > & deleted_fragment_ids,
const std::string & predicate )
static

Construct an owned native Delete operation. The fragment handles are borrowed and their complete native metadata is copied. Deleted IDs and the predicate are copied. Native commit validation remains authoritative.

◆ make_merge()

static Operation lance::Operation::make_merge ( const LanceSchema & schema,
const std::vector< const Fragment * > & fragments,
bool preserves_nullability = false )
static

Construct an owned native Merge operation. fragments is the final native fragment list. preserves_nullability is stored unchanged as the caller's assertion; native commit owns schema-change and conflict validation.

◆ make_overwrite()

static Operation lance::Operation::make_overwrite ( const LanceSchema & schema,
const std::vector< const Fragment * > & fragments,
std::optional< std::vector< std::pair< std::string, std::string > > > config_upsert_values = std::nullopt,
std::optional< std::vector< BasePath > > initial_bases = std::nullopt )
static

Construct an owned native Overwrite operation from a native schema and borrowed fragment handles. Fragment metadata is copied. Native commit assigns fresh fragment IDs and rejects fragments with deletion files. config_upsert_values == std::nullopt maps to native None; an engaged empty vector maps to Some(empty). initial_bases follows the same presence mapping.

◆ make_project()

static Operation lance::Operation::make_project ( const LanceSchema & schema,
bool preserves_nullability = false )
static

Construct an owned native Project operation from a native schema. preserves_nullability is stored unchanged as the caller's explicit assertion that the projection does not tighten nullability; conflict and rebase semantics belong to Lance core. The schema is cloned.

◆ make_reserve_fragments()

static Operation lance::Operation::make_reserve_fragments ( uint32_t num_fragments)
static

Construct an owned native ReserveFragments operation.

◆ make_restore()

static Operation lance::Operation::make_restore ( uint64_t version)
static

Construct an owned native Restore operation.

◆ make_rewrite()

static Operation lance::Operation::make_rewrite ( const std::vector< const RewriteGroup * > & groups,
const std::vector< const RewrittenIndex * > & rewritten_indices,
const IndexSegmentMetadata * frag_reuse_index = nullptr )
static

Construct an owned native Rewrite operation. Groups and rewritten indices are cloned from their handles. frag_reuse_index may be null for native None. It is in-memory only, so an explicit protobuf round trip drops it.

◆ make_update()

static Operation lance::Operation::make_update ( const UpdateOperationSpec & spec)
static

Construct an owned native Update operation. Fragment handles are borrowed and their complete native metadata is copied. Native commit validation owns schema coverage, conflict detection and row-version behavior; no policy is applied here.

◆ make_update_bases()

static Operation lance::Operation::make_update_bases ( const std::vector< BasePath > & new_bases)
static

Construct an owned native UpdateBases operation. Native commit validation owns conflict detection and zero-ID allocation.

◆ make_update_config()

static Operation lance::Operation::make_update_config ( const UpdateConfigOptions & options)
static

Construct an owned native UpdateConfig operation. Every map is cloned; native commit applies replacement and incremental semantics.

◆ make_update_mem_wal_state()

static Operation lance::Operation::make_update_mem_wal_state ( const std::vector< CompactedSsTable > & compacted_sstables)
static

Construct an owned native UpdateMemWalState operation from flushed generation markers. Native merge-insert validation owns shard existence, generation ordering and atomicity.

◆ make_update_mem_wal_state_with_dir_id()

static Operation lance::Operation::make_update_mem_wal_state_with_dir_id ( const std::vector< CompactedSsTable > & compacted_sstables,
const std::string & dir_id )
static

Construct an UpdateMemWalState operation for a specific MemWAL directory. Pass an empty dir_id for a legacy MemWAL. Native commit rejects a stale or removed identifier.

◆ merge_fragment_at()

Fragment lance::Operation::merge_fragment_at ( size_t index) const

Clone one Merge fragment as an independent detached fragment.

◆ merge_fragment_count()

uint64_t lance::Operation::merge_fragment_count ( ) const

Number of fragments in a Merge operation.

◆ merge_preserves_nullability()

bool lance::Operation::merge_preserves_nullability ( ) const

Native preserves_nullability assertion from a Merge operation.

◆ merge_schema()

LanceSchema lance::Operation::merge_schema ( ) const

Clone the in-memory schema of a Merge operation.

◆ new_fragment_at()

Fragment lance::Operation::new_fragment_at ( size_t index) const

Clone one new fragment as an independent snapshot.

◆ new_fragment_count()

uint64_t lance::Operation::new_fragment_count ( ) const

Number of new fragments in an Update operation.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ overwrite_fragment_at()

Fragment lance::Operation::overwrite_fragment_at ( size_t index) const

Clone one Overwrite fragment as an independent detached fragment.

◆ overwrite_fragment_count()

uint64_t lance::Operation::overwrite_fragment_count ( ) const

Number of fragments in an Overwrite operation.

◆ overwrite_schema()

LanceSchema lance::Operation::overwrite_schema ( ) const

Clone the in-memory schema of an Overwrite operation.

◆ preserves_nullability()

bool lance::Operation::preserves_nullability ( ) const

Native preserves_nullability assertion from a Merge or Project operation. Other kinds throw LANCE_ERR_NOT_SUPPORTED.

◆ project_schema()

LanceSchema lance::Operation::project_schema ( ) const

Clone the in-memory schema of a Project operation.

◆ removed_fragment_count()

uint64_t lance::Operation::removed_fragment_count ( ) const

Number of removed fragment IDs in an Update operation.

◆ removed_fragment_id()

uint64_t lance::Operation::removed_fragment_id ( size_t index) const

One removed fragment ID by position.

◆ reserve_fragments_count()

uint32_t lance::Operation::reserve_fragments_count ( ) const

Reserved fragment count of a ReserveFragments operation.

◆ restore_version()

uint64_t lance::Operation::restore_version ( ) const

Target version of a Restore operation.

◆ rewrite_group_at()

RewriteGroup lance::Operation::rewrite_group_at ( size_t index) const

Clone one Rewrite group by position.

◆ rewrite_group_count()

uint64_t lance::Operation::rewrite_group_count ( ) const

Number of groups in a Rewrite operation.

◆ rewritten_index_at()

RewrittenIndex lance::Operation::rewritten_index_at ( size_t index) const

Clone one rewritten index by position.

◆ rewritten_index_count()

uint64_t lance::Operation::rewritten_index_count ( ) const

Number of rewritten indices in a Rewrite operation.

◆ schema_metadata_updates()

std::optional< UpdateMap > lance::Operation::schema_metadata_updates ( ) const

Optional native schema metadata updates map.

◆ table_metadata_updates()

std::optional< UpdateMap > lance::Operation::table_metadata_updates ( ) const

Optional native table metadata updates map.

◆ update_bases()

std::vector< BasePath > lance::Operation::update_bases ( ) const

New base paths cloned from an UpdateBases operation.

◆ update_bases_at()

LanceBasePathView lance::Operation::update_bases_at ( size_t index) const

Borrowed new base path from an UpdateBases operation. The strings remain valid until this operation handle is closed.

◆ update_bases_count()

uint64_t lance::Operation::update_bases_count ( ) const

Number of new base paths in an UpdateBases operation.

◆ update_mem_wal_dir_id()

std::optional< std::string > lance::Operation::update_mem_wal_dir_id ( ) const

MemWAL directory identifier named by an Update operation, or nullopt for native None. An engaged empty string denotes a legacy MemWAL.

◆ update_mem_wal_state_compacted_sstable_at()

CompactedSsTable lance::Operation::update_mem_wal_state_compacted_sstable_at ( size_t index) const

Copy one flushed generation marker by position.

◆ update_mem_wal_state_compacted_sstable_count()

uint64_t lance::Operation::update_mem_wal_state_compacted_sstable_count ( ) const

Number of flushed generation markers in an UpdateMemWalState operation.

◆ update_mem_wal_state_dir_id()

std::string lance::Operation::update_mem_wal_state_dir_id ( ) const

MemWAL directory identifier named by an UpdateMemWalState operation. An empty string denotes the legacy _mem_wal directory.

◆ update_mode()

std::optional< UpdateMode > lance::Operation::update_mode ( ) const

Native update mode, distinguishing absent from both variants.

◆ updated_fragment_at()

Fragment lance::Operation::updated_fragment_at ( size_t index) const

Clone one updated fragment as an independent snapshot.

◆ updated_fragment_count()

uint64_t lance::Operation::updated_fragment_count ( ) const

Number of updated fragments in an Update operation.

◆ updated_fragment_offsets()

std::optional< UpdatedFragmentOffsets > lance::Operation::updated_fragment_offsets ( ) const

Cloned updated-fragment offsets, or nullopt for native None. A present but empty value is preserved.


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