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