- vectorFromArray(
values: readonly (undefined | null)[],
type?: Null,
): Vector<dtypes.Null> 参数
- values: readonly (undefined | null)[]
可选
type: Null
返回 Vector<dtypes.Null>
- vectorFromArray(
values: readonly (undefined | null | boolean)[],
type?: Bool,
): Vector<dtypes.Bool> 参数
- values: readonly (undefined | null | boolean)[]
可选
type: Bool
返回 Vector<dtypes.Bool>
- vectorFromArray<T extends Utf8 | Dictionary<Utf8> = Dictionary<Utf8, Int32>>(
values: readonly (undefined | null | string)[],
type?: T,
): Vector<T> 类型参数
- T extends Utf8 | Dictionary<Utf8> = 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_>(
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)[]
Optional
type: T
- vectorFromArray<T extends Float = Float64>(
values: readonly (undefined | null | number)[],
type?: T,
): Vector<T> 类型参数
- T extends Float = Float64
参数
- values: readonly (undefined | null | number)[]
Optional
type: T
- vectorFromArray<T extends DataType>(
values: readonly unknown[],
type: T,
): Vector<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 DataType>(data: Data<T>): Vector<T>
- vectorFromArray<T extends DataType>(data: Vector<T>): Vector<T>
- vectorFromArray<T extends DataType>(data: DataProps<T>): Vector<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。