pub struct Scan<V> { /* private fields */ }Expand description
A flat scan of every record, on a chosen code path.
It reads the value columns in tiles of 16,384 records, running every query of a batch over a tile before moving to the next, so a batch reads the set from memory once. It needs nothing but the records: no index, no extra memory.
Implementations§
Trait Implementations§
Source§impl<V: Value> Search<V> for Scan<V>
impl<V: Value> Search<V> for Scan<V>
Source§fn variant(&self) -> String
fn variant(&self) -> String
A short name for reports, such as
scan/avx512 or multi-index/4x16.Source§fn id(&self, position: usize) -> Option<u64>
fn id(&self, position: usize) -> Option<u64>
The id of the record at
position, if the records carry ids. Read moreSource§fn collect(
&self,
queries: &[V],
radius: u32,
share: Share,
stop: &Stop,
out: &mut [HitList<'_>],
) -> bool
fn collect( &self, queries: &[V], radius: u32, share: Share, stop: &Stop, out: &mut [HitList<'_>], ) -> bool
Source§fn plan(
&self,
queries: &[V],
radius: u32,
threads: usize,
stop: &Stop,
) -> Planning
fn plan( &self, queries: &[V], radius: u32, threads: usize, stop: &Stop, ) -> Planning
Decide how to answer each of
queries within radius, and on how many of the threads
given, at least 1. search_batch calls it once a call, before any collect, hands each
query’s plan to collect on its HitList, and reports it in Found::plan. Read moreAuto Trait Implementations§
impl<V> Forget for Scan<V>
impl<V> Freeze for Scan<V>
impl<V> Move for Scan<V>
impl<V> RefUnwindSafe for Scan<V>
impl<V> Send for Scan<V>
impl<V> Sync for Scan<V>
impl<V> Unpin for Scan<V>
impl<V> UnsafeUnpin for Scan<V>where
*const ArcInner<Records<V>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Records<V>>>: UnsafeUnpin,
impl<V> UnwindSafe for Scan<V>
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