pub struct MmcifBatchSource<S: SourceBytes> { /* private fields */ }Expand description
Incremental mmCIF coordinate rows.
Implementations§
Source§impl<S: SourceBytes> MmcifBatchSource<S>
impl<S: SourceBytes> MmcifBatchSource<S>
Sourcepub fn new(
source: S,
options: ReadOptions,
dataset: DatasetId,
first_chunk: ChunkId,
first_row: LogicalRow,
window_bytes: usize,
context: &ExecutionContext,
) -> Result<Self, StructureBatchError>
pub fn new( source: S, options: ReadOptions, dataset: DatasetId, first_chunk: ChunkId, first_row: LogicalRow, window_bytes: usize, context: &ExecutionContext, ) -> Result<Self, StructureBatchError>
Creates a reader whose token and source windows never grow with file size.
§Errors
Returns a budget error when the bounded token carry cannot be reserved.
Trait Implementations§
Source§impl<S: SourceBytes> BatchSource for MmcifBatchSource<S>
impl<S: SourceBytes> BatchSource for MmcifBatchSource<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 MmcifBatchSource<S>where
TokenCursor<S>: Freeze,
impl<S> RefUnwindSafe for MmcifBatchSource<S>where
TokenCursor<S>: RefUnwindSafe,
impl<S> Send for MmcifBatchSource<S>where
TokenCursor<S>: Send,
impl<S> Sync for MmcifBatchSource<S>where
TokenCursor<S>: Sync,
impl<S> Unpin for MmcifBatchSource<S>where
TokenCursor<S>: Unpin,
impl<S> UnsafeUnpin for MmcifBatchSource<S>where
TokenCursor<S>: UnsafeUnpin,
impl<S> UnwindSafe for MmcifBatchSource<S>where
TokenCursor<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