pub struct GeozeroRecordBatchWriter<P: FeatureProcessor> { /* private fields */ }Available on crate feature
geozero only.Expand description
A push-based writer for creating geozero-based outputs.
Implementations§
Source§impl<P: FeatureProcessor> GeozeroRecordBatchWriter<P>
impl<P: FeatureProcessor> GeozeroRecordBatchWriter<P>
Sourcepub fn try_new(
schema: SchemaRef,
processor: P,
name: Option<&str>,
) -> Result<Self, GeozeroError>
pub fn try_new( schema: SchemaRef, processor: P, name: Option<&str>, ) -> Result<Self, GeozeroError>
Create a new GeozeroRecordBatchWriter from a schema
Sourcepub fn write(&mut self, batch: &RecordBatch) -> Result<(), GeozeroError>
pub fn write(&mut self, batch: &RecordBatch) -> Result<(), GeozeroError>
Write a RecordBatch, processing it with the given FeatureProcessor.
Sourcepub fn finish(self) -> Result<P, GeozeroError>
pub fn finish(self) -> Result<P, GeozeroError>
Finish the dataset processing and return the processor.
Auto Trait Implementations§
impl<P> Freeze for GeozeroRecordBatchWriter<P>where
P: Freeze,
impl<P> RefUnwindSafe for GeozeroRecordBatchWriter<P>where
P: RefUnwindSafe,
impl<P> Send for GeozeroRecordBatchWriter<P>where
P: Send,
impl<P> Sync for GeozeroRecordBatchWriter<P>where
P: Sync,
impl<P> Unpin for GeozeroRecordBatchWriter<P>where
P: Unpin,
impl<P> UnwindSafe for GeozeroRecordBatchWriter<P>where
P: 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