pub struct PcdChunkSink<W: Write> { /* private fields */ }Expand description
Sequential PCD sink with an exact upfront point-count contract.
Implementations§
Source§impl<W: Write> PcdChunkSink<W>
impl<W: Write> PcdChunkSink<W>
Sourcepub fn new(
writer: W,
schema: SchemaDescriptor,
expected_points: u64,
format: PcdWriteFormat,
) -> Result<Self, IoError>
pub fn new( writer: W, schema: SchemaDescriptor, expected_points: u64, format: PcdWriteFormat, ) -> Result<Self, IoError>
Writes the PCD header and creates a chunk sink.
Source§impl PcdChunkSink<BufWriter<File>>
impl PcdChunkSink<BufWriter<File>>
Sourcepub fn create(
path: impl AsRef<Path>,
schema: SchemaDescriptor,
expected_points: u64,
format: PcdWriteFormat,
) -> Result<Self, IoError>
pub fn create( path: impl AsRef<Path>, schema: SchemaDescriptor, expected_points: u64, format: PcdWriteFormat, ) -> Result<Self, IoError>
Creates a local PCD file sink.
Trait Implementations§
Source§impl<W: Write> BoundedSpatialRecordSink for PcdChunkSink<W>
Available on crate feature streaming only.
impl<W: Write> BoundedSpatialRecordSink for PcdChunkSink<W>
Available on crate feature
streaming only.Source§fn write_chunk(&mut self, chunk: &SpatialRecordChunk) -> RecordsResult<()>
fn write_chunk(&mut self, chunk: &SpatialRecordChunk) -> RecordsResult<()>
Writes one chunk synchronously.
Source§fn finish(&mut self) -> RecordsResult<()>
fn finish(&mut self) -> RecordsResult<()>
Finalizes the sink.
Auto Trait Implementations§
impl<W> Freeze for PcdChunkSink<W>where
W: Freeze,
impl<W> RefUnwindSafe for PcdChunkSink<W>where
W: RefUnwindSafe,
impl<W> Send for PcdChunkSink<W>where
W: Send,
impl<W> Sync for PcdChunkSink<W>where
W: Sync,
impl<W> Unpin for PcdChunkSink<W>where
W: Unpin,
impl<W> UnsafeUnpin for PcdChunkSink<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for PcdChunkSink<W>where
W: 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