icebird
Version:
Apache Iceberg client for javascript
31 lines • 1.27 kB
TypeScript
/**
* Translates an S3A URL to an HTTPS URL for direct access to the object.
*
* @param {string} url
* @returns {string}
*/
export function translateS3Url(url: string): string;
/**
* Reads delete files from delete manifests.
* Position deletes are grouped by target data file.
* Equality deletes are grouped by sequence number.
*
* @import {ManifestEntry} from '../src/types.js'
* @param {ManifestEntry[]} deleteEntries
* @param {RequestInit} [requestInit]
* @returns {Promise<{positionDeletesMap: Map<string, Set<bigint>>, equalityDeletesMap: Map<bigint, Record<string, any>[]>}>}
*/
export function fetchDeleteMaps(deleteEntries: ManifestEntry[], requestInit?: RequestInit): Promise<{
positionDeletesMap: Map<string, Set<bigint>>;
equalityDeletesMap: Map<bigint, Record<string, any>[]>;
}>;
/**
* Decodes Avro records from a url.
*
* @param {string} manifestUrl - The URL of the manifest file
* @param {RequestInit} [requestInit] - Optional fetch request initialization
* @returns {Promise<Record<string, any>[]>} The decoded Avro records
*/
export function fetchAvroRecords(manifestUrl: string, requestInit?: RequestInit): Promise<Record<string, any>[]>;
import type { ManifestEntry } from '../src/types.js';
//# sourceMappingURL=fetch.d.ts.map