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 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.
Whether this Vector's elements can contain null values.
Optional
offset: numberRetrieve 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 Utf8. The memoization creates a cache of the size of the Vector and therefore increases memory usage.
A new vector that memoizes calls to get.
Set an element value by position.
The index of the element to write.
The value to set.
Return a JavaScript Array or TypedArray of the Vector's elements.
An Array or TypedArray of the Vector's elements, based on the Vector's DataType.
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.
Array-like data structure. Use the convenience method makeVector and vectorFromArray to create vectors.