UNPKG

icebird

Version:

Apache Iceberg client for javascript

23 lines 1.19 kB
/** * Reads data from the Iceberg table with optional row-level delete processing. * Row indices are zero-based and rowEnd is exclusive. * * @param {object} options * @param {string} options.tableUrl - Base S3 URL of the table. * @param {number} [options.rowStart] - The starting global row index to fetch (inclusive). * @param {number} [options.rowEnd] - The ending global row index to fetch (exclusive). * @param {string} [options.metadataFileName] - Name of the Iceberg metadata file. * @param {TableMetadata} [options.metadata] - Pre-fetched Iceberg metadata. * @param {RequestInit} [options.requestInit] - Optional fetch request initialization. * @returns {Promise<Array<Record<string, any>>>} Array of data records. */ export function icebergRead({ tableUrl, rowStart, rowEnd, metadataFileName, metadata, requestInit, }: { tableUrl: string; rowStart?: number | undefined; rowEnd?: number | undefined; metadataFileName?: string | undefined; metadata?: TableMetadata | undefined; requestInit?: RequestInit | undefined; }): Promise<Array<Record<string, any>>>; import type { TableMetadata } from '../src/types.js'; //# sourceMappingURL=read.d.ts.map