pub struct SweepContext {
pub history: Vec<Vec<u64>>,
pub window_size: usize,
pub direction: &'static str,
pub prefetch_count: usize,
pub predicted_next: Vec<Vec<u64>>,
}Expand description
Sweep context passed into read_chunked_data_sweep to enable adaptive
prefetching based on detected access patterns.
The caller is responsible for maintaining the SweepContext across
multiple reads on the same dataset. After each read, the context will
contain updated sweep detection state and any predicted next-chunk
coordinates.
Fields§
§history: Vec<Vec<u64>>Sliding window of recent chunk coordinates.
window_size: usizeMaximum window size.
direction: &'static strCurrently detected sweep direction label.
prefetch_count: usizeHow many chunks ahead to predict.
predicted_next: Vec<Vec<u64>>Predicted next chunk coordinates (populated after each read).
Implementations§
Source§impl SweepContext
impl SweepContext
Auto Trait Implementations§
impl Freeze for SweepContext
impl RefUnwindSafe for SweepContext
impl Send for SweepContext
impl Sync for SweepContext
impl Unpin for SweepContext
impl UnsafeUnpin for SweepContext
impl UnwindSafe for SweepContext
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