Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
read_as_batch in datafusion_row::reader - Rust
[go: Go Back, main page]

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 ...) │
└───────────────────────┘                     │                  │
                                              │                  │
                                              │                  │
                                              └──────────────────┘