Skip to main content

IntoRecordBatchReader

Trait IntoRecordBatchReader 

Source
pub trait IntoRecordBatchReader<SourceKind = RecordBatchReaderSourceKind> {
    type Reader: RecordBatchReader;

    // Required method
    fn into_record_batch_reader(self) -> Result<Self::Reader, AppendError>;
}
Expand description

Convert an Arrow batch source into a schema-bearing RecordBatchReader.

Implementations preserve non-Send readers. The SourceKind parameter is an inference-only coherence marker and should not normally be specified by callers.

Required Associated Types§

Source

type Reader: RecordBatchReader

Reader produced from this source.

Required Methods§

Source

fn into_record_batch_reader(self) -> Result<Self::Reader, AppendError>

Convert this source without collecting its batches.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoRecordBatchReader<RecordBatch> for RecordBatch

Source§

impl IntoRecordBatchReader<Vec<RecordBatch>> for Vec<RecordBatch>

Implementors§