Skip to main content

CopcChunkSource

Struct CopcChunkSource 

Source
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>

Source

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.

Source

pub fn declared_point_count(&self) -> u64

Returns the declared LAS point count from the COPC header.

Source§

impl CopcChunkSource<FileSource>

Source

pub fn open( path: impl AsRef<Path>, query: Option<CopcQuery>, options: StreamOptions, cancellation: CancellationToken, ) -> Result<Self, IoError>

Opens a local COPC file for bounded node and record chunk reads.

Source§

impl CopcChunkSource<HttpByteSource>

Source

pub fn open_url( url: &str, query: Option<CopcQuery>, options: StreamOptions, cancellation: CancellationToken, ) -> Result<Self, IoError>

Opens a remote COPC URL using bounded HTTP range requests.

Trait Implementations§

Source§

impl<S: ByteSource> BoundedSpatialRecordSource for CopcChunkSource<S>

Available on crate feature streaming only.
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.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.