Spaces:
Running
Running
File size: 1,435 Bytes
78c921d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
import { Block as _Block } from '../../fb/block.js';
import * as flatbuffers from 'flatbuffers';
import Long = flatbuffers.Long;
import Builder = flatbuffers.Builder;
import { Schema } from '../../schema.js';
import { MetadataVersion } from '../../enum.js';
import { ArrayBufferViewInput } from '../../util/buffer.js';
/** @ignore */
declare class Footer_ {
schema: Schema;
version: MetadataVersion;
/** @nocollapse */
static decode(buf: ArrayBufferViewInput): Footer_;
/** @nocollapse */
static encode(footer: Footer_): Uint8Array;
protected _recordBatches: FileBlock[];
protected _dictionaryBatches: FileBlock[];
get numRecordBatches(): number;
get numDictionaries(): number;
constructor(schema: Schema, version?: MetadataVersion, recordBatches?: FileBlock[], dictionaryBatches?: FileBlock[]);
recordBatches(): Iterable<FileBlock>;
dictionaryBatches(): Iterable<FileBlock>;
getRecordBatch(index: number): FileBlock | null;
getDictionaryBatch(index: number): FileBlock | null;
}
export { Footer_ as Footer };
/** @ignore */
export declare class FileBlock {
/** @nocollapse */
static decode(block: _Block): FileBlock;
/** @nocollapse */
static encode(b: Builder, fileBlock: FileBlock): number;
offset: number;
bodyLength: number;
metaDataLength: number;
constructor(metaDataLength: number, bodyLength: Long | number, offset: Long | number);
}
|