-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update: sstable scan doesn't require a mut sstable. * add: min number of threads for parallel search. * add: fn to search value concurrently. resolve #3 * update: sstable.write - sstable.write needs a ref to HashMap. - This allows the store to pass in the HashMap. - The Sstable does the sorting and writing. - This is also easier to parallelize from the store. * update: search We remove `scan` for the sstable, it doesn't exploit the sorted nature. Instead we provide a binary `search` api. * update: foreshadow key-value size independence. Currently the key and value can be both as large as u64. It is wasteful and forces users to use more space than needed for keys. We will offer means to configure max size for key and values separately. * update: create word sizes for keys and values separately * test: uses hashmap to write sstables. * update: parallel_search doesn't expect thread config. * update: sstable.write abstracts hashmap management. * update: use search over deprecated scan. * refactor: flush_memtable returns an error. * test: fix expect statements. * style: lint. * style: lint.
- Loading branch information
Showing
5 changed files
with
127 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
pub static WORD: usize = 8; | ||
pub static KEY_WORD: usize = WORD; | ||
pub static VALUE_WORD: usize = WORD; | ||
pub static TOMBSTONE: &[u8] = &[]; | ||
pub static RKV: &str = ".rkv"; | ||
pub static RKV: &str = "rkv"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.