将任意 JavaScript 值的 AsyncIterable 转换为 Arrow Vector 序列遵循提供的 options 参数中定义的分块语义。
AsyncIterable
options
此函数返回一个函数,该函数接受要转换的值的 AsyncIterable。 调用时,此函数返回 Vector<T> 的 AsyncIterator。
Vector<T>
生成的 AsyncIterator<Vector<T>> 根据 options 参数中指定的 queueingStrategy 和 highWaterMark 产生向量。
AsyncIterator<Vector<T>>
queueingStrategy
highWaterMark
"count"
Builder
length
"bytes"
byteLength
确定要创建的 Builder 和要使用的分块语义的属性对象。
一个函数,它接受要写入的值的 JavaScript AsyncIterable,并返回一个 AsyncIterator,该迭代器根据 options 参数中定义的分块语义产生向量。
AsyncIterator
将任意 JavaScript 值的遵循提供的
AsyncIterable
转换为 Arrow Vector 序列options
参数中定义的分块语义。此函数返回一个函数,该函数接受要转换的值的
AsyncIterable
。 调用时,此函数返回Vector<T>
的 AsyncIterator。生成的
AsyncIterator<Vector<T>>
根据options
参数中指定的queueingStrategy
和highWaterMark
产生向量。queueingStrategy
为"count"
(或省略),则AsyncIterator<Vector<T>>
将刷新底层Builder
(并产生新的Vector<T>
),一旦 Builder 的length
达到或超过提供的highWaterMark
。queueingStrategy
为"bytes"
,则AsyncIterator<Vector<T>>
将刷新底层Builder
(并产生新的Vector<T>
),一旦其byteLength
达到或超过提供的highWaterMark
。