Creates a new DataAPIVector instance from a vector-like value.
You can set validate to false to bypass any validation if you're confident the value is a valid vector.
The vector-like value to convert to a DataAPIVector
Whether to validate the vector-like value (default: true)
TypeError If vector is not a valid vector-like value
Private Readonly _vectorReturns the length of the vector (# of floats), agnostic of the underlying type.
The length of the vector
Implementation of $SerializeForCollection for TableCodec
Implementation of $SerializeForTable for TableCodec
Static [$Implementation of $DeserializeForCollection for TableCodec
Static [$Implementation of $DeserializeForTable for TableCodec
Static isDetermines whether the given value is a vector-like value (i.e. it's DataAPIVectorLike).
The value to check
true if the value is a vector-like value; false otherwise
Represents a
vectorcolumn for Data API tables.See DataAPIVectorLike for the types that can be converted into a
DataAPIVector.You may use the vector function as a shorthand for creating a new
DataAPIVector.See the official DataStax documentation for more information.