UNPKG

apache-arrow

Version:
20 lines (19 loc) 1.1 kB
import { Table } from '../table.js'; import { TypeMap } from '../type.js'; import { FromArg0, FromArg1, FromArg2, FromArg3, FromArg4, FromArg5 } from './reader.js'; /** * Deserialize the IPC format into a {@link Table}. This function is a * convenience wrapper for {@link RecordBatchReader}. Opposite of {@link tableToIPC}. */ export declare function tableFromIPC<T extends TypeMap = any>(source: FromArg0 | FromArg2): Table<T>; export declare function tableFromIPC<T extends TypeMap = any>(source: FromArg1): Promise<Table<T>>; export declare function tableFromIPC<T extends TypeMap = any>(source: FromArg3 | FromArg4 | FromArg5): Promise<Table<T>> | Table<T>; /** * Serialize a {@link Table} to the IPC format. This function is a convenience * wrapper for {@link RecordBatchStreamWriter} and {@link RecordBatchFileWriter}. * Opposite of {@link tableFromIPC}. * * @param table The Table to serialize. * @param type Whether to serialize the Table as a file or a stream. */ export declare function tableToIPC<T extends TypeMap = any>(table: Table, type?: 'file' | 'stream'): Uint8Array;