pub struct BatchView<'c> { /* private fields */ }Expand description
Borrowed view over the most recently decoded batch.
Implementations§
Source§impl<'c> BatchView<'c>
impl<'c> BatchView<'c>
pub fn request_id(&self) -> i64
pub fn batch_seq(&self) -> u64
Sourcepub fn flags(&self) -> u8
pub fn flags(&self) -> u8
Per-batch wire flags from the frame header. Useful for asserting that compression / Gorilla paths were actually exercised.
pub fn schema(&self) -> &'c Schema
pub fn row_count(&self) -> usize
pub fn column_count(&self) -> usize
Sourcepub fn column(&self, idx: usize) -> Result<ColumnView<'_>>
pub fn column(&self, idx: usize) -> Result<ColumnView<'_>>
Project a single column to a typed view.
Sourcepub fn dict(&self) -> &'c SymbolDict
pub fn dict(&self) -> &'c SymbolDict
Connection-scoped symbol dictionary backing every SYMBOL column
in this batch; a SymbolColumn’s codes index into it.
Auto Trait Implementations§
impl<'c> Freeze for BatchView<'c>
impl<'c> RefUnwindSafe for BatchView<'c>
impl<'c> Send for BatchView<'c>
impl<'c> Sync for BatchView<'c>
impl<'c> Unpin for BatchView<'c>
impl<'c> UnsafeUnpin for BatchView<'c>
impl<'c> UnwindSafe for BatchView<'c>
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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