-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e working, needs several types of cleanup
- Loading branch information
Showing
8 changed files
with
183 additions
and
40 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mod block; | ||
mod blockfile; | ||
mod provider; | ||
pub(crate) mod provider; | ||
mod sparse_index; |
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
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
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,12 +1,12 @@ | ||
use crate::types::EmbeddingRecord; | ||
|
||
pub(super) trait SegmentWriter { | ||
fn begin_transaction(&self); | ||
fn write_records(&self, records: Vec<Box<EmbeddingRecord>>, offset_ids: Vec<u32>); | ||
fn commit_transaction(&self); | ||
fn begin_transaction(&mut self); | ||
fn write_records(&mut self, records: Vec<Box<EmbeddingRecord>>, offset_ids: Vec<Option<u32>>); | ||
fn commit_transaction(&mut self); | ||
fn rollback_transaction(&self); | ||
} | ||
|
||
pub(super) trait OffsetIdAssigner: SegmentWriter { | ||
fn assign_offset_ids(&self, records: Vec<Box<EmbeddingRecord>>) -> Vec<u32>; | ||
fn assign_offset_ids(&self, records: Vec<Box<EmbeddingRecord>>) -> Vec<Option<u32>>; | ||
} |