Struct lance_encoding::encodings::logical::primitive::PrimitivePageScheduler
source · pub struct PrimitivePageScheduler { /* private fields */ }Expand description
A page scheduler for primitive fields
This maps to exactly one physical page and it assumes that the top-level encoding of the page is “basic”. The basic encoding decodes into an optional buffer of validity and a fixed-width buffer of values which is exactly what we need to create a primitive array.
Note: we consider booleans and fixed-size-lists of primitive types to be primitive types. This is slightly different than arrow-rs’s definition
Implementations§
Trait Implementations§
source§impl Debug for PrimitivePageScheduler
impl Debug for PrimitivePageScheduler
source§impl LogicalPageScheduler for PrimitivePageScheduler
impl LogicalPageScheduler for PrimitivePageScheduler
source§fn schedule_ranges(
&self,
ranges: &[Range<u32>],
context: &mut SchedulerContext,
top_level_row: u64
) -> Result<()>
fn schedule_ranges( &self, ranges: &[Range<u32>], context: &mut SchedulerContext, top_level_row: u64 ) -> Result<()>
Schedules I/O for the requested portions of the page. Read more
source§fn schedule_take(
&self,
indices: &[u32],
context: &mut SchedulerContext,
top_level_row: u64
) -> Result<()>
fn schedule_take( &self, indices: &[u32], context: &mut SchedulerContext, top_level_row: u64 ) -> Result<()>
Schedules I/O for the requested rows (identified by row offsets from start of page)
TODO: implement this using schedule_ranges
Auto Trait Implementations§
impl Freeze for PrimitivePageScheduler
impl !RefUnwindSafe for PrimitivePageScheduler
impl Send for PrimitivePageScheduler
impl Sync for PrimitivePageScheduler
impl Unpin for PrimitivePageScheduler
impl !UnwindSafe for PrimitivePageScheduler
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more