Trait GeoArrowArrayReader

Source
pub trait GeoArrowArrayReader: Iterator<Item = GeoArrowResult<Arc<dyn GeoArrowArray>>> {
    // Required method
    fn data_type(&self) -> GeoArrowType;
}
Expand description

Trait for types that can read Arc<dyn GeoArrowArray>’s.

There is no direct parallel to this in the upstream [arrow-array] crate. The closest is RecordBatchReader, which has the same implementation over an iterator of RecordBatches. However, it is useful to have an iterator of GeoArrow arrays with a known GeoArrowType.

To create from an iterator, see GeoArrowArrayIterator.

Required Methods§

Source

fn data_type(&self) -> GeoArrowType

Returns the field of this GeoArrowArrayReader.

Implementation of this trait should guarantee that all Arc<dyn GeoArrowArray>’s returned by this reader should have the same GeoArrowType as returned from this method.

Implementations on Foreign Types§

Source§

impl<R: GeoArrowArrayReader + ?Sized> GeoArrowArrayReader for Box<R>

Implementors§