@uwdata/flechette
Version:
Fast, lightweight access to Apache Arrow data.
88 lines (87 loc) • 4.69 kB
TypeScript
export function invalidDataType(typeId: any): string;
export function field(name: string, type: DataType, nullable?: boolean, metadata?: Map<string, string> | null): Field;
export function dictionary(type: DataType, indexType?: IntType, ordered?: boolean, id?: number): DictionaryType;
export function nullType(): NullType;
export function int(bitWidth?: IntBitWidth, signed?: boolean): IntType;
export function int8(): IntType;
export function int16(): IntType;
export function int32(): IntType;
export function int64(): IntType;
export function uint8(): IntType;
export function uint16(): IntType;
export function uint32(): IntType;
export function uint64(): IntType;
export function float(precision?: Precision_): FloatType;
export function float16(): FloatType;
export function float32(): FloatType;
export function float64(): FloatType;
export function binary(): BinaryType;
export function utf8(): Utf8Type;
export function bool(): BoolType;
export function decimal(precision: number, scale: number, bitWidth?: 32 | 64 | 128 | 256): DecimalType;
export function decimal32(precision: number, scale: number): DecimalType;
export function decimal64(precision: number, scale: number): DecimalType;
export function decimal128(precision: number, scale: number): DecimalType;
export function decimal256(precision: number, scale: number): DecimalType;
export function date(unit: DateUnit_): DateType;
export function dateDay(): DateType;
export function dateMillisecond(): DateType;
export function time(unit?: TimeUnit_, bitWidth?: 32 | 64): TimeType;
export function timeSecond(): TimeType;
export function timeMillisecond(): TimeType;
export function timeMicrosecond(): TimeType;
export function timeNanosecond(): TimeType;
export function timestamp(unit?: TimeUnit_, timezone?: string | null): TimestampType;
export function interval(unit?: IntervalUnit_): IntervalType;
export function list(child: FieldInput): ListType;
export function struct(children: Field[] | Record<string, DataType>): StructType;
export function union(mode: UnionMode_, children: FieldInput[], typeIds?: number[], typeIdForValue?: (value: any, index: number) => number): UnionType;
export function fixedSizeBinary(stride: number): FixedSizeBinaryType;
export function fixedSizeList(child: FieldInput, stride: number): FixedSizeListType;
export function mapType(keysSorted: boolean, child: Field): MapType;
export function map(keyField: FieldInput, valueField: FieldInput, keysSorted?: boolean): MapType;
export function duration(unit?: TimeUnit_): DurationType;
export function largeBinary(): LargeBinaryType;
export function largeUtf8(): LargeUtf8Type;
export function largeList(child: FieldInput): LargeListType;
export function runEndEncoded(runsField: FieldInput, valuesField: FieldInput): RunEndEncodedType;
export function binaryView(): BinaryViewType;
export function utf8View(): Utf8ViewType;
export function listView(child: FieldInput): ListViewType;
export function largeListView(child: FieldInput): LargeListViewType;
export type FieldInput = Field | DataType;
import type { DataType } from './types.js';
import type { Field } from './types.js';
import type { IntType } from './types.js';
import type { DictionaryType } from './types.js';
import type { NullType } from './types.js';
import type { IntBitWidth } from './types.js';
import type { Precision_ } from './types.js';
import type { FloatType } from './types.js';
import type { BinaryType } from './types.js';
import type { Utf8Type } from './types.js';
import type { BoolType } from './types.js';
import type { DecimalType } from './types.js';
import type { DateUnit_ } from './types.js';
import type { DateType } from './types.js';
import type { TimeUnit_ } from './types.js';
import type { TimeType } from './types.js';
import type { TimestampType } from './types.js';
import type { IntervalUnit_ } from './types.js';
import type { IntervalType } from './types.js';
import type { ListType } from './types.js';
import type { StructType } from './types.js';
import type { UnionMode_ } from './types.js';
import type { UnionType } from './types.js';
import type { FixedSizeBinaryType } from './types.js';
import type { FixedSizeListType } from './types.js';
import type { MapType } from './types.js';
import type { DurationType } from './types.js';
import type { LargeBinaryType } from './types.js';
import type { LargeUtf8Type } from './types.js';
import type { LargeListType } from './types.js';
import type { RunEndEncodedType } from './types.js';
import type { BinaryViewType } from './types.js';
import type { Utf8ViewType } from './types.js';
import type { ListViewType } from './types.js';
import type { LargeListViewType } from './types.js';