Skip to main content

BoundedSpatialRecordSource

Trait BoundedSpatialRecordSource 

Source
pub trait BoundedSpatialRecordSource {
    // Required methods
    fn schema(&self) -> &SchemaDescriptor;
    fn options(&self) -> &StreamOptions;
    fn memory_tracker(&self) -> &MemoryTracker;
    fn cancellation_token(&self) -> CancellationToken;
    fn max_chunk_bytes(&self) -> u64;
    fn next_chunk(&mut self) -> Option<RecordsResult<SpatialRecordChunk>>;
}
Expand description

Pull-based bounded source. Existing SpatialRecordSource remains unchanged.

Required Methods§

Source

fn schema(&self) -> &SchemaDescriptor

Schema shared by every emitted record.

Source

fn options(&self) -> &StreamOptions

Validated execution options.

Source

fn memory_tracker(&self) -> &MemoryTracker

Exact tracker shared by emitted chunk leases.

Source

fn cancellation_token(&self) -> CancellationToken

Cooperative cancellation state checked at chunk boundaries.

Source

fn max_chunk_bytes(&self) -> u64

Conservative maximum resident bytes for one emitted chunk.

Source

fn next_chunk(&mut self) -> Option<RecordsResult<SpatialRecordChunk>>

Returns the next leased chunk, or None after an explicit end.

Implementations on Foreign Types§

Source§

impl<S: BoundedSpatialRecordSource + ?Sized> BoundedSpatialRecordSource for Box<S>

Implementors§