Skip to main content

batch_into_stream

Function batch_into_stream 

Source
pub fn batch_into_stream(batch: RecordBatch) -> SendableRecordBatchStream
Expand description

Wrap a single RecordBatch in a one-item SendableRecordBatchStream.

Used by procedure adapters whose plugin produced exactly one batch (and by tests that need a stream-shaped fixture for a one-row constant input). The yielded schema is Arc-cloned from the supplied batch.