pub struct FacetsUpdateBulk<'i> { /* private fields */ }Expand description
Algorithm to insert elememts into the facet_id_(string/f64)_docids databases
by rebuilding the database “from scratch”.
First, the new elements are inserted into the level 0 of the database. Then, the higher levels are cleared and recomputed from the content of level 0.
Implementations§
Source§impl<'i> FacetsUpdateBulk<'i>
impl<'i> FacetsUpdateBulk<'i>
pub fn new( index: &'i Index, field_ids: Vec<FieldId>, facet_type: FacetType, delta_data: Merger<BufReader<File>, MergeDeladdCboRoaringBitmaps>, group_size: u8, min_level_size: u8, ) -> FacetsUpdateBulk<'i>
pub fn new_not_updating_level_0( index: &'i Index, field_ids: Vec<FieldId>, facet_type: FacetType, ) -> FacetsUpdateBulk<'i>
pub fn execute(self, wtxn: &mut RwTxn<'_>) -> Result<()>
Auto Trait Implementations§
impl<'i> Freeze for FacetsUpdateBulk<'i>
impl<'i> RefUnwindSafe for FacetsUpdateBulk<'i>
impl<'i> Send for FacetsUpdateBulk<'i>
impl<'i> Sync for FacetsUpdateBulk<'i>
impl<'i> Unpin for FacetsUpdateBulk<'i>
impl<'i> UnwindSafe for FacetsUpdateBulk<'i>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more