iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::DeleteLoader Class Reference

Loads delete files and constructs in-memory delete indexes. More...

#include <delete_loader.h>

Public Member Functions

 DeleteLoader (std::shared_ptr< FileIO > io)
 Create a DeleteLoader.
 
Result< PositionDeleteIndexLoadPositionDeletes (std::span< const std::shared_ptr< DataFile > > delete_files, std::string_view data_file_path) const
 Load position deletes for a specific data file.
 
Result< std::unique_ptr< UncheckedStructLikeSet > > LoadEqualityDeletes (std::span< const std::shared_ptr< DataFile > > delete_files, const StructType &equality_type) const
 Load equality deletes into an in-memory set.
 

Detailed Description

Loads delete files and constructs in-memory delete indexes.

Constructor & Destructor Documentation

◆ DeleteLoader()

iceberg::DeleteLoader::DeleteLoader ( std::shared_ptr< FileIO io)
explicit

Create a DeleteLoader.

Parameters
ioFileIO instance for reading delete files

Member Function Documentation

◆ LoadEqualityDeletes()

Result< std::unique_ptr< UncheckedStructLikeSet > > iceberg::DeleteLoader::LoadEqualityDeletes ( std::span< const std::shared_ptr< DataFile > >  delete_files,
const StructType equality_type 
) const

Load equality deletes into an in-memory set.

Parameters
delete_filesEquality delete files to load (must have content == Content::kEqualityDeletes)
equality_typeThe struct type describing the equality columns
Returns
A StructLikeSet containing the deleted rows

◆ LoadPositionDeletes()

Result< PositionDeleteIndex > iceberg::DeleteLoader::LoadPositionDeletes ( std::span< const std::shared_ptr< DataFile > >  delete_files,
std::string_view  data_file_path 
) const

Load position deletes for a specific data file.

Reads the given position delete files and returns a PositionDeleteIndex containing only the positions that apply to the specified data file path. Supports both regular position delete files and deletion vectors.

Parameters
delete_filesPosition delete files to load (must have content == Content::kPositionDeletes)
data_file_pathPath of the data file to filter positions for
Returns
A PositionDeleteIndex with deleted positions for the data file

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