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