pub struct RecyclingMemoryChunkSource { /* private fields */ }Expand description
In-memory source used to verify real buffer recycling and lease accounting.
The immutable backing cloud represents external source storage. Emitted chunk buffers are separately reserved and returned to the pool on drop.
Implementations§
Source§impl RecyclingMemoryChunkSource
impl RecyclingMemoryChunkSource
Sourcepub fn try_new(
schema: SchemaDescriptor,
cloud: PointCloud,
options: StreamOptions,
cancellation: CancellationToken,
) -> RecordsResult<Self>
pub fn try_new( schema: SchemaDescriptor, cloud: PointCloud, options: StreamOptions, cancellation: CancellationToken, ) -> RecordsResult<Self>
Creates a recycling source over an immutable backing cloud.
Sourcepub fn buffer_set_allocations(&self) -> u64
pub fn buffer_set_allocations(&self) -> u64
Returns buffer-set allocations performed because the pool was empty.
Sourcepub fn pooled_buffer_sets(&self) -> usize
pub fn pooled_buffer_sets(&self) -> usize
Returns recycled buffer sets currently available to the source.
Trait Implementations§
Source§impl BoundedSpatialRecordSource for RecyclingMemoryChunkSource
impl BoundedSpatialRecordSource for RecyclingMemoryChunkSource
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.Auto Trait Implementations§
impl Freeze for RecyclingMemoryChunkSource
impl RefUnwindSafe for RecyclingMemoryChunkSource
impl Send for RecyclingMemoryChunkSource
impl Sync for RecyclingMemoryChunkSource
impl Unpin for RecyclingMemoryChunkSource
impl UnsafeUnpin for RecyclingMemoryChunkSource
impl UnwindSafe for RecyclingMemoryChunkSource
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