Can build indexes on new columns

This commit is contained in:
Yuriy Dupyn 2024-02-05 00:44:14 +01:00
parent 8139112934
commit b0f05f36f2
5 changed files with 110 additions and 14 deletions

View file

@ -115,4 +115,12 @@ impl StoreHeader {
self.deleted_count += 1;
self.deleted_count
}
pub fn is_column_indexed(&self, column: Column) -> bool {
self.indexed_columns[column as usize]
}
pub fn make_column_indexed(&mut self, column: Column) {
self.indexed_columns[column as usize] = true
}
}