Constructors
constructor
- new Data<T extends DataType = DataType>(
type: T,
offset: number,
length: number,
nullCount?: number,
buffers?: Data<T> | Partial<Buffers<T>>,
children?: Data[],
dictionary?: Vector,
): Data<T> Parameters
- type: T
- offset: number
- length: number
Optional
nullCount: numberOptional
buffers: Data<T> | Partial<Buffers<T>>- children: Data[] = []
Optional
dictionary: Vector
Properties
Readonly
length
length: number
Readonly
nullBitmap
nullBitmap: Uint8Array
Readonly
offset
offset: number
Readonly
stride
stride: number
Readonly
valueOffsets
valueOffsets: T["TOffsetArray"] Accessors
ArrayType
- get ArrayType(): T["ArrayType"]
Returns T["ArrayType"]
buffers
- get buffers(): Buffers<T>
Returns Buffers<T>
byteLength
- get byteLength(): number
Returns number
nullable
- get nullable(): boolean
Returns boolean
nullCount
- get nullCount(): number
Returns number
typeId
- get typeId(): T["TType"]
Returns T["TType"]
Methods
_changeLengthAndBackfillNullBitmap
- _changeLengthAndBackfillNullBitmap(newLength: number): Data<T>
clone
- clone<R extends DataType = T>(
type?: R,
offset?: number,
length?: number,
nullCount?: number,
buffers?: Buffers<R>,
children?: Data[],
): Data<R> Parameters
- type: R = ...
- offset: number = ...
- length: number = ...
- nullCount: number = ...
- buffers: Buffers<R> = ...
- children: Data[] = ...
getValid
- getValid(index: number): boolean
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
Data structure underlying Vectors. Use the convenience method makeData.