表格是 Vector 的集合,並具有 Schema。在 JavaScript 中建立表格,請使用便利方法 makeTabletableFromArrays。若要從 IPC 格式建立表格,請使用 tableFromIPC

類型參數

  • T extends TypeMap = any

建構函式

  • 類型參數

    • T extends TypeMap = any

    返回 Table<T>

  • 類型參數

    • T extends TypeMap = any

    參數

    • batches: Iterable<RecordBatch<T>>

    返回 Table<T>

  • 類型參數

    • T extends TypeMap = any

    參數

    • ...batches: readonly RecordBatch<T>[]

    返回 Table<T>

  • 類型參數

    • T extends TypeMap = any

    參數

    • ...columns: { [P in string | number | symbol]: Vector<T[P]> }[]

    返回 Table<T>

  • 類型參數

    • T extends TypeMap = any

    參數

    • ...columns: { [P in string | number | symbol]: Data<T[P]> | DataProps<T[P]> }[]

    返回 Table<T>

  • 類型參數

    • T extends TypeMap = any

    參數

    • schema: Schema<T>
    • ...columns: { [P in string | number | symbol]: Vector<T[P]> }[]

    返回 Table<T>

  • 類型參數

    • T extends TypeMap = any

    參數

    • schema: Schema<T>
    • ...columns: { [P in string | number | symbol]: Data<T[P]> | DataProps<T[P]> }[]

    返回 Table<T>

  • 類型參數

    • T extends TypeMap = any

    參數

    • schema: Schema<T>
    • Optionaldata: RecordBatch<T> | RecordBatch<T>[]

    返回 Table<T>

  • 類型參數

    • T extends TypeMap = any

    參數

    • schema: Schema<T>
    • Optionaldata: RecordBatch<T> | RecordBatch<T>[]
    • Optionaloffsets: Uint32Array

    返回 Table<T>

屬性

"[isConcatSpreadable]": true
batches: RecordBatch<T>[]

表格列的連續 RecordBatch RecordBatch 區塊。

schema: Schema<T>
TArray: StructRowProxy<T>[]
TType: Struct<T>
TValue: StructRowProxy<T>

存取器

  • get nullCount(): number
  • 此表格中的空值列數。

    返回 number

  • get numCols(): number
  • 此表格中的欄數。

    返回 number

  • get numRows(): number
  • 此表格中的列數。

    返回 number

方法

  • 此表格中列的迭代器。

    返回 IterableIterator<any>

  • 類型參數

    • R extends TypeMap = any

    參數

    返回 Table<T & R>

  • 依位置取得元素值。

    參數

    • index: number

      要讀取的元素的索引。負索引將從最後一個元素開始倒數。

    返回 null | StructRowProxy<T>

  • 合併兩個或多個相同 Schema 的表格。

    參數

    • ...others: Table<T>[]

      要新增到此表格結尾的其他表格。

    返回 Table<T>

  • 依位置取得元素值。

    參數

    • index: number

      要讀取的元素的索引。

    返回 null | StructRowProxy<T>

  • 依名稱返回子 Vector,如果此 Vector 沒有具有給定名稱的子項,則返回 null。

    類型參數

    • P extends string | number | symbol

    參數

    • name: P

      要檢索的子項的名稱。

    返回 null | Vector<T[P]>

  • 依索引返回子 Vector,如果此 Vector 在提供的索引處沒有子項,則返回 null。

    類型參數

    參數

    • index: number

      要檢索的子項的索引。

    返回 null | Vector<R>

  • 檢索 Vector 中值首次出現的索引。

    參數

    • element: StructRowProxy<T>

      要在 Vector 中定位的值。

    • 可選offset: number

      開始搜尋的索引。如果省略 offset,搜尋會從索引 0 開始。

    返回 number

  • 檢查元素是否為 null。

    參數

    • index: number

      要讀取有效性點陣圖的索引。

    返回 boolean

  • 建構一個新的 Table,僅包含指定的欄位。

    類型參數

    • K extends string | number | symbol = any

    參數

    • columnNames: K[]

      要保留的欄位名稱。

    返回 Table<{ [key: string]: any }>

    一個新的 Table,其中包含符合指定名稱的欄位。

  • 建構一個新的 Table,僅包含指定索引處的欄位。

    類型參數

    參數

    • columnIndices: number[]

      要保留的欄位的索引。

    返回 Table<{ [key: string]: K }>

    一個新的 Table,其中包含指定索引處的欄位。

  • 依位置設定元素值。

    參數

    • index: number

      要寫入的元素的索引。

    • value: null | StructRowProxy<T>

      要設定的值。

    返回 void

  • 依名稱設定子 Vector。

    類型參數

    • P extends string | number | symbol
    • R extends DataType

    參數

    • name: P

      要覆寫的子項的名稱。

    • child: Vector<R>

    返回 Table<T & { [K in string | number | symbol]: R }>

    一個新的 Table,針對指定的名稱包含提供的子項。

  • 依索引設定子 Vector。

    參數

    • index: number

      要覆寫的子項的索引。

    • 可選child: null

    返回 Table

    一個新的 Table,在指定的索引處包含提供的子項。

  • 依索引設定子 Vector。

    類型參數

    參數

    • index: number

      要覆寫的子項的索引。

    • child: Vector<R>

    返回 Table

    一個新的 Table,在指定的索引處包含提供的子項。

  • 返回此 Table 的零複製子區段。

    參數

    • 可選begin: number

      Table 中指定部分的開頭。

    • 可選end: number

      Table 中指定部分的結尾。這不包含索引為 'end' 的元素。

    返回 Table<T>

  • 返回 Table 列的 JavaScript 陣列。

    返回 any[]

    Table 列的陣列。

  • 返回 Table 列的字串表示形式。

    返回 string

    Table 列的字串表示形式。