Readonly
TArrayReadonly
TTypeReadonly
TValueReadonly
dataThe primitive Data
instances for this Vector's elements.
Readonly
lengthThe number of elements in this Vector.
Readonly
numThe number of child Vectors if this Vector is a nested dtype.
Readonly
strideThe number of primitive values per Vector element.
Readonly
typeThe DataType
of this Vector.
The Array or TypedAray constructor used for the JS representation
of the element's values in Vector.prototype.toArray toArray()
.
The name of this Vector.
The name that should be printed when the Vector is logged in a message.
The aggregate size (in bytes) of this Vector's buffers and/or child Vectors.
The number of null elements in this Vector.
Retrieve the index of the first occurrence of a value in an Vector.
The value to locate in the Vector.
Optional
offset: numberThe index at which to begin the search. If offset is omitted, the search starts at index 0.
Adds memoization to the Vector's get method. For dictionary vectors, this method return a vector that memoizes only the dictionary values.
Memoization is very useful when decoding a value is expensive such as Uft8. The memoization creates a cache of the size of the Vector and therfore increases memory usage.
A new vector that memoizes calls to get.
Return a JavaScript Array or TypedArray of the Vector's elements.
If this Vector contains a single Data chunk and the Vector's type is a primitive numeric type corresponding to one of the JavaScript TypedArrays, this method returns a zero-copy slice of the underlying TypedArray values. If there's more than one chunk, the resulting TypedArray will be a copy of the data from each chunk's underlying TypedArray values.
An Array or TypedArray of the Vector's elements, based on the Vector's DataType.
Generated using TypeDoc
Array-like data structure. Use the convenience method makeVector and vectorFromArray to create vectors.