将任意 JavaScript 值的同步 Iterable 转换为 Arrow Vector 序列遵循提供的 options 参数中定义的分块语义。
Iterable
options
此函数返回一个函数,该函数接受要转换的值的 Iterable。 调用时,此函数返回 Vector<T> 的迭代器。
Vector<T>
结果 Iterator<Vector<T>> 根据 options 参数中指定的 queueingStrategy 和 highWaterMark 产生向量。
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<Vector<T>>
根据options
参数中指定的queueingStrategy
和highWaterMark
产生向量。queueingStrategy
是"count"
(或省略),则一旦 Builder 的length
达到或超过提供的highWaterMark
,Iterator<Vector<T>>
将刷新底层Builder
(并产生一个新的Vector<T>
)。queueingStrategy
是"bytes"
,则一旦 Builder 的byteLength
达到或超过提供的highWaterMark
,Iterator<Vector<T>>
将刷新底层Builder
(并产生一个新的Vector<T>
)。