pub struct CopcChunkSource<S: ByteSource> { /* private fields */ }Expand description
Bounded, deterministic COPC source over any random-access byte source.
Implementations§
Source§impl<S: ByteSource> CopcChunkSource<S>
impl<S: ByteSource> CopcChunkSource<S>
Sourcepub fn from_source(
source: S,
query: Option<CopcQuery>,
options: StreamOptions,
cancellation: CancellationToken,
) -> Result<Self, IoError>
pub fn from_source( source: S, query: Option<CopcQuery>, options: StreamOptions, cancellation: CancellationToken, ) -> Result<Self, IoError>
Opens a byte source, loads matching hierarchy metadata, and orders nodes
by (level, x, y, z) for repeatable chunk identities.
Sourcepub fn declared_point_count(&self) -> u64
pub fn declared_point_count(&self) -> u64
Returns the declared LAS point count from the COPC header.
Source§impl CopcChunkSource<FileSource>
impl CopcChunkSource<FileSource>
Trait Implementations§
Source§impl<S: ByteSource> BoundedSpatialRecordSource for CopcChunkSource<S>
Available on crate feature streaming only.
impl<S: ByteSource> BoundedSpatialRecordSource for CopcChunkSource<S>
Available on crate feature
streaming only.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 CopcChunkSource<S>where
S: Freeze,
impl<S> RefUnwindSafe for CopcChunkSource<S>where
S: RefUnwindSafe,
impl<S> Send for CopcChunkSource<S>where
S: Send,
impl<S> Sync for CopcChunkSource<S>where
S: Sync,
impl<S> Unpin for CopcChunkSource<S>where
S: Unpin,
impl<S> UnsafeUnpin for CopcChunkSource<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for CopcChunkSource<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