A Table in WebAssembly memory conforming to the Apache Arrow spec.

A Table consists of one or more RecordBatch objects plus a Schema that each RecordBatch conforms to.

Constructors

Properties

numBatches: number

The number of batches in the Table

schema: Schema

Access the Table's Schema.

Methods

  • Returns void

  • Returns the total number of bytes of memory occupied physically by all batches in this table.

    Returns number

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

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

    Returns FFITable

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

    Returns Uint8Array

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

    This method does not consume the Table, so you must remember to call Table.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 FFITable

  • Create a table from an Arrow IPC Stream buffer

    Parameters

    • buf: Uint8Array

    Returns Table