- vectorFromArray(
values: readonly (undefined | null)[],
type?: Null,
): Vector<dtypes.Null> 參數
- values: readonly (undefined | null)[]
Optional
type: Null
傳回 Vector<dtypes.Null>
- vectorFromArray(
values: readonly (undefined | null | boolean)[],
type?: Bool,
): Vector<dtypes.Bool> 參數
- values: readonly (undefined | null | boolean)[]
Optional
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)[]
Optional
type: T
- vectorFromArray<T extends TimestampMillisecond>(
values: readonly (undefined | null | Date)[],
type?: T,
): Vector<T> 類型參數
- T extends TimestampMillisecond
參數
- values: readonly (undefined | null | Date)[]
Optional
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。