UNPKG

@brimdata/zealot

Version:

The Javascript Client for Zed Lakes

32 lines (31 loc) 1.25 kB
import { EncodeStream } from "../encode-stream"; import { TypeAlias } from "../types/type-alias"; import { TypeRecord } from "../types/type-record"; import { ZedType } from "../types/types"; import { Field } from "./field"; import { ZedValue, Value, JSOptions } from "./types"; declare type ColumnName = string | string[]; export declare class Record implements Value { type: TypeRecord | TypeAlias; fields: Field[] | null; constructor(type: TypeRecord | TypeAlias, fields: Field[] | null); get null(): boolean; get flatColumns(): ColumnName[]; get columns(): string[]; get trueType(): TypeRecord; toString(): string; serialize(stream: EncodeStream): import("../../zjson").Value[] | null; at(index: number | number[]): Value | null; fieldAt(index: number | number[]): null | Field; has(name: string | string[], ...types: ZedType[]): boolean; get<T extends ZedValue>(name: string | string[]): T; getField(name: string | string[]): Field | null; try<T extends ZedValue>(name: string | string[]): T | null; tryField(name: string | string[]): Field | null; private _getField; isUnset(): boolean; toJS(opts?: JSOptions): { [key: string]: any; } | null; } export {};