pub struct PcdChunkSource<R: BufRead> { /* private fields */ }Expand description
Bounded sequential PCD source for ASCII and interleaved binary payloads.
Field-major binary_compressed PCD requires a bounded spool adapter.
Implementations§
Source§impl<R: BufRead> PcdChunkSource<R>
impl<R: BufRead> PcdChunkSource<R>
Sourcepub fn new(
reader: R,
options: StreamOptions,
cancellation: CancellationToken,
) -> Result<Self, IoError>
pub fn new( reader: R, options: StreamOptions, cancellation: CancellationToken, ) -> Result<Self, IoError>
Parses the header and creates a bounded PCD source.
Source§impl PcdChunkSource<BufReader<File>>
impl PcdChunkSource<BufReader<File>>
Sourcepub fn open(
path: impl AsRef<Path>,
options: StreamOptions,
cancellation: CancellationToken,
) -> Result<Self, IoError>
pub fn open( path: impl AsRef<Path>, options: StreamOptions, cancellation: CancellationToken, ) -> Result<Self, IoError>
Opens a local PCD file for bounded chunk reads.
Trait Implementations§
Source§impl<R: BufRead> BoundedSpatialRecordSource for PcdChunkSource<R>
Available on crate feature streaming only.
impl<R: BufRead> BoundedSpatialRecordSource for PcdChunkSource<R>
Available on crate feature
streaming only.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<R> Freeze for PcdChunkSource<R>where
R: Freeze,
impl<R> RefUnwindSafe for PcdChunkSource<R>where
R: RefUnwindSafe,
impl<R> Send for PcdChunkSource<R>where
R: Send,
impl<R> Sync for PcdChunkSource<R>where
R: Sync,
impl<R> Unpin for PcdChunkSource<R>where
R: Unpin,
impl<R> UnsafeUnpin for PcdChunkSource<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for PcdChunkSource<R>where
R: 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