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.
Rows written to out are never stale, so callers can take the buffer’s
full contents.
Sourcepub fn scan_project(
&self,
subset: SubsetRef<'_>,
cols: &[ColumnId],
start: Offset,
n: usize,
cs: &[Constraint],
out: &mut dyn RowSink,
) -> Option<Offset>
pub fn scan_project( &self, subset: SubsetRef<'_>, cols: &[ColumnId], start: Offset, n: usize, cs: &[Constraint], out: &mut dyn RowSink, ) -> Option<Offset>
A variant fo WrappedTable::scan_bounded that projects a subset of
columns and only appends rows that match the given constraints.
Rows written to out are never stale, so callers can take the buffer’s
full contents.
Sourcepub fn scan(&self, subset: SubsetRef<'_>) -> TaggedRowBuffer
pub fn scan(&self, subset: SubsetRef<'_>) -> TaggedRowBuffer
Return the contents of the subset as a TaggedRowBuffer.