Function datafusion::row::reader::read_as_batch
source · pub fn read_as_batch(
data: &[u8],
schema: Arc<Schema>,
offsets: &[usize]
) -> Result<RecordBatch, DataFusionError>
Expand description
Read raw-bytes from data
rows starting at offsets
out to a RecordBatch
Read data to RecordBatch ┌──────────────────┐
│ │
│ │
┌───────────────────────┐ │ │
│ │ │ RecordBatch │
│ [u8] │─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ▶│ │
│ │ │ (... N Rows ...) │
└───────────────────────┘ │ │
│ │
│ │
└──────────────────┘