@uwdata/flechette
Version:
Fast, lightweight access to Apache Arrow data.
16 lines (15 loc) • 626 B
TypeScript
/**
* Encode an Arrow table into Arrow IPC binary format.
* @param {Table} table The Arrow table to encode.
* @param {object} options Encoding options.
* @param {Sink} [options.sink] IPC byte consumer.
* @param {'stream' | 'file'} [options.format] Arrow stream or file format.
* @returns {Uint8Array | null} The generated bytes (for an in-memory sink)
* or null (if using a sink that writes bytes elsewhere).
*/
export function tableToIPC(table: Table, options: {
sink?: Sink;
format?: "stream" | "file";
}): Uint8Array | null;
import type { Table } from '../table.js';
import type { Sink } from './sink.js';