This commit is contained in:
Yuriy Dupyn 2024-02-02 20:45:18 +01:00
parent 3076bcd83e
commit 85ef52dfb4
2 changed files with 13 additions and 9 deletions

View file

@ -22,6 +22,8 @@ pub type FilePosition = u64;
pub struct Store<T> {
table_folder: String,
file: File,
// primary_index: Vec<Index<T, FilePosition>>>,
// indexes: Vec<Option<Index<T, HashSet<FilePosition>>>>,
header: StoreHeader,
data_type: PhantomData<T>,
@ -189,6 +191,8 @@ impl <T>Store<T> {
};
let encoded_header: Vec<u8> = header.encode()?;
// Index::new<T, FilePosition>(format!("rows", primary_column.to_string()))
let mut store = Self {
table_folder: table_folder.to_string(),
file,