將任意 JavaScript 值的同步 Iterable 轉換為 Arrow Vector 的序列遵循提供的 options 參數中定義的分塊語義。
Iterable
options
此函式返回一個函式,該函式接受要轉換的值的 Iterable。調用時,此函式返回 Vector<T> 的 Iterator。
Vector<T>
產生的 Iterator<Vector<T>> 根據 options 參數中指定的 queueingStrategy 和 highWaterMark 產生 Vectors。
Iterator<Vector<T>>
queueingStrategy
highWaterMark
"count"
length
Builder
"bytes"
byteLength
一個屬性物件,用於確定要創建的 Builder 和要使用的分塊語義。
一個函式,它接受要寫入的 JavaScript Iterable 值,並返回一個 Iterator,該 Iterator 根據 options 參數中定義的分塊語義產生 Vectors。
Iterator
將任意 JavaScript 值的同步遵循提供的
Iterable
轉換為 Arrow Vector 的序列options
參數中定義的分塊語義。此函式返回一個函式,該函式接受要轉換的值的
Iterable
。調用時,此函式返回Vector<T>
的 Iterator。產生的
Iterator<Vector<T>>
根據options
參數中指定的queueingStrategy
和highWaterMark
產生 Vectors。queueingStrategy
為"count"
(或省略),則當 Builder 的length
達到或超過提供的highWaterMark
時,Iterator<Vector<T>>
將刷新底層Builder
(並產生新的Vector<T>
)。queueingStrategy
為"bytes"
,則當Iterator<Vector<T>>
的byteLength
達到或超過提供的highWaterMark
時,它將刷新底層Builder
(並產生新的Vector<T>
)。