pub fn compact_segment(
segment_data: &[u8],
deletes: &DeleteBitmap,
schema: &ColumnarSchema,
profile_tag: u8,
) -> Result<CompactionResult, ColumnarError>Expand description
Compact a single segment by removing deleted rows.
Reads the segment, skips rows marked in the delete bitmap, and writes
a new segment with only live rows. Returns None segment if all rows
were deleted.