File size: 1,619 Bytes
be5030f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 { Data } from '../data';
import { DataType } from '../type';
import { Chunked } from './chunked';
import { VectorType as V } from '../interfaces';
import { AbstractVector, Vector, Clonable, Sliceable, Applicative } from '../vector';
/** @ignore */
export interface BaseVector<T extends DataType = any> extends Clonable<V<T>>, Sliceable<V<T>>, Applicative<T, Chunked<T>> {
    slice(begin?: number, end?: number): V<T>;
    concat(...others: Vector<T>[]): Chunked<T>;
    clone<R extends DataType = T>(data: Data<R>, children?: Vector<R>[]): V<R>;
}
/** @ignore */
export declare abstract class BaseVector<T extends DataType = any> extends AbstractVector<T> implements Clonable<V<T>>, Sliceable<V<T>>, Applicative<T, Chunked<T>> {
    protected _children?: Vector[];
    constructor(data: Data<T>, children?: Vector[]);
    readonly data: Data<T>;
    readonly numChildren: number;
    readonly type: T;
    readonly typeId: T["TType"];
    readonly length: number;
    readonly offset: number;
    readonly stride: number;
    readonly nullCount: number;
    readonly byteLength: number;
    readonly VectorName: string;
    readonly ArrayType: T['ArrayType'];
    readonly values: T["TArray"];
    readonly typeIds: T["TArray"];
    readonly nullBitmap: Uint8Array;
    readonly valueOffsets: Int32Array;
    readonly [Symbol.toStringTag]: string;
    isValid(index: number): boolean;
    getChildAt<R extends DataType = any>(index: number): Vector<R> | null;
    toJSON(): any;
    protected _sliceInternal(self: this, begin: number, end: number): any;
    protected _bindDataAccessors(data: Data<T>): void;
}