pub struct SemiJoinSet { /* private fields */ }Expand description
Distinct bound key set for EXISTS / NOT EXISTS semi-join.
Implementations§
Source§impl SemiJoinSet
impl SemiJoinSet
Sourcepub fn new(n_keys: usize) -> Self
pub fn new(n_keys: usize) -> Self
Empty key set for n_keys correlation columns (0 = any inner row).
Sourcepub fn insert_batch(
&mut self,
batch: &TermBatch,
key_cols: &[&TermColumn],
) -> Result<usize, ExecError>
pub fn insert_batch( &mut self, batch: &TermBatch, key_cols: &[&TermColumn], ) -> Result<usize, ExecError>
Insert bound keys from batch. Returns how many new keys landed.
Sourcepub fn contains_row(
&self,
key_cols: &[&TermColumn],
row: usize,
) -> Result<bool, ExecError>
pub fn contains_row( &self, key_cols: &[&TermColumn], row: usize, ) -> Result<bool, ExecError>
Whether this probe row’s bound key is in the set. Unbound is a miss.
Sourcepub fn probe_keep(
&self,
batch: &TermBatch,
key_cols: &[&TermColumn],
anti: bool,
) -> Result<Vec<usize>, ExecError>
pub fn probe_keep( &self, batch: &TermBatch, key_cols: &[&TermColumn], anti: bool, ) -> Result<Vec<usize>, ExecError>
Probe-side row indexes to keep. anti is NOT EXISTS (keep misses).
Unbound probe keys are never a hit; callers that implement SPARQL substitution for unbound correlation must handle those rows themselves.
Sourcepub fn estimated_bytes(&self) -> u64
pub fn estimated_bytes(&self) -> u64
Approximate RAM for the key set.
Auto Trait Implementations§
impl Freeze for SemiJoinSet
impl RefUnwindSafe for SemiJoinSet
impl Send for SemiJoinSet
impl Sync for SemiJoinSet
impl Unpin for SemiJoinSet
impl UnsafeUnpin for SemiJoinSet
impl UnwindSafe for SemiJoinSet
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