UNPKG

hyparquet-writer

Version:

Parquet file writer for JavaScript

39 lines 1.41 kB
/** * Convert from rich to primitive types. * * @param {SchemaElement} element * @param {DecodedArray} values * @returns {DecodedArray} */ export function unconvert(element: SchemaElement, values: DecodedArray): DecodedArray; /** * Uncovert from rich type to byte array for metadata statistics. * * @param {MinMaxType | undefined} value * @param {SchemaElement} element * @returns {Uint8Array | undefined} */ export function unconvertMinMax(value: MinMaxType | undefined, element: SchemaElement): Uint8Array | undefined; /** * @param {Statistics} stats * @param {SchemaElement} element * @returns {ThriftObject} */ export function unconvertStatistics(stats: Statistics, element: SchemaElement): ThriftObject; /** * @param {SchemaElement} element * @param {bigint} value * @returns {number | bigint | Uint8Array} */ export function unconvertDecimal({ type, type_length }: SchemaElement, value: bigint): number | bigint | Uint8Array; /** * @param {number | undefined} value * @returns {Uint8Array | undefined} */ export function unconvertFloat16(value: number | undefined): Uint8Array | undefined; import type { SchemaElement } from 'hyparquet'; import type { DecodedArray } from 'hyparquet'; import type { MinMaxType } from 'hyparquet/src/types.js'; import type { Statistics } from 'hyparquet'; import type { ThriftObject } from '../src/types.js'; //# sourceMappingURL=unconvert.d.ts.map