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

#include <lance/detail/declarations.hpp>

Public Member Functions

 DatasetDelta (LanceDatasetDelta *delta)
 
 DatasetDelta (DatasetDelta &&) noexcept=default
 
DatasetDelta & operator= (DatasetDelta &&) noexcept=default
 
 DatasetDelta (const DatasetDelta &)=delete
 
DatasetDelta & operator= (const DatasetDelta &)=delete
 
std::vector< Transaction > list_transactions () const
 
ArrowStream get_inserted_rows () const
 
ArrowStream get_updated_rows () const
 
ArrowStream get_upserted_rows () const
 
ArrowStream get_deleted_row_ids () const
 

Detailed Description

Native version-diff handle. Reusable: list_transactions and every get_* stream may be called repeatedly and in any order; each returned stream owns its state after this (and the dataset) handle closes. Row-change and deleted-ID streams require stable row IDs at both nonzero endpoints; version 0 is the empty snapshot. Native rejection surfaces as lance::Error with LANCE_ERR_INVALID_ARGUMENT when requesting a stream.

Definition at line 5305 of file declarations.hpp.

Constructor & Destructor Documentation

◆ DatasetDelta() [1/3]

lance::DatasetDelta::DatasetDelta ( LanceDatasetDelta * delta)
explicit

◆ DatasetDelta() [2/3]

lance::DatasetDelta::DatasetDelta ( DatasetDelta && )
defaultnoexcept

◆ DatasetDelta() [3/3]

lance::DatasetDelta::DatasetDelta ( const DatasetDelta & )
delete

Member Function Documentation

◆ get_deleted_row_ids()

ArrowStream lance::DatasetDelta::get_deleted_row_ids ( ) const

Stream the deleted row ids across the delta's range into a returned ArrowStream. The single column is the native stable row-id; native resolution, version-zero behavior and error stages are authoritative. The stream stays valid after this delta (and its dataset) handle closes. On error nothing is returned and this delta remains usable.

◆ get_inserted_rows()

ArrowStream lance::DatasetDelta::get_inserted_rows ( ) const

Stream the rows inserted across the delta's range into a returned ArrowStream. The stream owns the native state it needs, so it stays valid after this delta (and its dataset) handle closes. On error nothing is returned and this delta remains usable.

◆ get_updated_rows()

ArrowStream lance::DatasetDelta::get_updated_rows ( ) const

Stream the rows updated across the delta's range into a returned ArrowStream. The stream owns its native state and stays valid after this delta (and its dataset) handle closes. On error nothing is returned and this delta remains usable.

◆ get_upserted_rows()

ArrowStream lance::DatasetDelta::get_upserted_rows ( ) const

Stream the rows upserted across the delta's range into a returned ArrowStream. The stream owns its native state and stays valid after this delta (and its dataset) handle closes. On error nothing is returned and this delta remains usable.

◆ list_transactions()

std::vector< Transaction > lance::DatasetDelta::list_transactions ( ) const

List the transactions committed between the delta's begin and end versions. Each element is an independently owned Transaction. Every element is adopted before the shared array guard releases the untouched remainder, so a mid-loop exception frees the rest exactly once.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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