Introduce segments module

This commit is contained in:
Yuriy Dupyn 2024-02-05 03:35:43 +01:00
parent 1618bffb85
commit b13d2f04cd
8 changed files with 12 additions and 13 deletions

View file

@ -12,10 +12,10 @@ use bincode::{Decode, Encode};
use crate::binary_coding::{encode, decode};
use crate::error::{Error, DecodeErrorKind};
use crate::entry::{Entry, EntryDetailed};
use crate::entry_header::{EntryHeaderWithDataSize, EntryHeader};
use crate::store_header::StoreHeader;
use crate::storage_engine::{Store, FilePosition, Column, Result, StoreIndexes, ROWS_FILE_NAME, GARBAGE_COLLECTION_INTERMEDIATE_ROWS_FILE_NAME};
use crate::segments::entry::{Entry, EntryDetailed};
use crate::segments::entry_header::{EntryHeaderWithDataSize, EntryHeader};
use crate::segments::store_header::StoreHeader;
use crate::storage_engine::{Store, FilePosition, Column, Result, ROWS_FILE_NAME, GARBAGE_COLLECTION_INTERMEDIATE_ROWS_FILE_NAME};
use crate::index::Index;
const GARBAGE_COLLECTION_TRIGGER: usize = 100;