A group of columns of equal length in WebAssembly memory with an associated Schema.

Hierarchy

  • RecordBatch

Constructors

Properties

numColumns: number

The number of columns in this RecordBatch

numRows: number

The number of rows in this RecordBatch

schema: Schema

The Schema of this RecordBatch.

Methods

  • Get a column's vector by index.

    Parameters

    • index: number

    Returns Vector

  • Get a column's vector by name

    Parameters

    • name: string

    Returns Vector

  • Returns void

  • Export this RecordBatch to FFI structs according to the Arrow C Data Interface.

    This method does consume the RecordBatch, so the original RecordBatch will be inaccessible after this call. You must still call FFIRecordBatch.free after you've finished using the FFI table.

    Returns FFIRecordBatch

  • Consume this RecordBatch and convert to an Arrow IPC Stream buffer

    Returns Uint8Array

  • Export this RecordBatch to FFI structs according to the Arrow C Data Interface.

    This method does not consume the RecordBatch, so you must remember to call RecordBatch.free to release the resources. The underlying arrays are reference counted, so this method does not copy data, it only prevents the data from being released.

    Returns FFIRecordBatch

Generated using TypeDoc