New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arrow-wasm

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrow-wasm - npm Package Compare versions

Comparing version

to
0.0.2

370

arrow_wasm.d.ts
/* tslint:disable */
/* eslint-disable */
/**
* @param {Uint8Array} contents
* @returns {RecordBatch}
*/
export function test(contents: Uint8Array): RecordBatch;
/**
*/
export class BooleanVector {

@@ -17,2 +12,3 @@ free(): void;

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -23,2 +19,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -29,2 +26,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -34,2 +32,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -39,2 +38,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -51,2 +51,5 @@ * @returns {boolean}

/**
* Returns a `Buffer` holding all the values of this array.
*
* Note this doesn't take the offset of this array into account.
* @returns {Uint8Array}

@@ -56,2 +59,9 @@ */

/**
* Creates a JS typed array which is a view into wasm's linear memory at the slice specified.
* This function returns a new typed array which is a view into wasm's memory. This view does not copy the underlying data.
* @returns {Uint8Array}
*/
view(): Uint8Array;
/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -61,2 +71,3 @@ */

/**
* Get the length of the vector.
* @returns {number}

@@ -68,2 +79,15 @@ */

*/
export class DataType {
free(): void;
/**
* @returns {any}
*/
toJSON(): any;
/**
* @returns {string}
*/
toString(): string;
}
/**
*/
export class Field {

@@ -96,5 +120,5 @@ free(): void;

/**
* @returns {any}
* @returns {DataType}
*/
dataType(): any;
dataType(): DataType;
}

@@ -110,2 +134,3 @@ /**

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -116,2 +141,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -122,2 +148,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -127,2 +154,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -132,2 +160,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -143,2 +172,3 @@ * @returns {number}

/**
* Returns the contents of the vector as a typed array.
* @returns {Float32Array}

@@ -148,2 +178,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -157,2 +188,15 @@ */

/**
* @returns {number | undefined}
*/
min(): number | undefined;
/**
* @returns {number | undefined}
*/
max(): number | undefined;
/**
* @returns {Float32Array}
*/
view(): Float32Array;
/**
* Get the length of the vector.
* @returns {number}

@@ -171,2 +215,3 @@ */

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -177,2 +222,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -183,2 +229,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -188,2 +235,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -193,2 +241,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -204,2 +253,3 @@ * @returns {number}

/**
* Returns the contents of the vector as a typed array.
* @returns {Float64Array}

@@ -209,2 +259,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -218,2 +269,15 @@ */

/**
* @returns {number | undefined}
*/
min(): number | undefined;
/**
* @returns {number | undefined}
*/
max(): number | undefined;
/**
* @returns {Float64Array}
*/
view(): Float64Array;
/**
* Get the length of the vector.
* @returns {number}

@@ -232,2 +296,3 @@ */

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -238,2 +303,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -244,2 +310,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -249,2 +316,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -254,2 +322,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -265,2 +334,3 @@ * @returns {number}

/**
* Returns the contents of the vector as a typed array.
* @returns {Int16Array}

@@ -270,2 +340,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -279,2 +350,15 @@ */

/**
* @returns {number | undefined}
*/
min(): number | undefined;
/**
* @returns {number | undefined}
*/
max(): number | undefined;
/**
* @returns {Int16Array}
*/
view(): Int16Array;
/**
* Get the length of the vector.
* @returns {number}

@@ -293,2 +377,3 @@ */

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -299,2 +384,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -305,2 +391,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -310,2 +397,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -315,2 +403,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -326,2 +415,3 @@ * @returns {number}

/**
* Returns the contents of the vector as a typed array.
* @returns {Int32Array}

@@ -331,2 +421,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -340,2 +431,15 @@ */

/**
* @returns {number | undefined}
*/
min(): number | undefined;
/**
* @returns {number | undefined}
*/
max(): number | undefined;
/**
* @returns {Int32Array}
*/
view(): Int32Array;
/**
* Get the length of the vector.
* @returns {number}

@@ -354,2 +458,3 @@ */

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -360,2 +465,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -366,2 +472,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -371,2 +478,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -376,2 +484,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -387,2 +496,3 @@ * @returns {BigInt}

/**
* Returns the contents of the vector as a typed array.
* @returns {BigInt64Array}

@@ -392,2 +502,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -401,2 +512,11 @@ */

/**
* @returns {BigInt | undefined}
*/
min(): BigInt | undefined;
/**
* @returns {BigInt | undefined}
*/
max(): BigInt | undefined;
/**
* Get the length of the vector.
* @returns {number}

@@ -415,2 +535,3 @@ */

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -421,2 +542,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -427,2 +549,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -432,2 +555,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -437,2 +561,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -448,2 +573,3 @@ * @returns {number}

/**
* Returns the contents of the vector as a typed array.
* @returns {Int8Array}

@@ -453,2 +579,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -462,2 +589,15 @@ */

/**
* @returns {number | undefined}
*/
min(): number | undefined;
/**
* @returns {number | undefined}
*/
max(): number | undefined;
/**
* @returns {Int8Array}
*/
view(): Int8Array;
/**
* Get the length of the vector.
* @returns {number}

@@ -480,2 +620,3 @@ */

/**
* Returns the schema of the record batches.
* @returns {Schema}

@@ -485,2 +626,3 @@ */

/**
* Get a column's vector by index.
* @param {number} index

@@ -490,2 +632,8 @@ * @returns {Vector}

column(index: number): Vector;
/**
* Get a column's vector by name.
* @param {string} name
* @returns {Vector}
*/
columnWithName(name: string): Vector;
}

@@ -510,3 +658,14 @@ /**

/**
* @returns {any}
*/
fields(): any;
/**
* Look up a column by name and return a immutable reference to the column along with its index.
* @param {string} name
* @returns {any}
*/
columnWithName(name: string): any;
/**
* /// Find the index of the column with the given name.
* @param {string} name
* @returns {number}

@@ -527,5 +686,34 @@ */

*/
export class UInt16Vector {
export class Table {
free(): void;
/**
* Returns the schema of the record batches.
* @returns {Schema}
*/
schema(): Schema;
/**
* @param {number} index
* @returns {RecordBatch | undefined}
*/
recordBatch(index: number): RecordBatch | undefined;
/**
* Return the number of batches in the file
* @returns {number}
*/
numBatches(): number;
/**
* @param {Uint8Array} contents
* @returns {Table}
*/
static from(contents: Uint8Array): Table;
/**
* @returns {Uint8Array}
*/
serialize(): Uint8Array;
}
/**
*/
export class Uint16Vector {
free(): void;
/**
* @returns {string}

@@ -535,2 +723,3 @@ */

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -541,2 +730,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -547,2 +737,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -552,2 +743,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -557,2 +749,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -564,6 +757,7 @@ * @returns {number}

* @param {Uint16Array} data
* @returns {UInt16Vector}
* @returns {Uint16Vector}
*/
static from(data: Uint16Array): UInt16Vector;
static from(data: Uint16Array): Uint16Vector;
/**
* Returns the contents of the vector as a typed array.
* @returns {Uint16Array}

@@ -573,2 +767,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -582,2 +777,15 @@ */

/**
* @returns {number | undefined}
*/
min(): number | undefined;
/**
* @returns {number | undefined}
*/
max(): number | undefined;
/**
* @returns {Uint16Array}
*/
view(): Uint16Array;
/**
* Get the length of the vector.
* @returns {number}

@@ -589,3 +797,3 @@ */

*/
export class UInt32Vector {
export class Uint32Vector {
free(): void;

@@ -597,2 +805,3 @@ /**

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -603,2 +812,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -609,2 +819,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -614,2 +825,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -619,2 +831,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -626,6 +839,7 @@ * @returns {number}

* @param {Uint32Array} data
* @returns {UInt32Vector}
* @returns {Uint32Vector}
*/
static from(data: Uint32Array): UInt32Vector;
static from(data: Uint32Array): Uint32Vector;
/**
* Returns the contents of the vector as a typed array.
* @returns {Uint32Array}

@@ -635,2 +849,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -644,2 +859,15 @@ */

/**
* @returns {number | undefined}
*/
min(): number | undefined;
/**
* @returns {number | undefined}
*/
max(): number | undefined;
/**
* @returns {Uint32Array}
*/
view(): Uint32Array;
/**
* Get the length of the vector.
* @returns {number}

@@ -651,3 +879,3 @@ */

*/
export class UInt64Vector {
export class Uint64Vector {
free(): void;

@@ -659,2 +887,3 @@ /**

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -665,2 +894,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -671,2 +901,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -676,2 +907,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -681,2 +913,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -688,6 +921,7 @@ * @returns {BigInt}

* @param {BigUint64Array} data
* @returns {UInt64Vector}
* @returns {Uint64Vector}
*/
static from(data: BigUint64Array): UInt64Vector;
static from(data: BigUint64Array): Uint64Vector;
/**
* Returns the contents of the vector as a typed array.
* @returns {BigUint64Array}

@@ -697,2 +931,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -706,2 +941,11 @@ */

/**
* @returns {BigInt | undefined}
*/
min(): BigInt | undefined;
/**
* @returns {BigInt | undefined}
*/
max(): BigInt | undefined;
/**
* Get the length of the vector.
* @returns {number}

@@ -713,3 +957,3 @@ */

*/
export class UInt8Vector {
export class Uint8Vector {
free(): void;

@@ -721,2 +965,3 @@ /**

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -727,2 +972,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -733,2 +979,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -738,2 +985,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -743,2 +991,3 @@ */

/**
* Returns the primitive value at `index`.
* @param {number} index

@@ -750,6 +999,7 @@ * @returns {number}

* @param {Uint8Array} data
* @returns {UInt8Vector}
* @returns {Uint8Vector}
*/
static from(data: Uint8Array): UInt8Vector;
static from(data: Uint8Array): Uint8Vector;
/**
* Returns the contents of the vector as a typed array.
* @returns {Uint8Array}

@@ -759,2 +1009,3 @@ */

/**
* Returns the contents of the vector as a JSON array.
* @returns {any}

@@ -768,2 +1019,15 @@ */

/**
* @returns {number | undefined}
*/
min(): number | undefined;
/**
* @returns {number | undefined}
*/
max(): number | undefined;
/**
* @returns {Uint8Array}
*/
view(): Uint8Array;
/**
* Get the length of the vector.
* @returns {number}

@@ -778,10 +1042,2 @@ */

/**
* @returns {Int32Vector}
*/
as_i32_vector(): Int32Vector;
/**
* @returns {Float32Vector}
*/
as_f32_vector(): Float32Vector;
/**
* @returns {string}

@@ -791,2 +1047,3 @@ */

/**
* Returns whether the element at `index` is not null.
* @param {number} index

@@ -797,2 +1054,3 @@ * @returns {boolean}

/**
* Returns whether the element at `index` is null.
* @param {number} index

@@ -803,2 +1061,3 @@ * @returns {boolean}

/**
* Returns whether this vector is empty.
* @returns {boolean}

@@ -808,2 +1067,3 @@ */

/**
* Returns the total number of null values in this vector.
* @returns {number}

@@ -813,2 +1073,58 @@ */

/**
*Cast Vector as a `Int8Vector`.
* @returns {Int8Vector}
*/
asInt8Vector(): Int8Vector;
/**
*Cast Vector as a `Int16Vector`.
* @returns {Int16Vector}
*/
asInt16Vector(): Int16Vector;
/**
*Cast Vector as a `Int32Vector`.
* @returns {Int32Vector}
*/
asInt32Vector(): Int32Vector;
/**
*Cast Vector as a `Int64Vector`.
* @returns {Int64Vector}
*/
asInt64Vector(): Int64Vector;
/**
*Cast Vector as a `Uint8Vector`.
* @returns {Uint8Vector}
*/
asUint8Vector(): Uint8Vector;
/**
*Cast Vector as a `Uint16Vector`.
* @returns {Uint16Vector}
*/
asUint16Vector(): Uint16Vector;
/**
*Cast Vector as a `Uint32Vector`.
* @returns {Uint32Vector}
*/
asUint32Vector(): Uint32Vector;
/**
*Cast Vector as a `Uint64Vector`.
* @returns {Uint64Vector}
*/
asUint64Vector(): Uint64Vector;
/**
*Cast Vector as a `Float32Vector`.
* @returns {Float32Vector}
*/
asFloat32Vector(): Float32Vector;
/**
*Cast Vector as a `Float64Vector`.
* @returns {Float64Vector}
*/
asFloat64Vector(): Float64Vector;
/**
* Cast Vector as a `BooleanVector`.
* @returns {BooleanVector}
*/
asBooleanVector(): BooleanVector;
/**
* Get the length of the vector.
* @returns {number}

@@ -815,0 +1131,0 @@ */

2035

arrow_wasm.js

@@ -1,2033 +0,2 @@

let imports = {};
imports['__wbindgen_placeholder__'] = module.exports;
let wasm;
const { TextDecoder, TextEncoder } = require(String.raw`util`);
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
let cachegetUint8Memory0 = null;
function getUint8Memory0() {
if (cachegetUint8Memory0 === null || cachegetUint8Memory0.buffer !== wasm.memory.buffer) {
cachegetUint8Memory0 = new Uint8Array(wasm.memory.buffer);
}
return cachegetUint8Memory0;
}
function getStringFromWasm0(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
const heap = new Array(32).fill(undefined);
heap.push(undefined, null, true, false);
let heap_next = heap.length;
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
function getObject(idx) { return heap[idx]; }
function dropObject(idx) {
if (idx < 36) return;
heap[idx] = heap_next;
heap_next = idx;
}
function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}
let cachegetInt32Memory0 = null;
function getInt32Memory0() {
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachegetInt32Memory0;
}
let WASM_VECTOR_LEN = 0;
function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1);
getUint8Memory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
let cachegetInt8Memory0 = null;
function getInt8Memory0() {
if (cachegetInt8Memory0 === null || cachegetInt8Memory0.buffer !== wasm.memory.buffer) {
cachegetInt8Memory0 = new Int8Array(wasm.memory.buffer);
}
return cachegetInt8Memory0;
}
function getArrayI8FromWasm0(ptr, len) {
return getInt8Memory0().subarray(ptr / 1, ptr / 1 + len);
}
let cachegetUint16Memory0 = null;
function getUint16Memory0() {
if (cachegetUint16Memory0 === null || cachegetUint16Memory0.buffer !== wasm.memory.buffer) {
cachegetUint16Memory0 = new Uint16Array(wasm.memory.buffer);
}
return cachegetUint16Memory0;
}
function passArray16ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 2);
getUint16Memory0().set(arg, ptr / 2);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
let cachegetInt16Memory0 = null;
function getInt16Memory0() {
if (cachegetInt16Memory0 === null || cachegetInt16Memory0.buffer !== wasm.memory.buffer) {
cachegetInt16Memory0 = new Int16Array(wasm.memory.buffer);
}
return cachegetInt16Memory0;
}
function getArrayI16FromWasm0(ptr, len) {
return getInt16Memory0().subarray(ptr / 2, ptr / 2 + len);
}
let cachegetUint32Memory0 = null;
function getUint32Memory0() {
if (cachegetUint32Memory0 === null || cachegetUint32Memory0.buffer !== wasm.memory.buffer) {
cachegetUint32Memory0 = new Uint32Array(wasm.memory.buffer);
}
return cachegetUint32Memory0;
}
function passArray32ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 4);
getUint32Memory0().set(arg, ptr / 4);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function getArrayI32FromWasm0(ptr, len) {
return getInt32Memory0().subarray(ptr / 4, ptr / 4 + len);
}
const u32CvtShim = new Uint32Array(2);
const int64CvtShim = new BigInt64Array(u32CvtShim.buffer);
let cachegetUint64Memory0 = null;
function getUint64Memory0() {
if (cachegetUint64Memory0 === null || cachegetUint64Memory0.buffer !== wasm.memory.buffer) {
cachegetUint64Memory0 = new BigUint64Array(wasm.memory.buffer);
}
return cachegetUint64Memory0;
}
function passArray64ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 8);
getUint64Memory0().set(arg, ptr / 8);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
let cachegetInt64Memory0 = null;
function getInt64Memory0() {
if (cachegetInt64Memory0 === null || cachegetInt64Memory0.buffer !== wasm.memory.buffer) {
cachegetInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
}
return cachegetInt64Memory0;
}
function getArrayI64FromWasm0(ptr, len) {
return getInt64Memory0().subarray(ptr / 8, ptr / 8 + len);
}
function getArrayU8FromWasm0(ptr, len) {
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
}
function getArrayU16FromWasm0(ptr, len) {
return getUint16Memory0().subarray(ptr / 2, ptr / 2 + len);
}
function getArrayU32FromWasm0(ptr, len) {
return getUint32Memory0().subarray(ptr / 4, ptr / 4 + len);
}
const uint64CvtShim = new BigUint64Array(u32CvtShim.buffer);
function getArrayU64FromWasm0(ptr, len) {
return getUint64Memory0().subarray(ptr / 8, ptr / 8 + len);
}
let cachegetFloat32Memory0 = null;
function getFloat32Memory0() {
if (cachegetFloat32Memory0 === null || cachegetFloat32Memory0.buffer !== wasm.memory.buffer) {
cachegetFloat32Memory0 = new Float32Array(wasm.memory.buffer);
}
return cachegetFloat32Memory0;
}
function passArrayF32ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 4);
getFloat32Memory0().set(arg, ptr / 4);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function getArrayF32FromWasm0(ptr, len) {
return getFloat32Memory0().subarray(ptr / 4, ptr / 4 + len);
}
let cachegetFloat64Memory0 = null;
function getFloat64Memory0() {
if (cachegetFloat64Memory0 === null || cachegetFloat64Memory0.buffer !== wasm.memory.buffer) {
cachegetFloat64Memory0 = new Float64Array(wasm.memory.buffer);
}
return cachegetFloat64Memory0;
}
function passArrayF64ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 8);
getFloat64Memory0().set(arg, ptr / 8);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function getArrayF64FromWasm0(ptr, len) {
return getFloat64Memory0().subarray(ptr / 8, ptr / 8 + len);
}
/**
* @param {Uint8Array} contents
* @returns {RecordBatch}
*/
module.exports.test = function(contents) {
var ptr0 = passArray8ToWasm0(contents, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.test(ptr0, len0);
return RecordBatch.__wrap(ret);
};
let cachedTextEncoder = new TextEncoder('utf-8');
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
? function (arg, view) {
return cachedTextEncoder.encodeInto(arg, view);
}
: function (arg, view) {
const buf = cachedTextEncoder.encode(arg);
view.set(buf);
return {
read: arg.length,
written: buf.length
};
});
function passStringToWasm0(arg, malloc, realloc) {
if (realloc === undefined) {
const buf = cachedTextEncoder.encode(arg);
const ptr = malloc(buf.length);
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
WASM_VECTOR_LEN = buf.length;
return ptr;
}
let len = arg.length;
let ptr = malloc(len);
const mem = getUint8Memory0();
let offset = 0;
for (; offset < len; offset++) {
const code = arg.charCodeAt(offset);
if (code > 0x7F) break;
mem[ptr + offset] = code;
}
if (offset !== len) {
if (offset !== 0) {
arg = arg.slice(offset);
}
ptr = realloc(ptr, len, len = offset + arg.length * 3);
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
const ret = encodeString(arg, view);
offset += ret.written;
}
WASM_VECTOR_LEN = offset;
return ptr;
}
/**
*/
class BooleanVector {
static __wrap(ptr) {
const obj = Object.create(BooleanVector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_booleanvector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.booleanvector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.booleanvector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.booleanvector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.booleanvector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.booleanvector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.booleanvector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
get(index) {
var ret = wasm.booleanvector_get(this.ptr, index);
return ret !== 0;
}
/**
* @param {Uint8Array} data
* @param {number} length
* @returns {BooleanVector}
*/
static from(data, length) {
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.booleanvector_from(ptr0, len0, length);
return BooleanVector.__wrap(ret);
}
/**
* @returns {Uint8Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.booleanvector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 1);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.booleanvector_toJSON(this.ptr);
return takeObject(ret);
}
}
module.exports.BooleanVector = BooleanVector;
/**
*/
class Field {
static __wrap(ptr) {
const obj = Object.create(Field.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_field_free(ptr);
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.field_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.field_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {string}
*/
name() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.field_name(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {boolean}
*/
isNullable() {
var ret = wasm.field_isNullable(this.ptr);
return ret !== 0;
}
/**
* @returns {BigInt | undefined}
*/
dictId() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.field_dictId(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
u32CvtShim[0] = r1;
u32CvtShim[1] = r2;
const n0 = r0 === 0 ? undefined : int64CvtShim[0];
return n0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {boolean | undefined}
*/
dictIsOrdered() {
var ret = wasm.field_dictIsOrdered(this.ptr);
return ret === 0xFFFFFF ? undefined : ret !== 0;
}
/**
* @returns {any}
*/
dataType() {
var ret = wasm.field_dataType(this.ptr);
return takeObject(ret);
}
}
module.exports.Field = Field;
/**
*/
class Float32Vector {
static __wrap(ptr) {
const obj = Object.create(Float32Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_float32vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.float32vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.float32vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.float32vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.float32vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.float32vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.float32vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {number}
*/
get(index) {
var ret = wasm.float32vector_get(this.ptr, index);
return ret;
}
/**
* @param {Float32Array} data
* @returns {Float32Vector}
*/
static from(data) {
var ptr0 = passArrayF32ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.float32vector_from(ptr0, len0);
return Float32Vector.__wrap(ret);
}
/**
* @returns {Float32Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.float32vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayF32FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 4);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.float32vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {number | undefined}
*/
sum() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.float32vector_sum(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getFloat32Memory0()[retptr / 4 + 1];
return r0 === 0 ? undefined : r1;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
}
module.exports.Float32Vector = Float32Vector;
/**
*/
class Float64Vector {
static __wrap(ptr) {
const obj = Object.create(Float64Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_float64vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.float64vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.float64vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.float64vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.float64vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.float64vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.float64vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {number}
*/
get(index) {
var ret = wasm.float64vector_get(this.ptr, index);
return ret;
}
/**
* @param {Float64Array} data
* @returns {Float64Vector}
*/
static from(data) {
var ptr0 = passArrayF64ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.float64vector_from(ptr0, len0);
return Float64Vector.__wrap(ret);
}
/**
* @returns {Float64Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.float64vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayF64FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 8);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.float64vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {number | undefined}
*/
sum() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.float64vector_sum(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getFloat64Memory0()[retptr / 8 + 1];
return r0 === 0 ? undefined : r1;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
}
module.exports.Float64Vector = Float64Vector;
/**
*/
class Int16Vector {
static __wrap(ptr) {
const obj = Object.create(Int16Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_int16vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int16vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.int16vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.int16vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.int16vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.int16vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.int16vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {number}
*/
get(index) {
var ret = wasm.int16vector_get(this.ptr, index);
return ret;
}
/**
* @param {Int16Array} data
* @returns {Int16Vector}
*/
static from(data) {
var ptr0 = passArray16ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.int16vector_from(ptr0, len0);
return Int16Vector.__wrap(ret);
}
/**
* @returns {Int16Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int16vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayI16FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 2);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.int16vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {number | undefined}
*/
sum() {
var ret = wasm.int16vector_sum(this.ptr);
return ret === 0xFFFFFF ? undefined : ret;
}
}
module.exports.Int16Vector = Int16Vector;
/**
*/
class Int32Vector {
static __wrap(ptr) {
const obj = Object.create(Int32Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_int32vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int32vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.int32vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.int32vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.int32vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.int32vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.int32vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {number}
*/
get(index) {
var ret = wasm.int32vector_get(this.ptr, index);
return ret;
}
/**
* @param {Int32Array} data
* @returns {Int32Vector}
*/
static from(data) {
var ptr0 = passArray32ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.int32vector_from(ptr0, len0);
return Int32Vector.__wrap(ret);
}
/**
* @returns {Int32Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int32vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayI32FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 4);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.int32vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {number | undefined}
*/
sum() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int32vector_sum(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return r0 === 0 ? undefined : r1;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
}
module.exports.Int32Vector = Int32Vector;
/**
*/
class Int64Vector {
static __wrap(ptr) {
const obj = Object.create(Int64Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_int64vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int64vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.int64vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.int64vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.int64vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.int64vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.int64vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {BigInt}
*/
get(index) {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int64vector_get(retptr, this.ptr, index);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
u32CvtShim[0] = r0;
u32CvtShim[1] = r1;
const n0 = int64CvtShim[0];
return n0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @param {BigInt64Array} data
* @returns {Int64Vector}
*/
static from(data) {
var ptr0 = passArray64ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.int64vector_from(ptr0, len0);
return Int64Vector.__wrap(ret);
}
/**
* @returns {BigInt64Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int64vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayI64FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 8);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.int64vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {BigInt | undefined}
*/
sum() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int64vector_sum(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
u32CvtShim[0] = r1;
u32CvtShim[1] = r2;
const n0 = r0 === 0 ? undefined : int64CvtShim[0];
return n0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
}
module.exports.Int64Vector = Int64Vector;
/**
*/
class Int8Vector {
static __wrap(ptr) {
const obj = Object.create(Int8Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_int8vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int8vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.int8vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.int8vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.int8vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.int8vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.int8vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {number}
*/
get(index) {
var ret = wasm.int8vector_get(this.ptr, index);
return ret;
}
/**
* @param {Int8Array} data
* @returns {Int8Vector}
*/
static from(data) {
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.int8vector_from(ptr0, len0);
return Int8Vector.__wrap(ret);
}
/**
* @returns {Int8Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.int8vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayI8FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 1);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.int8vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {number | undefined}
*/
sum() {
var ret = wasm.int8vector_sum(this.ptr);
return ret === 0xFFFFFF ? undefined : ret;
}
}
module.exports.Int8Vector = Int8Vector;
/**
*/
class RecordBatch {
static __wrap(ptr) {
const obj = Object.create(RecordBatch.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_recordbatch_free(ptr);
}
/**
* @returns {number}
*/
numRows() {
var ret = wasm.recordbatch_numRows(this.ptr);
return ret >>> 0;
}
/**
* @returns {number}
*/
numColumns() {
var ret = wasm.recordbatch_numColumns(this.ptr);
return ret >>> 0;
}
/**
* @returns {Schema}
*/
schema() {
var ret = wasm.recordbatch_schema(this.ptr);
return Schema.__wrap(ret);
}
/**
* @param {number} index
* @returns {Vector}
*/
column(index) {
var ret = wasm.recordbatch_column(this.ptr, index);
return Vector.__wrap(ret);
}
}
module.exports.RecordBatch = RecordBatch;
/**
*/
class Schema {
static __wrap(ptr) {
const obj = Object.create(Schema.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_schema_free(ptr);
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.schema_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.schema_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @param {number} i
* @returns {Field}
*/
field(i) {
var ret = wasm.schema_field(this.ptr, i);
return Field.__wrap(ret);
}
/**
* @param {string} name
* @returns {number}
*/
indexOf(name) {
var ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.schema_indexOf(this.ptr, ptr0, len0);
return ret >>> 0;
}
/**
* @param {string} name
* @returns {Field}
*/
fieldWithName(name) {
var ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.schema_fieldWithName(this.ptr, ptr0, len0);
return Field.__wrap(ret);
}
/**
* @returns {any}
*/
metadata() {
var ret = wasm.schema_metadata(this.ptr);
return takeObject(ret);
}
}
module.exports.Schema = Schema;
/**
*/
class UInt16Vector {
static __wrap(ptr) {
const obj = Object.create(UInt16Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_uint16vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint16vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.uint16vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.uint16vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.uint16vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.uint16vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.uint16vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {number}
*/
get(index) {
var ret = wasm.uint16vector_get(this.ptr, index);
return ret;
}
/**
* @param {Uint16Array} data
* @returns {UInt16Vector}
*/
static from(data) {
var ptr0 = passArray16ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.uint16vector_from(ptr0, len0);
return UInt16Vector.__wrap(ret);
}
/**
* @returns {Uint16Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint16vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU16FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 2);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.uint16vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {number | undefined}
*/
sum() {
var ret = wasm.uint16vector_sum(this.ptr);
return ret === 0xFFFFFF ? undefined : ret;
}
}
module.exports.UInt16Vector = UInt16Vector;
/**
*/
class UInt32Vector {
static __wrap(ptr) {
const obj = Object.create(UInt32Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_uint32vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint32vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.uint32vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.uint32vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.uint32vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.uint32vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.uint32vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {number}
*/
get(index) {
var ret = wasm.uint32vector_get(this.ptr, index);
return ret >>> 0;
}
/**
* @param {Uint32Array} data
* @returns {UInt32Vector}
*/
static from(data) {
var ptr0 = passArray32ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.uint32vector_from(ptr0, len0);
return UInt32Vector.__wrap(ret);
}
/**
* @returns {Uint32Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint32vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU32FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 4);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.uint32vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {number | undefined}
*/
sum() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint32vector_sum(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return r0 === 0 ? undefined : r1 >>> 0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
}
module.exports.UInt32Vector = UInt32Vector;
/**
*/
class UInt64Vector {
static __wrap(ptr) {
const obj = Object.create(UInt64Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_uint64vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint64vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.uint64vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.uint64vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.uint64vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.uint64vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.uint64vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {BigInt}
*/
get(index) {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint64vector_get(retptr, this.ptr, index);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
u32CvtShim[0] = r0;
u32CvtShim[1] = r1;
const n0 = uint64CvtShim[0];
return n0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @param {BigUint64Array} data
* @returns {UInt64Vector}
*/
static from(data) {
var ptr0 = passArray64ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.uint64vector_from(ptr0, len0);
return UInt64Vector.__wrap(ret);
}
/**
* @returns {BigUint64Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint64vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU64FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 8);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.uint64vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {BigInt | undefined}
*/
sum() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint64vector_sum(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
u32CvtShim[0] = r1;
u32CvtShim[1] = r2;
const n0 = r0 === 0 ? undefined : uint64CvtShim[0];
return n0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
}
module.exports.UInt64Vector = UInt64Vector;
/**
*/
class UInt8Vector {
static __wrap(ptr) {
const obj = Object.create(UInt8Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_uint8vector_free(ptr);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint8vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.uint8vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.uint8vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.uint8vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.uint8vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.uint8vector_nullCount(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {number}
*/
get(index) {
var ret = wasm.uint8vector_get(this.ptr, index);
return ret;
}
/**
* @param {Uint8Array} data
* @returns {UInt8Vector}
*/
static from(data) {
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.uint8vector_from(ptr0, len0);
return UInt8Vector.__wrap(ret);
}
/**
* @returns {Uint8Array}
*/
toArray() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.uint8vector_toArray(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_free(r0, r1 * 1);
return v0;
} finally {
wasm.__wbindgen_export_0.value += 16;
}
}
/**
* @returns {any}
*/
toJSON() {
var ret = wasm.uint8vector_toJSON(this.ptr);
return takeObject(ret);
}
/**
* @returns {number | undefined}
*/
sum() {
var ret = wasm.uint8vector_sum(this.ptr);
return ret === 0xFFFFFF ? undefined : ret;
}
}
module.exports.UInt8Vector = UInt8Vector;
/**
*/
class Vector {
static __wrap(ptr) {
const obj = Object.create(Vector.prototype);
obj.ptr = ptr;
return obj;
}
free() {
const ptr = this.ptr;
this.ptr = 0;
wasm.__wbg_vector_free(ptr);
}
/**
* @returns {Int32Vector}
*/
as_i32_vector() {
var ret = wasm.vector_as_i32_vector(this.ptr);
return Int32Vector.__wrap(ret);
}
/**
* @returns {Float32Vector}
*/
as_f32_vector() {
var ret = wasm.vector_as_f32_vector(this.ptr);
return Float32Vector.__wrap(ret);
}
/**
* @returns {string}
*/
toString() {
try {
const retptr = wasm.__wbindgen_export_0.value - 16;
wasm.__wbindgen_export_0.value = retptr;
wasm.vector_toString(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
} finally {
wasm.__wbindgen_export_0.value += 16;
wasm.__wbindgen_free(r0, r1);
}
}
/**
* @returns {number}
*/
get length() {
var ret = wasm.vector_length(this.ptr);
return ret >>> 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isValid(index) {
var ret = wasm.vector_isValid(this.ptr, index);
return ret !== 0;
}
/**
* @param {number} index
* @returns {boolean}
*/
isNull(index) {
var ret = wasm.vector_isNull(this.ptr, index);
return ret !== 0;
}
/**
* @returns {boolean}
*/
isEmpty() {
var ret = wasm.vector_isEmpty(this.ptr);
return ret !== 0;
}
/**
* @returns {number}
*/
nullCount() {
var ret = wasm.vector_nullCount(this.ptr);
return ret >>> 0;
}
}
module.exports.Vector = Vector;
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
module.exports.__wbg_new_59cb74e423758ede = function() {
var ret = new Error();
return addHeapObject(ret);
};
module.exports.__wbg_stack_558ba5917b466edd = function(arg0, arg1) {
var ret = getObject(arg1).stack;
var ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
module.exports.__wbg_error_4bb6c2a97407129a = function(arg0, arg1) {
try {
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(arg0, arg1);
}
};
module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbindgen_throw = function(arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
};
module.exports.__wbindgen_rethrow = function(arg0) {
throw takeObject(arg0);
};
const path = require('path').join(__dirname, 'arrow_wasm_bg.wasm');
const bytes = require('fs').readFileSync(path);
const wasmModule = new WebAssembly.Module(bytes);
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
wasm = wasmInstance.exports;
module.exports.__wasm = wasm;
import * as wasm from "./arrow_wasm_bg.wasm";
export * from "./arrow_wasm_bg.js";

@@ -6,8 +6,12 @@ {

],
"version": "0.0.1",
"description": "Apache Arrow in WebAssembly",
"version": "0.0.2",
"license": "MIT/Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/domoritz/arrow-wasm"
},
"files": [
"arrow_wasm_bg.wasm",
"arrow_wasm.js",
"arrow_wasm_bg.js",
"arrow_wasm.d.ts",

@@ -17,4 +21,5 @@ "LICENSE_APACHE.txt",

],
"main": "arrow_wasm.js",
"types": "arrow_wasm.d.ts"
"module": "arrow_wasm.js",
"types": "arrow_wasm.d.ts",
"sideEffects": false
}

@@ -1,2 +0,2 @@

# WASM Arrow ![.github/workflows/test.yml](https://github.com/domoritz/arrow-wasm/workflows/.github/workflows/test.yml/badge.svg)
# WASM Arrow ![.github/workflows/test.yml](https://github.com/domoritz/arrow-wasm/workflows/.github/workflows/test.yml/badge.svg) [![npm version](https://img.shields.io/npm/v/arrow-wasm.svg)](https://www.npmjs.com/package/arrow-wasm)

@@ -3,0 +3,0 @@ The idea here is to compile the Rust library to wasm and use that instead of the JS library. The question is how difficult it is and what the performance implications are.

Sorry, the diff of this file is not supported yet