pub struct FacetsUpdateIncrementalInner {
pub db: Database<FacetGroupKeyCodec<BytesRefCodec>, FacetGroupValueCodec>,
pub group_size: u8,
pub min_level_size: u8,
pub max_group_size: u8,
}Expand description
Implementation of FacetsUpdateIncremental that is independent of milli’s Index type
Fields§
§db: Database<FacetGroupKeyCodec<BytesRefCodec>, FacetGroupValueCodec>§group_size: u8§min_level_size: u8§max_group_size: u8Implementations§
Source§impl FacetsUpdateIncrementalInner
impl FacetsUpdateIncrementalInner
Sourcepub fn modify(
&self,
txn: &mut RwTxn<'_>,
field_id: u16,
facet_value: &[u8],
add_docids: Option<&RoaringBitmap>,
del_docids: Option<&RoaringBitmap>,
) -> Result<bool>
pub fn modify( &self, txn: &mut RwTxn<'_>, field_id: u16, facet_value: &[u8], add_docids: Option<&RoaringBitmap>, del_docids: Option<&RoaringBitmap>, ) -> Result<bool>
Modify the given facet value and corresponding document ids in the database. If no more document ids correspond to the facet value, delete it completely.
§Return
Returns true if some tree-nodes of the highest level have been removed or added implying a potential
addition or deletion of a facet level.
Otherwise returns false if the tree-nodes have been modified in place.
Auto Trait Implementations§
impl Freeze for FacetsUpdateIncrementalInner
impl RefUnwindSafe for FacetsUpdateIncrementalInner
impl Send for FacetsUpdateIncrementalInner
impl Sync for FacetsUpdateIncrementalInner
impl Unpin for FacetsUpdateIncrementalInner
impl UnwindSafe for FacetsUpdateIncrementalInner
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