pub struct WrappedTable { /* private fields */ }Expand description
A WrappedTable takes a Table and extends it with a number of helpful, object-safe methods for accessing a table.
It essentially acts like an extension trait: it is a separate type to allow
object-safe extension methods to call methods that require Self: Sized.
The implementations here downcast manually to the type used when
constructing the WrappedTable.
Implementations§
Source§impl WrappedTable
impl WrappedTable
Sourcepub fn scan_bounded(
&self,
subset: SubsetRef<'_>,
start: Offset,
n: usize,
out: &mut TaggedRowBuffer,
) -> Option<Offset>
pub fn scan_bounded( &self, subset: SubsetRef<'_>, start: Offset, n: usize, out: &mut TaggedRowBuffer, ) -> Option<Offset>
Starting at the given Offset into subset, scan up to n rows and
write them to out. Return the next starting offset. If no offset is
returned then the subset has been scanned completely.
Sourcepub fn scan_project(
&self,
subset: SubsetRef<'_>,
cols: &[ColumnId],
start: Offset,
n: usize,
cs: &[Constraint],
out: &mut TaggedRowBuffer,
) -> Option<Offset>
pub fn scan_project( &self, subset: SubsetRef<'_>, cols: &[ColumnId], start: Offset, n: usize, cs: &[Constraint], out: &mut TaggedRowBuffer, ) -> Option<Offset>
A variant fo WrappedTable::scan_bounded that projects a subset of
columns and only appends rows that match the given constraints.
Sourcepub fn scan(&self, subset: SubsetRef<'_>) -> TaggedRowBuffer
pub fn scan(&self, subset: SubsetRef<'_>) -> TaggedRowBuffer
Return the contents of the subset as a TaggedRowBuffer.
Trait Implementations§
Source§impl Deref for WrappedTable
impl Deref for WrappedTable
Auto Trait Implementations§
impl Freeze for WrappedTable
impl !RefUnwindSafe for WrappedTable
impl Send for WrappedTable
impl Sync for WrappedTable
impl Unpin for WrappedTable
impl !UnwindSafe for WrappedTable
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> 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