pub struct PrefetchRecordSource { /* private fields */ }Expand description
Single-worker deterministic prefetch with count and memory backpressure.
Implementations§
Source§impl PrefetchRecordSource
impl PrefetchRecordSource
Sourcepub fn try_new<S>(source: S) -> RecordsResult<Self>where
S: BoundedSpatialRecordSource + Send + 'static,
pub fn try_new<S>(source: S) -> RecordsResult<Self>where
S: BoundedSpatialRecordSource + Send + 'static,
Starts prefetch using source.options().prefetch_chunks() as queue capacity.
Trait Implementations§
Source§impl BoundedSpatialRecordSource for PrefetchRecordSource
impl BoundedSpatialRecordSource for PrefetchRecordSource
Source§fn schema(&self) -> &SchemaDescriptor
fn schema(&self) -> &SchemaDescriptor
Schema shared by every emitted record.
Source§fn options(&self) -> &StreamOptions
fn options(&self) -> &StreamOptions
Validated execution options.
Source§fn memory_tracker(&self) -> &MemoryTracker
fn memory_tracker(&self) -> &MemoryTracker
Exact tracker shared by emitted chunk leases.
Source§fn cancellation_token(&self) -> CancellationToken
fn cancellation_token(&self) -> CancellationToken
Cooperative cancellation state checked at chunk boundaries.
Source§fn max_chunk_bytes(&self) -> u64
fn max_chunk_bytes(&self) -> u64
Conservative maximum resident bytes for one emitted chunk.
Source§fn next_chunk(&mut self) -> Option<RecordsResult<SpatialRecordChunk>>
fn next_chunk(&mut self) -> Option<RecordsResult<SpatialRecordChunk>>
Returns the next leased chunk, or
None after an explicit end.Source§impl Drop for PrefetchRecordSource
impl Drop for PrefetchRecordSource
Auto Trait Implementations§
impl Freeze for PrefetchRecordSource
impl !RefUnwindSafe for PrefetchRecordSource
impl Send for PrefetchRecordSource
impl !Sync for PrefetchRecordSource
impl Unpin for PrefetchRecordSource
impl UnsafeUnpin for PrefetchRecordSource
impl !UnwindSafe for PrefetchRecordSource
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