pub struct ChunkMapSource<S> { /* private fields */ }Expand description
Bounded source adapter for chunk-local crop and affine transform operations.
Implementations§
Source§impl<S: BoundedSpatialRecordSource> ChunkMapSource<S>
impl<S: BoundedSpatialRecordSource> ChunkMapSource<S>
Sourcepub fn crop(
source: S,
min: [f32; 3],
max: [f32; 3],
invert: bool,
) -> RecordsResult<Self>
pub fn crop( source: S, min: [f32; 3], max: [f32; 3], invert: bool, ) -> RecordsResult<Self>
Creates a crop adapter and validates ordered finite bounds.
Sourcepub fn transform(source: S, transform: Mat4<f32>) -> RecordsResult<Self>
pub fn transform(source: S, transform: Mat4<f32>) -> RecordsResult<Self>
Creates an affine transform adapter.
Sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Consumes the adapter and returns the upstream source.
Trait Implementations§
Source§impl<S: BoundedSpatialRecordSource> BoundedSpatialRecordSource for ChunkMapSource<S>
impl<S: BoundedSpatialRecordSource> BoundedSpatialRecordSource for ChunkMapSource<S>
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<S> Freeze for ChunkMapSource<S>where
S: Freeze,
impl<S> RefUnwindSafe for ChunkMapSource<S>where
S: RefUnwindSafe,
impl<S> Send for ChunkMapSource<S>where
S: Send,
impl<S> Sync for ChunkMapSource<S>where
S: Sync,
impl<S> Unpin for ChunkMapSource<S>where
S: Unpin,
impl<S> UnsafeUnpin for ChunkMapSource<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for ChunkMapSource<S>where
S: UnwindSafe,
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