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.
Example
Section titled “Example”type MyTable = TypedArrowTable<{ id: string; value: number }>;// Can access table.getChild("id") knowing it existsExtends
Section titled “Extends”Table
Type Parameters
Section titled “Type Parameters”TRow extends Record<string, unknown> = Record<string, unknown>
Properties
Section titled “Properties”__rowType?
Section titled “__rowType?”
readonlyoptional__rowType?:TRow
Phantom type marker for row schema. Not used at runtime - only for TypeScript type inference.
_nullCount
Section titled “_nullCount”
protected_nullCount:number
Inherited from
Section titled “Inherited from”Table._nullCount
_offsets
Section titled “_offsets”
protected_offsets:Uint32Array<ArrayBufferLike> |number[]
Inherited from
Section titled “Inherited from”Table._offsets
[isConcatSpreadable]
Section titled “[isConcatSpreadable]”[isConcatSpreadable]:
true
Inherited from
Section titled “Inherited from”Table.[isConcatSpreadable]
batches
Section titled “batches”
readonlybatches:RecordBatch<any>[]
The contiguous RecordBatch `RecordBatch` chunks of the Table rows.
Inherited from
Section titled “Inherited from”Table.batches
schema
Section titled “schema”
readonlyschema:Schema<any>
Inherited from
Section titled “Inherited from”Table.schema
TArray
Section titled “TArray”
readonlyTArray:StructRowProxy<any>[]
Inherited from
Section titled “Inherited from”Table.TArray
readonlyTType:Struct<any>
Inherited from
Section titled “Inherited from”Table.TType
TValue
Section titled “TValue”
readonlyTValue:StructRowProxy<any>
Inherited from
Section titled “Inherited from”Table.TValue
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get data():
Data<Struct<T>>[]
The contiguous RecordBatch `RecordBatch` chunks of the Table rows.
Returns
Section titled “Returns”Data<Struct<T>>[]
Inherited from
Section titled “Inherited from”Table.data
nullCount
Section titled “nullCount”Get Signature
Section titled “Get Signature”get nullCount():
number
The number of null rows in this Table.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”Table.nullCount
numCols
Section titled “numCols”Get Signature
Section titled “Get Signature”get numCols():
number
The number of columns in this Table.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”Table.numCols
numRows
Section titled “numRows”Get Signature
Section titled “Get Signature”get numRows():
number
The number of rows in this Table.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”Table.numRows
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
IterableIterator<any>
Iterator for rows in this Table.
Returns
Section titled “Returns”IterableIterator<any>
Inherited from
Section titled “Inherited from”Table.[iterator]
assign()
Section titled “assign()”assign<
R>(other):Table<any>
Type Parameters
Section titled “Type Parameters”R extends TypeMap = any
Parameters
Section titled “Parameters”Table<R>
Returns
Section titled “Returns”Table<any>
Inherited from
Section titled “Inherited from”Table.assign
at(
index):StructRowProxy<any> |null
Get an element value by position.
Parameters
Section titled “Parameters”number
The index of the element to read. A negative index will count back from the last element.
Returns
Section titled “Returns”StructRowProxy<any> | null
Inherited from
Section titled “Inherited from”Table.at
concat()
Section titled “concat()”concat(…
others):Table<any>
Combines two or more Tables of the same schema.
Parameters
Section titled “Parameters”others
Section titled “others”…Table<any>[]
Additional Tables to add to the end of this Tables.
Returns
Section titled “Returns”Table<any>
Inherited from
Section titled “Inherited from”Table.concat
get(
index):StructRowProxy<any> |null
Get an element value by position.
Parameters
Section titled “Parameters”number
The index of the element to read.
Returns
Section titled “Returns”StructRowProxy<any> | null
Inherited from
Section titled “Inherited from”Table.get
getChild()
Section titled “getChild()”getChild<
P>(name):Vector<any> |null
Returns a child Vector by name, or null if this Vector has no child with the given name.
Type Parameters
Section titled “Type Parameters”P extends string | number | symbol
Parameters
Section titled “Parameters”P
The name of the child to retrieve.
Returns
Section titled “Returns”Vector<any> | null
Inherited from
Section titled “Inherited from”Table.getChild
getChildAt()
Section titled “getChildAt()”getChildAt<
R>(index):Vector<R> |null
Returns a child Vector by index, or null if this Vector has no child at the supplied index.
Type Parameters
Section titled “Type Parameters”R extends any = any
Parameters
Section titled “Parameters”number
The index of the child to retrieve.
Returns
Section titled “Returns”Vector<R> | null
Inherited from
Section titled “Inherited from”Table.getChildAt
indexOf()
Section titled “indexOf()”indexOf(
element,offset?):number
Retrieve the index of the first occurrence of a value in an Vector.
Parameters
Section titled “Parameters”element
Section titled “element”StructRowProxy<any>
The value to locate in the Vector.
offset?
Section titled “offset?”number
The index at which to begin the search. If offset is omitted, the search starts at index 0.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”Table.indexOf
isValid()
Section titled “isValid()”isValid(
index):boolean
Check whether an element is null.
Parameters
Section titled “Parameters”number
The index at which to read the validity bitmap.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Table.isValid
select()
Section titled “select()”select<
K>(columnNames):Table<{[key:string]:any; }>
Construct a new Table containing only specified columns.
Type Parameters
Section titled “Type Parameters”K extends string | number | symbol = any
Parameters
Section titled “Parameters”columnNames
Section titled “columnNames”K[]
Names of columns to keep.
Returns
Section titled “Returns”Table<{[key: string]: any; }>
A new Table of columns matching the specified names.
Inherited from
Section titled “Inherited from”Table.select
selectAt()
Section titled “selectAt()”selectAt<
K>(columnIndices):Table<{[key:string]:K; }>
Construct a new Table containing only columns at the specified indices.
Type Parameters
Section titled “Type Parameters”K extends any = any
Parameters
Section titled “Parameters”columnIndices
Section titled “columnIndices”number[]
Indices of columns to keep.
Returns
Section titled “Returns”Table<{[key: string]: K; }>
A new Table of columns at the specified indices.
Inherited from
Section titled “Inherited from”Table.selectAt
set(
index,value):void
Set an element value by position.
Parameters
Section titled “Parameters”number
The index of the element to write.
StructRowProxy<any> | null
The value to set.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Table.set
setChild()
Section titled “setChild()”setChild<
P,R>(name,child):Table<any>
Sets a child Vector by name.
Type Parameters
Section titled “Type Parameters”P extends string | number | symbol
R extends DataType<Type, any>
Parameters
Section titled “Parameters”P
The name of the child to overwrite.
Vector<R>
Returns
Section titled “Returns”Table<any>
A new Table with the supplied child for the specified name.
Inherited from
Section titled “Inherited from”Table.setChild
setChildAt()
Section titled “setChildAt()”Call Signature
Section titled “Call Signature”setChildAt(
index,child?):Table
Sets a child Vector by index.
Parameters
Section titled “Parameters”number
The index of the child to overwrite.
child?
Section titled “child?”null
Returns
Section titled “Returns”Table
A new Table with the supplied child at the specified index.
Inherited from
Section titled “Inherited from”Table.setChildAt
Call Signature
Section titled “Call Signature”setChildAt<
R>(index,child):Table
Sets a child Vector by index.
Type Parameters
Section titled “Type Parameters”R extends DataType<Type, any> = any
Parameters
Section titled “Parameters”number
The index of the child to overwrite.
Vector<R>
Returns
Section titled “Returns”Table
A new Table with the supplied child at the specified index.
Inherited from
Section titled “Inherited from”Table.setChildAt
slice()
Section titled “slice()”slice(
begin?,end?):Table<any>
Return a zero-copy sub-section of this Table.
Parameters
Section titled “Parameters”begin?
Section titled “begin?”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’.
Returns
Section titled “Returns”Table<any>
Inherited from
Section titled “Inherited from”Table.slice
toArray()
Section titled “toArray()”toArray():
any[]
Return a JavaScript Array of the Table rows.
Returns
Section titled “Returns”any[]
An Array of Table rows.
Inherited from
Section titled “Inherited from”Table.toArray
toString()
Section titled “toString()”toString():
string
Returns a string representation of the Table rows.
Returns
Section titled “Returns”string
A string representation of the Table rows.
Inherited from
Section titled “Inherited from”Table.toString