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

Tracks deleted row positions using a bitmap. More...

#include <position_delete_index.h>

Public Member Functions

void Delete (int64_t pos)
 Mark a position as deleted.
 
void Delete (int64_t pos_start, int64_t pos_end)
 Mark a range of positions as deleted [pos_start, pos_end).
 
bool IsDeleted (int64_t pos) const
 Check if a position is deleted.
 
bool IsEmpty () const
 Check if the index is empty (no positions deleted).
 
int64_t Cardinality () const
 Get the number of deleted positions.
 
void Merge (const PositionDeleteIndex &other)
 Merge another index into this one.
 

Detailed Description

Tracks deleted row positions using a bitmap.

This class provides a domain-specific API for position deletes in Iceberg MOR (merge-on-read) tables. Positions are 0-based row indices within a data file.

Member Function Documentation

◆ Delete() [1/2]

void iceberg::PositionDeleteIndex::Delete ( int64_t  pos)

Mark a position as deleted.

Parameters
posThe 0-based row position to delete

◆ Delete() [2/2]

void iceberg::PositionDeleteIndex::Delete ( int64_t  pos_start,
int64_t  pos_end 
)

Mark a range of positions as deleted [pos_start, pos_end).

Parameters
pos_startStart position (inclusive)
pos_endEnd position (exclusive)

◆ IsDeleted()

bool iceberg::PositionDeleteIndex::IsDeleted ( int64_t  pos) const

Check if a position is deleted.

Parameters
posThe 0-based row position to check
Returns
true if the position is deleted, false otherwise

◆ Merge()

void iceberg::PositionDeleteIndex::Merge ( const PositionDeleteIndex other)

Merge another index into this one.

Parameters
otherThe index to merge (union operation)

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