UNPKG

@loaders.gl/schema

Version:

Table format APIs for JSON, CSV, etc...

25 lines 776 B
import type { Schema } from "../../../types/schema.js"; import type { TableBatch } from "../../../types/category-table.js"; export interface TableBatchOptions { batchSize: number | string; [key: string]: any; } export interface TableBatchConstructor { new (schema: Schema, options: TableBatchOptions): TableBatchAggregator; } /** * TableBatchBuilder delegates batch building to this interface */ export interface TableBatchAggregator { /** Number of rows */ rowCount(): number; /** Add one row */ addArrayRow(row: any[]): void; /** Add one row */ addObjectRow(row: { [columnName: string]: any; }): void; /** return a batch object */ getBatch(): TableBatch | null; } //# sourceMappingURL=table-batch-aggregator.d.ts.map