Struct GeozeroRecordBatchReader

Source
pub struct GeozeroRecordBatchReader(/* private fields */);
Available on crate feature geozero only.
Expand description

A newtype wrapper around an arrow_array::RecordBatchReader so that we can implement the geozero::GeozeroDatasource trait on it.

This allows for exporting Arrow data to a geozero-based consumer even when not all of the Arrow data is present in memory at once.

Implementations§

Source§

impl GeozeroRecordBatchReader

Source

pub fn new(reader: Box<dyn RecordBatchReader>) -> Self

Create a new GeozeroRecordBatchReader from a RecordBatchReader.

Source

pub fn into_inner(self) -> Box<dyn RecordBatchReader>

Access the underlying RecordBatchReader.

Trait Implementations§

Source§

impl AsMut<Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>>>> for GeozeroRecordBatchReader

Source§

fn as_mut(&mut self) -> &mut Box<dyn RecordBatchReader>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>>>> for GeozeroRecordBatchReader

Source§

fn as_ref(&self) -> &Box<dyn RecordBatchReader>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl From<Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>>>> for GeozeroRecordBatchReader

Source§

fn from(value: Box<dyn RecordBatchReader>) -> Self

Converts to this type from the input type.
Source§

impl From<Box<dyn RecordBatchReader<Item = Result<RecordBatch, ArrowError>> + Send>> for GeozeroRecordBatchReader

Source§

fn from(value: Box<dyn RecordBatchReader + Send>) -> Self

Converts to this type from the input type.
Source§

impl GeozeroDatasource for GeozeroRecordBatchReader

Source§

fn process<P: FeatureProcessor>( &mut self, processor: &mut P, ) -> Result<(), GeozeroError>

Consume and process all selected features.
Source§

fn process_geom<P>(&mut self, processor: &mut P) -> Result<(), GeozeroError>
where P: GeomProcessor,

Consume and process geometries of all selected features.

Auto Trait Implementations§

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> ProcessToJson for T

Source§

fn to_json(&mut self) -> Result<String, GeozeroError>

Consume features as GeoJSON String.
Source§

impl<T> ProcessToSvg for T

Source§

fn to_svg(&mut self) -> Result<String, GeozeroError>

Consume features as SVG String.
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.