Constructors
constructor
- 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>
Type Parameters
Parameters
type: T
offset: number
length: number
Optional nullCount: number
Optional buffers: Data<T> | Partial<Buffers<T>>
Optional dictionary: Vector<any>
Returns Data<T>
Properties
Readonly TArray
TArray: T["TArray"]
Readonly TType
TType: T["TType"]
Readonly TValue
TValue: T["TValue"]
Readonly length
length: number
Readonly nullBitmap
nullBitmap: Uint8Array
Readonly nullable
nullable: boolean
Readonly offset
offset: number
Readonly stride
stride: number
Readonly typeIds
typeIds: T["TArray"]
Readonly valueOffsets
valueOffsets: Int32Array
Readonly values
values: T["TArray"]
Accessors
ArrayType
- get ArrayType(): T["ArrayType"]
buffers
- get buffers(): Buffers<T>
Methods
_changeLengthAndBackfillNullBitmap
- _changeLengthAndBackfillNullBitmap(newLength: number): Data<T>
Parameters
Returns Data<T>
clone
- 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> = ...
Returns Data<R>
getValid
- getValid(index: number): boolean
Parameters
Returns boolean
setValid
- setValid(index: number, value: boolean): boolean
Parameters
index: number
value: boolean
Returns boolean
slice
- slice(offset: number, length: number): Data<T>
Parameters
offset: number
length: number
Returns Data<T>
Data structure underlying Vectors. Use the convenience method makeData.