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