pub struct PdbBatchSource<S> { /* private fields */ }Expand description
Incremental PDB rows over a seekable or resident byte source.
Implementations§
Source§impl<S: SourceBytes> PdbBatchSource<S>
impl<S: SourceBytes> PdbBatchSource<S>
Sourcepub fn new(
source: S,
options: ReadOptions,
dataset: DatasetId,
first_chunk: ChunkId,
first_row: LogicalRow,
window_bytes: usize,
) -> Result<Self, StructureBatchError>
pub fn new( source: S, options: ReadOptions, dataset: DatasetId, first_chunk: ChunkId, first_row: LogicalRow, window_bytes: usize, ) -> Result<Self, StructureBatchError>
Creates a bounded reader. window_bytes is an upper bound and never
grows in response to source length.
§Errors
Returns StructureBatchError::DemandTooSmall for a zero-sized window.
Trait Implementations§
Source§impl<S: SourceBytes> BatchSource for PdbBatchSource<S>
impl<S: SourceBytes> BatchSource for PdbBatchSource<S>
Source§type Batch = StructureBatch
type Batch = StructureBatch
Batch representation produced by this source.
Source§type Error = StructureBatchError
type Error = StructureBatchError
Format, I/O, or computation error produced by this source.
Source§fn next_batch(
&mut self,
demand: BatchDemand,
context: &ExecutionContext,
) -> Result<Backpressure<BatchLease<Self::Batch>>, Self::Error>
fn next_batch( &mut self, demand: BatchDemand, context: &ExecutionContext, ) -> Result<Backpressure<BatchLease<Self::Batch>>, Self::Error>
Attempts to produce one bounded batch. Read more
Auto Trait Implementations§
impl<S> Freeze for PdbBatchSource<S>where
S: Freeze,
impl<S> RefUnwindSafe for PdbBatchSource<S>where
S: RefUnwindSafe,
impl<S> Send for PdbBatchSource<S>where
S: Send,
impl<S> Sync for PdbBatchSource<S>where
S: Sync,
impl<S> Unpin for PdbBatchSource<S>where
S: Unpin,
impl<S> UnsafeUnpin for PdbBatchSource<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for PdbBatchSource<S>where
S: UnwindSafe,
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