vectorFromArray( values: readonly (
undefined | null)
[], type?: Null,): Vector<Null> 参数
- values: readonly (undefined | null)[]
可选
type: Null
vectorFromArray( values: readonly (
undefined | null | boolean)
[], type?: Bool,): Vector<Bool> 参数
- values: readonly (undefined | null | boolean)[]
可选
type: Bool
vectorFromArray< T extends Utf8 | Dictionary<Utf8, TKeys> = Dictionary<Utf8, Int32>,>( values: readonly (
undefined | null | string)
[], type?: T,): Vector<T> 类型参数
- T extends Utf8 | Dictionary<Utf8, TKeys> = Dictionary<Utf8, Int32>
参数
- values: readonly (undefined | null | string)[]
可选
type: T
vectorFromArray<T extends TimestampMillisecond>( values: readonly (
undefined | null | Date)
[], type?: T,): Vector<T> 类型参数
- T extends TimestampMillisecond
参数
- values: readonly (undefined | null | Date)[]
可选
type: T
vectorFromArray<T extends Int_<Ints>>( values: readonly (
undefined | null | number)
[], type: T,): Vector<T> 参数
- values: readonly (undefined | null | number)[]
- type: T
vectorFromArray<T extends Int64 | Uint64 = Int64>( values: readonly (
undefined | null | bigint)
[], type?: T,): Vector<T> 类型参数
- T extends Int64 | Uint64 = Int64
参数
- values: readonly (undefined | null | bigint)[]
可选
type: T
vectorFromArray<T extends Float<Floats> = Float64>( values: readonly (
undefined | null | number)
[], type?: T,): Vector<T> 类型参数
- T extends Float<Floats> = Float64
参数
- values: readonly (undefined | null | number)[]
Optional
type: T
参数
- values: readonly unknown[]
- type: T
vectorFromArray<T extends readonly unknown[]>( values: T,): Vector<JavaScriptArrayDataType<T>> 类型参数
- T extends readonly unknown[]
返回 Vector<JavaScriptArrayDataType<T>>
vectorFromArray<T extends TypedArray | BigIntArray>( data: T,): Vector<TypedArrayDataType<T>> 类型参数
- T extends TypedArray | BigIntArray
返回 Vector<TypedArrayDataType<T>>
vectorFromArray<T extends readonly unknown[] | TypedArray | BigIntArray>( data: T,): Vector<ArrayDataType<T>> 类型参数
- T extends readonly unknown[] | TypedArray | BigIntArray
返回 Vector<ArrayDataType<T>>
通过 Builder 从 JavaScript 数组创建一个 Vector。 如果您只想从类型化数组创建向量,请使用 makeVector。