pub struct GeneralizedPostingList { /* private fields */ }Expand description
Payload-bearing, multi-document tuple storage for join results.
Invariant: entries sorted by the doc_ids tuple, no duplicates.
Implementations§
Source§impl GeneralizedPostingList
impl GeneralizedPostingList
pub fn new() -> Self
pub fn from_unsorted(entries: Vec<GeneralizedPostingEntry>) -> Self
pub fn from_sorted_unchecked(entries: Vec<GeneralizedPostingEntry>) -> Self
Sourcepub fn merge_union(&self, other: &Self) -> Self
pub fn merge_union(&self, other: &Self) -> Self
Select the union of tuple support, preserving the left payload when a tuple occurs on both sides.
Sourcepub fn merge_intersection(&self, other: &Self) -> Self
pub fn merge_intersection(&self, other: &Self) -> Self
Select the intersection of tuple support, preserving left payloads.
Sourcepub fn exclude(&self, other: &Self) -> Self
pub fn exclude(&self, other: &Self) -> Self
Preserve left entries whose tuple support is absent from other.
pub fn entries(&self) -> &[GeneralizedPostingEntry]
Sourcepub fn doc_ids_set(&self) -> BTreeSet<Vec<DocId>>
pub fn doc_ids_set(&self) -> BTreeSet<Vec<DocId>>
Materialize tuple support without payloads.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for GeneralizedPostingList
impl Clone for GeneralizedPostingList
Source§fn clone(&self) -> GeneralizedPostingList
fn clone(&self) -> GeneralizedPostingList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneralizedPostingList
impl Debug for GeneralizedPostingList
Source§impl Default for GeneralizedPostingList
impl Default for GeneralizedPostingList
Source§fn default() -> GeneralizedPostingList
fn default() -> GeneralizedPostingList
Returns the “default value” for a type. Read more
impl Eq for GeneralizedPostingList
Source§impl FromIterator<GeneralizedPostingEntry> for GeneralizedPostingList
impl FromIterator<GeneralizedPostingEntry> for GeneralizedPostingList
Source§fn from_iter<I: IntoIterator<Item = GeneralizedPostingEntry>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = GeneralizedPostingEntry>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for GeneralizedPostingList
impl PartialEq for GeneralizedPostingList
impl StructuralPartialEq for GeneralizedPostingList
Auto Trait Implementations§
impl Freeze for GeneralizedPostingList
impl RefUnwindSafe for GeneralizedPostingList
impl Send for GeneralizedPostingList
impl Sync for GeneralizedPostingList
impl Unpin for GeneralizedPostingList
impl UnsafeUnpin for GeneralizedPostingList
impl UnwindSafe for GeneralizedPostingList
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