Options
All
  • Public
  • Public/Protected
  • All
Menu

Data structure underlying Vectors. Use the convenience method makeData.

Type Parameters

Hierarchy

  • Data

Index

Constructors

  • new Data<T>(type: T, offset: number, length: number, nullCount?: number, buffers?: Data<T> | Partial<Buffers<T>>, children?: Data<DataType<Type, any>>[], dictionary?: Vector<any>): Data<T>

Properties

TArray: T["TArray"]
TType: T["TType"]
TValue: T["TValue"]
children: Data<DataType<Type, any>>[]
dictionary?: Vector<any>

The dictionary for this Vector, if any. Only used for Dictionary type.

length: number
nullBitmap: Uint8Array
nullable: boolean
offset: number
stride: number
type: T
typeIds: T["TArray"]
valueOffsets: Int32Array
values: T["TArray"]

Accessors

  • get ArrayType(): T["ArrayType"]
  • get buffers(): Buffers<T>
  • get byteLength(): number
  • get nullCount(): number
  • get typeId(): T["TType"]

Methods

  • _changeLengthAndBackfillNullBitmap(newLength: number): Data<T>
  • clone<R>(type?: R, offset?: number, length?: number, nullCount?: number, buffers?: Buffers<R>, children?: Data<DataType<Type, any>>[]): Data<R>
  • Type Parameters

    Parameters

    • type: R = ...
    • offset: number = ...
    • length: number = ...
    • nullCount: number = ...
    • buffers: Buffers<R> = ...
    • children: Data<DataType<Type, any>>[] = ...

    Returns Data<R>

  • getValid(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

  • setValid(index: number, value: boolean): boolean
  • Parameters

    • index: number
    • value: boolean

    Returns boolean

  • slice(offset: number, length: number): Data<T>
  • Parameters

    • offset: number
    • length: number

    Returns Data<T>

Generated using TypeDoc