pub struct ColumnStream<'table, 'a, P = MemPager>{ /* private fields */ }Expand description
Streaming view over a set of row IDs for selected logical fields.
ColumnStream keeps a reusable gather context so repeated calls avoid
reparsing column descriptors or re-fetching chunk metadata. Each call to
ColumnStream::next_batch returns at most STREAM_BATCH_ROWS values,
backed by Arrow arrays without copying the column data.
Implementations§
Source§impl<'table, 'a, P> ColumnStream<'table, 'a, P>
impl<'table, 'a, P> ColumnStream<'table, 'a, P>
Sourcepub fn total_rows(&self) -> usize
pub fn total_rows(&self) -> usize
Total number of row IDs covered by this stream.
Sourcepub fn remaining_rows(&self) -> usize
pub fn remaining_rows(&self) -> usize
Remaining number of row IDs that have not yet been yielded.
Sourcepub fn logical_fields(&self) -> &[LogicalFieldId]
pub fn logical_fields(&self) -> &[LogicalFieldId]
Logical fields produced by this stream.
Sourcepub fn next_batch(&mut self) -> LlkvResult<Option<ColumnStreamBatch>>
pub fn next_batch(&mut self) -> LlkvResult<Option<ColumnStreamBatch>>
Fetch the next chunk of rows, if any remain.
Auto Trait Implementations§
impl<'table, 'a, P> Freeze for ColumnStream<'table, 'a, P>
impl<'table, 'a, P = MemPager> !RefUnwindSafe for ColumnStream<'table, 'a, P>
impl<'table, 'a, P = MemPager> !Send for ColumnStream<'table, 'a, P>
impl<'table, 'a, P = MemPager> !Sync for ColumnStream<'table, 'a, P>
impl<'table, 'a, P> Unpin for ColumnStream<'table, 'a, P>
impl<'table, 'a, P = MemPager> !UnwindSafe for ColumnStream<'table, 'a, P>
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