Skip to content

Interface: TypedArrowTable\<TRow\>

Typed Arrow Table - preserves row type information for type inference. At runtime this is just a regular Arrow Table, but TypeScript knows the row schema.

type MyTable = TypedArrowTable<{ id: string; value: number }>;
// Can access table.getChild("id") knowing it exists
  • Table

TRow extends Record<string, unknown> = Record<string, unknown>

readonly optional __rowType?: TRow

Phantom type marker for row schema. Not used at runtime - only for TypeScript type inference.


protected _nullCount: number

Table._nullCount


protected _offsets: Uint32Array<ArrayBufferLike> | number[]

Table._offsets


[isConcatSpreadable]: true

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable

Table.[isConcatSpreadable]


readonly batches: RecordBatch<any>[]

The contiguous RecordBatch `RecordBatch` chunks of the Table rows.

Table.batches


readonly schema: Schema<any>

Table.schema


readonly TArray: StructRowProxy<any>[]

Table.TArray


readonly TType: Struct<any>

Table.TType


readonly TValue: StructRowProxy<any>

Table.TValue

get data(): Data<Struct<T>>[]

The contiguous RecordBatch `RecordBatch` chunks of the Table rows.

Data<Struct<T>>[]

Table.data


get nullCount(): number

The number of null rows in this Table.

number

Table.nullCount


get numCols(): number

The number of columns in this Table.

number

Table.numCols


get numRows(): number

The number of rows in this Table.

number

Table.numRows

[iterator](): IterableIterator<any>

Iterator for rows in this Table.

IterableIterator<any>

Table.[iterator]


assign<R>(other): Table<any>

R extends TypeMap = any

Table<R>

Table<any>

Table.assign


at(index): StructRowProxy<any> | null

Get an element value by position.

number

The index of the element to read. A negative index will count back from the last element.

StructRowProxy<any> | null

Table.at


concat(…others): Table<any>

Combines two or more Tables of the same schema.

Table<any>[]

Additional Tables to add to the end of this Tables.

Table<any>

Table.concat


get(index): StructRowProxy<any> | null

Get an element value by position.

number

The index of the element to read.

StructRowProxy<any> | null

Table.get


getChild<P>(name): Vector<any> | null

Returns a child Vector by name, or null if this Vector has no child with the given name.

P extends string | number | symbol

P

The name of the child to retrieve.

Vector<any> | null

Table.getChild


getChildAt<R>(index): Vector<R> | null

Returns a child Vector by index, or null if this Vector has no child at the supplied index.

R extends any = any

number

The index of the child to retrieve.

Vector<R> | null

Table.getChildAt


indexOf(element, offset?): number

Retrieve the index of the first occurrence of a value in an Vector.

StructRowProxy<any>

The value to locate in the Vector.

number

The index at which to begin the search. If offset is omitted, the search starts at index 0.

number

Table.indexOf


isValid(index): boolean

Check whether an element is null.

number

The index at which to read the validity bitmap.

boolean

Table.isValid


select<K>(columnNames): Table<{[key: string]: any; }>

Construct a new Table containing only specified columns.

K extends string | number | symbol = any

K[]

Names of columns to keep.

Table<{[key: string]: any; }>

A new Table of columns matching the specified names.

Table.select


selectAt<K>(columnIndices): Table<{[key: string]: K; }>

Construct a new Table containing only columns at the specified indices.

K extends any = any

number[]

Indices of columns to keep.

Table<{[key: string]: K; }>

A new Table of columns at the specified indices.

Table.selectAt


set(index, value): void

Set an element value by position.

number

The index of the element to write.

StructRowProxy<any> | null

The value to set.

void

Table.set


setChild<P, R>(name, child): Table<any>

Sets a child Vector by name.

P extends string | number | symbol

R extends DataType<Type, any>

P

The name of the child to overwrite.

Vector<R>

Table<any>

A new Table with the supplied child for the specified name.

Table.setChild


setChildAt(index, child?): Table

Sets a child Vector by index.

number

The index of the child to overwrite.

null

Table

A new Table with the supplied child at the specified index.

Table.setChildAt

setChildAt<R>(index, child): Table

Sets a child Vector by index.

R extends DataType<Type, any> = any

number

The index of the child to overwrite.

Vector<R>

Table

A new Table with the supplied child at the specified index.

Table.setChildAt


slice(begin?, end?): Table<any>

Return a zero-copy sub-section of this Table.

number

The beginning of the specified portion of the Table.

number

The end of the specified portion of the Table. This is exclusive of the element at the index ‘end’.

Table<any>

Table.slice


toArray(): any[]

Return a JavaScript Array of the Table rows.

any[]

An Array of Table rows.

Table.toArray


toString(): string

Returns a string representation of the Table rows.

string

A string representation of the Table rows.

Table.toString