pub struct ScanRescoreOptions { /* private fields */ }Expand description
Controls the candidate frontier of each active or sealed segment.
The frontier is min(eligible_rows, k * oversample), plus all coarse-score
boundary ties. The limit bounds exact row reads per segment and vector
producer invocation, including ties; exceeding it is a typed error.
Implementations§
Source§impl ScanRescoreOptions
impl ScanRescoreOptions
Sourcepub const fn new(
oversample: usize,
max_candidates_per_segment: usize,
) -> Result<Self, RescoreError>
pub const fn new( oversample: usize, max_candidates_per_segment: usize, ) -> Result<Self, RescoreError>
Creates explicit controls; neither value may be zero.
Sourcepub const fn oversample(self) -> usize
pub const fn oversample(self) -> usize
Requested coarse frontier multiplier before boundary ties.
Sourcepub const fn max_candidates_per_segment(self) -> usize
pub const fn max_candidates_per_segment(self) -> usize
Hard exact-row-read limit per segment and vector producer invocation.
Trait Implementations§
Source§impl Clone for ScanRescoreOptions
impl Clone for ScanRescoreOptions
impl Copy for ScanRescoreOptions
Source§impl Debug for ScanRescoreOptions
impl Debug for ScanRescoreOptions
impl Eq for ScanRescoreOptions
Source§impl PartialEq for ScanRescoreOptions
impl PartialEq for ScanRescoreOptions
impl StructuralPartialEq for ScanRescoreOptions
Auto Trait Implementations§
impl Freeze for ScanRescoreOptions
impl RefUnwindSafe for ScanRescoreOptions
impl Send for ScanRescoreOptions
impl Sync for ScanRescoreOptions
impl Unpin for ScanRescoreOptions
impl UnsafeUnpin for ScanRescoreOptions
impl UnwindSafe for ScanRescoreOptions
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