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>(
source: S,
config: StreamingVoxelConfig,
) -> Result<StreamingVoxelSource, RecordsError>where
S: BoundedSpatialRecordSource,
pub fn try_build<S>(
source: S,
config: StreamingVoxelConfig,
) -> Result<StreamingVoxelSource, RecordsError>where
S: BoundedSpatialRecordSource,
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<Result<SpatialRecordChunk, RecordsError>>
fn next_chunk(&mut self) -> Option<Result<SpatialRecordChunk, RecordsError>>
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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