Skip to main content

load_deletion_vector

Function load_deletion_vector 

Source
pub async fn load_deletion_vector(
    store: &Arc<dyn Store>,
    dv: &DeletionVector,
) -> AilakeResult<RoaringBitmap>
Expand description

Fetch and deserialize a Deletion Vector bitmap from a Puffin .dvd file.

Uses a range GET (offset..offset+length) so only the bitmap bytes are transferred from S3 — no full file download required.

The returned bitmap contains the row positions (0-based within the data file) that have been deleted. Callers must filter HNSW results against this bitmap:

results.retain(|(row_id, _)| !bitmap.contains(row_id.as_u64() as u32));