chore(docs): refine part 1, 2

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2022-12-24 00:26:11 -05:00
parent c7acc44169
commit b263ea4fac
5 changed files with 19 additions and 1 deletions

View File

@@ -57,7 +57,11 @@ impl FileObject {
}
}
pub struct SsTable {}
pub struct SsTable {
file: FileObject,
block_metas: Vec<BlockMeta>,
block_meta_offset: usize,
}
impl SsTable {
/// Open SSTable from a file.

View File

@@ -9,6 +9,7 @@ use super::{BlockMeta, SsTable};
/// Builds an SSTable from key-value pairs.
pub struct SsTableBuilder {
pub(super) meta: Vec<BlockMeta>,
// Add other fields you need.
}
impl SsTableBuilder {