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.

Hierarchy

  • Table

Constructors

Properties

numBatches: number

The number of batches in the Table

schema: Schema

Access the Table's Schema.

Methods

  • Returns void

  • 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

  • Access a RecordBatch from the Table by index.

    Parameters

    • index: number

      The positional index of the RecordBatch to retrieve.

    Returns RecordBatch

    a RecordBatch or null if out of range.

  • 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

Generated using TypeDoc