[][src]Trait arrow::record_batch::RecordBatchReader

pub trait RecordBatchReader {
    fn schema(&self) -> SchemaRef;
fn next_batch(&mut self) -> Result<Option<RecordBatch>>; }

Trait for types that can read RecordBatch's.

Required methods

fn schema(&self) -> SchemaRef

Returns the schema of this RecordBatchReader.

Implementation of this trait should guarantee that all RecordBatch's returned by this reader should have the same schema as returned from this method.

fn next_batch(&mut self) -> Result<Option<RecordBatch>>

Reads the next RecordBatch.

Loading content...

Implementors

impl<R: Read + Seek> RecordBatchReader for FileReader<R>[src]

impl<R: Read> RecordBatchReader for StreamReader<R>[src]

Loading content...