Skip to main content

ArrayReader

Trait ArrayReader 

Source
pub trait ArrayReader: Iterator<Item = Result<ArrayRef, ArrowError>> {
    // Required method
    fn field(&self) -> &FieldRef;
}
Expand description

Trait for types that can read ArrayRef’s.

This is the array-level counterpart to RecordBatchReader, for streams whose elements are not record batches.

To create from an iterator, see ArrayIterator. To read one from the C Stream Interface, see ffi_stream::ArrayStreamReader.

Required Methods§

Source

fn field(&self) -> &FieldRef

Returns the field of this ArrayReader.

Implementation of this trait should guarantee that all ArrayRef’s returned by this reader have the same field as returned from this method.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Source§

fn field(&self) -> &FieldRef

Implementors§