pub struct StreamingVoxelSource { /* private fields */ }Expand description
Bounded source of globally aggregated voxel centroids.
Construction consumes the upstream stream into sorted fixed-width runs.
Output is then produced by a deterministic k-way merge ordered by
(voxel key, source point offset).
Implementations§
Source§impl StreamingVoxelSource
impl StreamingVoxelSource
Sourcepub fn try_build<S: BoundedSpatialRecordSource>(
source: S,
config: StreamingVoxelConfig,
) -> RecordsResult<Self>
pub fn try_build<S: BoundedSpatialRecordSource>( source: S, config: StreamingVoxelConfig, ) -> RecordsResult<Self>
Builds sorted runs from source under shared memory and disk budgets.
Sourcepub const fn spool_bytes(&self) -> u64
pub const fn spool_bytes(&self) -> u64
Returns the fixed-width temporary spill extent.
Trait Implementations§
Source§impl BoundedSpatialRecordSource for StreamingVoxelSource
impl BoundedSpatialRecordSource for StreamingVoxelSource
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 StreamingVoxelSource
impl RefUnwindSafe for StreamingVoxelSource
impl Send for StreamingVoxelSource
impl Sync for StreamingVoxelSource
impl Unpin for StreamingVoxelSource
impl UnsafeUnpin for StreamingVoxelSource
impl UnwindSafe for StreamingVoxelSource
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