import { Data } from '../data.js'; import * as type from '../type.js'; import { Field } from '../schema.js'; import { Vector } from '../vector.js'; import { DataType } from '../type.js'; import { Visitor } from '../visitor.js'; import { MetadataVersion } from '../enum.js'; import { BufferRegion, FieldNode } from '../ipc/metadata/message.js'; /** @ignore */ export interface VectorLoader extends Visitor { visit(node: Field | T): Data; visitMany(nodes: (Field | T)[]): Data[]; } /** @ignore */ export declare class VectorLoader extends Visitor { private bytes; private nodes; private nodesIndex; private buffers; private buffersIndex; private dictionaries; private readonly metadataVersion; constructor(bytes: Uint8Array, nodes: FieldNode[], buffers: BufferRegion[], dictionaries: Map>, metadataVersion?: MetadataVersion); visitNull(type: T, { length }?: FieldNode): Data; visitBool(type: T, { length, nullCount }?: FieldNode): Data; visitInt(type: T, { length, nullCount }?: FieldNode): Data; visitFloat(type: T, { length, nullCount }?: FieldNode): Data; visitUtf8(type: T, { length, nullCount }?: FieldNode): Data; visitLargeUtf8(type: T, { length, nullCount }?: FieldNode): Data; visitBinary(type: T, { length, nullCount }?: FieldNode): Data; visitLargeBinary(type: T, { length, nullCount }?: FieldNode): Data; visitFixedSizeBinary(type: T, { length, nullCount }?: FieldNode): Data; visitDate(type: T, { length, nullCount }?: FieldNode): Data; visitTimestamp(type: T, { length, nullCount }?: FieldNode): Data; visitTime(type: T, { length, nullCount }?: FieldNode): Data; visitDecimal(type: T, { length, nullCount }?: FieldNode): Data; visitList(type: T, { length, nullCount }?: FieldNode): Data; visitStruct(type: T, { length, nullCount }?: FieldNode): Data; visitUnion(type: T, { length, nullCount }?: FieldNode): Data | Data; visitDenseUnion(type: T, { length, nullCount }?: FieldNode): Data; visitSparseUnion(type: T, { length, nullCount }?: FieldNode): Data; visitDictionary(type: T, { length, nullCount }?: FieldNode): Data; visitInterval(type: T, { length, nullCount }?: FieldNode): Data; visitDuration(type: T, { length, nullCount }?: FieldNode): Data; visitFixedSizeList(type: T, { length, nullCount }?: FieldNode): Data; visitMap(type: T, { length, nullCount }?: FieldNode): Data; protected nextFieldNode(): FieldNode; protected nextBufferRange(): BufferRegion; protected readNullBitmap(type: T, nullCount: number, buffer?: BufferRegion): Uint8Array; protected readOffsets(type: T, buffer?: BufferRegion): Uint8Array; protected readTypeIds(type: T, buffer?: BufferRegion): Uint8Array; protected readData(_type: T, { length, offset }?: BufferRegion): Uint8Array; protected readDictionary(type: T): Vector; } /** @ignore */ export declare class JSONVectorLoader extends VectorLoader { private sources; constructor(sources: any[][], nodes: FieldNode[], buffers: BufferRegion[], dictionaries: Map>, metadataVersion: MetadataVersion); protected readNullBitmap(_type: T, nullCount: number, { offset }?: BufferRegion): Uint8Array; protected readOffsets(_type: T, { offset }?: BufferRegion): any; protected readTypeIds(type: T, { offset }?: BufferRegion): any; protected readData(type: T, { offset }?: BufferRegion): any; }