UNPKG

arquero-arrow

Version:

Arrow serialization support for Arquero.

13 lines (12 loc) 278 B
import { Builder } from 'apache-arrow'; export default function(type) { const b = Builder.new({ type, nullValues: [null, undefined], highWaterMark: Infinity }); return { set(value, index) { b.set(index, value); }, data: () => b.finish().flush() }; }