Skip to content

Commit

Permalink
Add public posting list accessor to IvfBuilder API
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildKite committed Dec 30, 2024
1 parent f71f7e0 commit f523ba5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rs/index/src/ivf/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ impl IvfBuilder {
&*self.centroids
}

pub fn posting_lists(&self) -> &dyn for<'a> PostingListStorage<'a> {
&*self.posting_lists
}

pub fn posting_lists_mut(&mut self) -> &mut dyn for<'a> PostingListStorage<'a> {
&mut *self.posting_lists
}
Expand Down

0 comments on commit f523ba5

Please sign in to comment.