Struct tantivy::fastfield::AliveBitSet
source · pub struct AliveBitSet { /* private fields */ }
Expand description
Set of alive DocId
s.
Implementations§
source§impl AliveBitSet
impl AliveBitSet
sourcepub fn open(bytes: OwnedBytes) -> AliveBitSet
pub fn open(bytes: OwnedBytes) -> AliveBitSet
Opens an alive bitset given its file.
sourcepub fn is_alive(&self, doc: DocId) -> bool
pub fn is_alive(&self, doc: DocId) -> bool
Returns true if the document is still “alive”. In other words, if it has not been deleted.
sourcepub fn is_deleted(&self, doc: DocId) -> bool
pub fn is_deleted(&self, doc: DocId) -> bool
Returns true if the document has been marked as deleted.
sourcepub fn iter_alive(&self) -> impl Iterator<Item = DocId> + '_
pub fn iter_alive(&self) -> impl Iterator<Item = DocId> + '_
Iterate over the alive doc_ids.
sourcepub fn bitset(&self) -> &ReadOnlyBitSet
pub fn bitset(&self) -> &ReadOnlyBitSet
Get underlying bitset.
sourcepub fn num_alive_docs(&self) -> usize
pub fn num_alive_docs(&self) -> usize
The number of alive documents.
sourcepub fn space_usage(&self) -> ByteCount
pub fn space_usage(&self) -> ByteCount
Summarize total space usage of this bitset.
Trait Implementations§
source§impl Clone for AliveBitSet
impl Clone for AliveBitSet
source§fn clone(&self) -> AliveBitSet
fn clone(&self) -> AliveBitSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<ReadOnlyBitSet> for AliveBitSet
impl From<ReadOnlyBitSet> for AliveBitSet
source§fn from(bitset: ReadOnlyBitSet) -> AliveBitSet
fn from(bitset: ReadOnlyBitSet) -> AliveBitSet
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AliveBitSet
impl !RefUnwindSafe for AliveBitSet
impl Send for AliveBitSet
impl Sync for AliveBitSet
impl Unpin for AliveBitSet
impl !UnwindSafe for AliveBitSet
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.