tabulark 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -2
- package/README.md +125 -42
- package/dist/client.d.ts +71 -2
- package/dist/errors.d.ts +7 -1
- package/dist/experimental.js +1 -1
- package/dist/experimental.js.map +2 -2
- package/dist/http.d.ts +65 -0
- package/dist/http.js +2 -0
- package/dist/http.js.map +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +4 -4
- package/dist/model.d.ts +6 -3
- package/dist/protocol.d.ts +3 -3
- package/dist/range-cache.d.ts +24 -5
- package/dist/range-source.d.ts +64 -0
- package/dist/rpc-client.d.ts +15 -2
- package/dist/source.d.ts +13 -0
- package/dist/view/canvas-table-view-public.d.ts +6 -0
- package/dist/view/canvas-table-view.d.ts +8 -0
- package/dist/wasm/arrow/tabulark_arrow.d.ts +33 -6
- package/dist/wasm/arrow/tabulark_arrow.js +129 -17
- package/dist/wasm/arrow/tabulark_arrow_bg.wasm +0 -0
- package/dist/wasm/arrow/tabulark_arrow_bg.wasm.d.ts +6 -1
- package/dist/wasm/delimited/tabulark_delimited.d.ts +31 -5
- package/dist/wasm/delimited/tabulark_delimited.js +115 -8
- package/dist/wasm/delimited/tabulark_delimited_bg.wasm +0 -0
- package/dist/wasm/delimited/tabulark_delimited_bg.wasm.d.ts +6 -1
- package/dist/wasm/excel/tabulark_excel.d.ts +33 -8
- package/dist/wasm/excel/tabulark_excel.js +129 -19
- package/dist/wasm/excel/tabulark_excel_bg.wasm +0 -0
- package/dist/wasm/excel/tabulark_excel_bg.wasm.d.ts +6 -1
- package/dist/wasm/parquet/tabulark_parquet.d.ts +31 -6
- package/dist/wasm/parquet/tabulark_parquet.js +135 -17
- package/dist/wasm/parquet/tabulark_parquet_bg.wasm +0 -0
- package/dist/wasm/parquet/tabulark_parquet_bg.wasm.d.ts +6 -1
- package/dist/worker/blob-source-accessor.d.ts +10 -0
- package/dist/worker/source-accessor.d.ts +76 -0
- package/dist/worker/wasm-adapter.d.ts +39 -38
- package/dist/worker-range-source.d.ts +1 -0
- package/dist/worker-range-source.js +2 -0
- package/dist/worker-range-source.js.map +7 -0
- package/dist/worker.js +1 -1
- package/dist/worker.js.map +4 -4
- package/package.json +8 -1
|
@@ -363,6 +363,50 @@ export class WasmRuntime {
|
|
|
363
363
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Starts and synchronously completes a metadata operation.
|
|
368
|
+
* @param {number} table_handle
|
|
369
|
+
* @returns {any}
|
|
370
|
+
*/
|
|
371
|
+
beginMetadata(table_handle) {
|
|
372
|
+
try {
|
|
373
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
374
|
+
wasm.wasmruntime_beginMetadata(retptr, this.__wbg_ptr, table_handle);
|
|
375
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
376
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
377
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
378
|
+
if (r2) {
|
|
379
|
+
throw takeObject(r1);
|
|
380
|
+
}
|
|
381
|
+
return takeObject(r0);
|
|
382
|
+
} finally {
|
|
383
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Starts and synchronously completes an open-table operation using the
|
|
388
|
+
* common ABI-v3 step envelope.
|
|
389
|
+
* @param {number} source_handle
|
|
390
|
+
* @param {string} table_id
|
|
391
|
+
* @returns {any}
|
|
392
|
+
*/
|
|
393
|
+
beginOpenTable(source_handle, table_id) {
|
|
394
|
+
try {
|
|
395
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
396
|
+
const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
397
|
+
const len0 = WASM_VECTOR_LEN;
|
|
398
|
+
wasm.wasmruntime_beginOpenTable(retptr, this.__wbg_ptr, source_handle, ptr0, len0);
|
|
399
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
400
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
401
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
402
|
+
if (r2) {
|
|
403
|
+
throw takeObject(r1);
|
|
404
|
+
}
|
|
405
|
+
return takeObject(r0);
|
|
406
|
+
} finally {
|
|
407
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
366
410
|
/**
|
|
367
411
|
* Cancels and releases a pending open or read operation.
|
|
368
412
|
* @param {number} operation_handle
|
|
@@ -381,18 +425,56 @@ export class WasmRuntime {
|
|
|
381
425
|
return ret >>> 0;
|
|
382
426
|
}
|
|
383
427
|
/**
|
|
384
|
-
*
|
|
385
|
-
*
|
|
428
|
+
* Returns the private adapter-owned resource ledger snapshot.
|
|
429
|
+
* @returns {any}
|
|
430
|
+
*/
|
|
431
|
+
resourceSnapshot() {
|
|
432
|
+
try {
|
|
433
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
434
|
+
wasm.wasmruntime_resourceSnapshot(retptr, this.__wbg_ptr);
|
|
435
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
436
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
437
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
438
|
+
if (r2) {
|
|
439
|
+
throw takeObject(r1);
|
|
440
|
+
}
|
|
441
|
+
return takeObject(r0);
|
|
442
|
+
} finally {
|
|
443
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Starts and synchronously completes a static-presentation operation.
|
|
448
|
+
* @param {number} table_handle
|
|
449
|
+
* @returns {any}
|
|
450
|
+
*/
|
|
451
|
+
beginPresentation(table_handle) {
|
|
452
|
+
try {
|
|
453
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
454
|
+
wasm.wasmruntime_beginPresentation(retptr, this.__wbg_ptr, table_handle);
|
|
455
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
456
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
457
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
458
|
+
if (r2) {
|
|
459
|
+
throw takeObject(r1);
|
|
460
|
+
}
|
|
461
|
+
return takeObject(r0);
|
|
462
|
+
} finally {
|
|
463
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Supplies a complete, revision-matched result set and advances an open
|
|
468
|
+
* or range-read operation.
|
|
386
469
|
* @param {number} operation_handle
|
|
387
|
-
* @param {number}
|
|
388
|
-
* @param {
|
|
389
|
-
* @param {boolean} eof
|
|
470
|
+
* @param {number} operation_revision
|
|
471
|
+
* @param {Array<any>} results
|
|
390
472
|
* @returns {any}
|
|
391
473
|
*/
|
|
392
|
-
continueOperation(operation_handle,
|
|
474
|
+
continueOperation(operation_handle, operation_revision, results) {
|
|
393
475
|
try {
|
|
394
476
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
395
|
-
wasm.wasmruntime_continueOperation(retptr, this.__wbg_ptr, operation_handle,
|
|
477
|
+
wasm.wasmruntime_continueOperation(retptr, this.__wbg_ptr, operation_handle, operation_revision, addHeapObject(results));
|
|
396
478
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
397
479
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
398
480
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -405,7 +487,7 @@ export class WasmRuntime {
|
|
|
405
487
|
}
|
|
406
488
|
}
|
|
407
489
|
/**
|
|
408
|
-
* Returns official adapter ABI version
|
|
490
|
+
* Returns official adapter ABI version three.
|
|
409
491
|
* @returns {number}
|
|
410
492
|
*/
|
|
411
493
|
adapterApiVersion() {
|
|
@@ -441,6 +523,27 @@ export class WasmRuntime {
|
|
|
441
523
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
442
524
|
}
|
|
443
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* Starts and synchronously completes a range-presentation operation.
|
|
528
|
+
* @param {number} table_handle
|
|
529
|
+
* @param {any} request
|
|
530
|
+
* @returns {any}
|
|
531
|
+
*/
|
|
532
|
+
beginPresentationRange(table_handle, request) {
|
|
533
|
+
try {
|
|
534
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
535
|
+
wasm.wasmruntime_beginPresentationRange(retptr, this.__wbg_ptr, table_handle, addHeapObject(request));
|
|
536
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
537
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
538
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
539
|
+
if (r2) {
|
|
540
|
+
throw takeObject(r1);
|
|
541
|
+
}
|
|
542
|
+
return takeObject(r0);
|
|
543
|
+
} finally {
|
|
544
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
444
547
|
/**
|
|
445
548
|
* Creates a runtime from a camel-case [`RuntimeConfig`] object.
|
|
446
549
|
* @param {any} config
|
|
@@ -535,6 +638,10 @@ function __wbg_get_imports() {
|
|
|
535
638
|
const ret = getObject(arg0).buffer;
|
|
536
639
|
return addHeapObject(ret);
|
|
537
640
|
};
|
|
641
|
+
imports.wbg.__wbg_byteLength_ea52ac3de882b483 = function(arg0) {
|
|
642
|
+
const ret = getObject(arg0).byteLength;
|
|
643
|
+
return ret;
|
|
644
|
+
};
|
|
538
645
|
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
539
646
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
540
647
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -6,18 +6,23 @@ export const __wbg_wasmruntime_free: (a: number, b: number) => void;
|
|
|
6
6
|
export const wasmruntime_adapterApiVersion: (a: number) => number;
|
|
7
7
|
export const wasmruntime_adapterId: (a: number, b: number) => void;
|
|
8
8
|
export const wasmruntime_batchLayoutVersion: (a: number) => number;
|
|
9
|
+
export const wasmruntime_beginMetadata: (a: number, b: number, c: number) => void;
|
|
9
10
|
export const wasmruntime_beginOpen: (a: number, b: number, c: number, d: number) => void;
|
|
11
|
+
export const wasmruntime_beginOpenTable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
12
|
+
export const wasmruntime_beginPresentation: (a: number, b: number, c: number) => void;
|
|
13
|
+
export const wasmruntime_beginPresentationRange: (a: number, b: number, c: number, d: number) => void;
|
|
10
14
|
export const wasmruntime_beginRead: (a: number, b: number, c: number, d: number) => void;
|
|
11
15
|
export const wasmruntime_cancelOperation: (a: number, b: number) => number;
|
|
12
16
|
export const wasmruntime_closeSource: (a: number, b: number) => number;
|
|
13
17
|
export const wasmruntime_closeTable: (a: number, b: number) => number;
|
|
14
|
-
export const wasmruntime_continueOperation: (a: number, b: number, c: number, d: number, e: number
|
|
18
|
+
export const wasmruntime_continueOperation: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
15
19
|
export const wasmruntime_metadata: (a: number, b: number, c: number) => void;
|
|
16
20
|
export const wasmruntime_new: (a: number, b: number) => void;
|
|
17
21
|
export const wasmruntime_openTable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
18
22
|
export const wasmruntime_presentation: (a: number, b: number, c: number) => void;
|
|
19
23
|
export const wasmruntime_protocolVersion: (a: number) => number;
|
|
20
24
|
export const wasmruntime_readPresentationRange: (a: number, b: number, c: number, d: number) => void;
|
|
25
|
+
export const wasmruntime_resourceSnapshot: (a: number, b: number) => void;
|
|
21
26
|
export const wasmruntime_shutdown: (a: number) => void;
|
|
22
27
|
export const __wbindgen_export_0: (a: number, b: number) => number;
|
|
23
28
|
export const __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Dedicated Excel runtime artifact implementing official adapter ABI
|
|
4
|
+
* Dedicated Excel runtime artifact implementing official adapter ABI v3.
|
|
5
5
|
*/
|
|
6
6
|
export class WasmRuntime {
|
|
7
7
|
free(): void;
|
|
@@ -10,7 +10,7 @@ export class WasmRuntime {
|
|
|
10
10
|
*/
|
|
11
11
|
adapterId(): string;
|
|
12
12
|
/**
|
|
13
|
-
* Begins a
|
|
13
|
+
* Begins a bounded range-backed workbook open.
|
|
14
14
|
*/
|
|
15
15
|
beginOpen(options: any, source_length: number): any;
|
|
16
16
|
/**
|
|
@@ -18,7 +18,7 @@ export class WasmRuntime {
|
|
|
18
18
|
*/
|
|
19
19
|
beginRead(table_handle: number, request: any): any;
|
|
20
20
|
/**
|
|
21
|
-
* Opens one logical worksheet table.
|
|
21
|
+
* Opens one already-indexed logical worksheet table synchronously.
|
|
22
22
|
*/
|
|
23
23
|
openTable(source_handle: number, table_id: string): any;
|
|
24
24
|
/**
|
|
@@ -34,7 +34,15 @@ export class WasmRuntime {
|
|
|
34
34
|
*/
|
|
35
35
|
presentation(table_handle: number): any;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Starts and completes an ABI-v3 metadata operation.
|
|
38
|
+
*/
|
|
39
|
+
beginMetadata(table_handle: number): any;
|
|
40
|
+
/**
|
|
41
|
+
* Starts a range-backed worksheet-open operation.
|
|
42
|
+
*/
|
|
43
|
+
beginOpenTable(source_handle: number, table_id: string): any;
|
|
44
|
+
/**
|
|
45
|
+
* Cancels and releases a pending range-backed operation.
|
|
38
46
|
*/
|
|
39
47
|
cancelOperation(operation_handle: number): boolean;
|
|
40
48
|
/**
|
|
@@ -42,9 +50,17 @@ export class WasmRuntime {
|
|
|
42
50
|
*/
|
|
43
51
|
protocolVersion(): number;
|
|
44
52
|
/**
|
|
45
|
-
*
|
|
53
|
+
* Returns the private adapter-owned resource ledger snapshot.
|
|
54
|
+
*/
|
|
55
|
+
resourceSnapshot(): any;
|
|
56
|
+
/**
|
|
57
|
+
* Starts and completes an ABI-v3 static-presentation operation.
|
|
58
|
+
*/
|
|
59
|
+
beginPresentation(table_handle: number): any;
|
|
60
|
+
/**
|
|
61
|
+
* Supplies revision-matched source ranges and advances the operation.
|
|
46
62
|
*/
|
|
47
|
-
continueOperation(operation_handle: number,
|
|
63
|
+
continueOperation(operation_handle: number, operation_revision: number, results: Array<any>): any;
|
|
48
64
|
/**
|
|
49
65
|
* Returns the official adapter ABI version.
|
|
50
66
|
*/
|
|
@@ -58,7 +74,11 @@ export class WasmRuntime {
|
|
|
58
74
|
*/
|
|
59
75
|
readPresentationRange(table_handle: number, request: any): any;
|
|
60
76
|
/**
|
|
61
|
-
*
|
|
77
|
+
* Starts and completes an ABI-v3 range-presentation operation.
|
|
78
|
+
*/
|
|
79
|
+
beginPresentationRange(table_handle: number, request: any): any;
|
|
80
|
+
/**
|
|
81
|
+
* Creates an empty range-backed Excel adapter runtime.
|
|
62
82
|
*/
|
|
63
83
|
constructor(config: any);
|
|
64
84
|
/**
|
|
@@ -79,18 +99,23 @@ export interface InitOutput {
|
|
|
79
99
|
readonly wasmruntime_adapterApiVersion: (a: number) => number;
|
|
80
100
|
readonly wasmruntime_adapterId: (a: number, b: number) => void;
|
|
81
101
|
readonly wasmruntime_batchLayoutVersion: (a: number) => number;
|
|
102
|
+
readonly wasmruntime_beginMetadata: (a: number, b: number, c: number) => void;
|
|
82
103
|
readonly wasmruntime_beginOpen: (a: number, b: number, c: number, d: number) => void;
|
|
104
|
+
readonly wasmruntime_beginOpenTable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
105
|
+
readonly wasmruntime_beginPresentation: (a: number, b: number, c: number) => void;
|
|
106
|
+
readonly wasmruntime_beginPresentationRange: (a: number, b: number, c: number, d: number) => void;
|
|
83
107
|
readonly wasmruntime_beginRead: (a: number, b: number, c: number, d: number) => void;
|
|
84
108
|
readonly wasmruntime_cancelOperation: (a: number, b: number) => number;
|
|
85
109
|
readonly wasmruntime_closeSource: (a: number, b: number) => number;
|
|
86
110
|
readonly wasmruntime_closeTable: (a: number, b: number) => number;
|
|
87
|
-
readonly wasmruntime_continueOperation: (a: number, b: number, c: number, d: number, e: number
|
|
111
|
+
readonly wasmruntime_continueOperation: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
88
112
|
readonly wasmruntime_metadata: (a: number, b: number, c: number) => void;
|
|
89
113
|
readonly wasmruntime_new: (a: number, b: number) => void;
|
|
90
114
|
readonly wasmruntime_openTable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
91
115
|
readonly wasmruntime_presentation: (a: number, b: number, c: number) => void;
|
|
92
116
|
readonly wasmruntime_protocolVersion: (a: number) => number;
|
|
93
117
|
readonly wasmruntime_readPresentationRange: (a: number, b: number, c: number, d: number) => void;
|
|
118
|
+
readonly wasmruntime_resourceSnapshot: (a: number, b: number) => void;
|
|
94
119
|
readonly wasmruntime_shutdown: (a: number) => void;
|
|
95
120
|
readonly __wbindgen_export_0: (a: number, b: number) => number;
|
|
96
121
|
readonly __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -91,6 +91,14 @@ function addHeapObject(obj) {
|
|
|
91
91
|
return idx;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
function handleError(f, args) {
|
|
95
|
+
try {
|
|
96
|
+
return f.apply(this, args);
|
|
97
|
+
} catch (e) {
|
|
98
|
+
wasm.__wbindgen_export_2(addHeapObject(e));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
94
102
|
function dropObject(idx) {
|
|
95
103
|
if (idx < 132) return;
|
|
96
104
|
heap[idx] = heap_next;
|
|
@@ -103,14 +111,6 @@ function takeObject(idx) {
|
|
|
103
111
|
return ret;
|
|
104
112
|
}
|
|
105
113
|
|
|
106
|
-
function handleError(f, args) {
|
|
107
|
-
try {
|
|
108
|
-
return f.apply(this, args);
|
|
109
|
-
} catch (e) {
|
|
110
|
-
wasm.__wbindgen_export_2(addHeapObject(e));
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
114
|
function isLikeNone(x) {
|
|
115
115
|
return x === undefined || x === null;
|
|
116
116
|
}
|
|
@@ -193,7 +193,7 @@ const WasmRuntimeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
193
193
|
? { register: () => {}, unregister: () => {} }
|
|
194
194
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmruntime_free(ptr >>> 0, 1));
|
|
195
195
|
/**
|
|
196
|
-
* Dedicated Excel runtime artifact implementing official adapter ABI
|
|
196
|
+
* Dedicated Excel runtime artifact implementing official adapter ABI v3.
|
|
197
197
|
*/
|
|
198
198
|
export class WasmRuntime {
|
|
199
199
|
|
|
@@ -229,7 +229,7 @@ export class WasmRuntime {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
|
-
* Begins a
|
|
232
|
+
* Begins a bounded range-backed workbook open.
|
|
233
233
|
* @param {any} options
|
|
234
234
|
* @param {number} source_length
|
|
235
235
|
* @returns {any}
|
|
@@ -271,7 +271,7 @@ export class WasmRuntime {
|
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
|
-
* Opens one logical worksheet table.
|
|
274
|
+
* Opens one already-indexed logical worksheet table synchronously.
|
|
275
275
|
* @param {number} source_handle
|
|
276
276
|
* @param {string} table_id
|
|
277
277
|
* @returns {any}
|
|
@@ -332,7 +332,50 @@ export class WasmRuntime {
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
/**
|
|
335
|
-
*
|
|
335
|
+
* Starts and completes an ABI-v3 metadata operation.
|
|
336
|
+
* @param {number} table_handle
|
|
337
|
+
* @returns {any}
|
|
338
|
+
*/
|
|
339
|
+
beginMetadata(table_handle) {
|
|
340
|
+
try {
|
|
341
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
342
|
+
wasm.wasmruntime_beginMetadata(retptr, this.__wbg_ptr, table_handle);
|
|
343
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
344
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
345
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
346
|
+
if (r2) {
|
|
347
|
+
throw takeObject(r1);
|
|
348
|
+
}
|
|
349
|
+
return takeObject(r0);
|
|
350
|
+
} finally {
|
|
351
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Starts a range-backed worksheet-open operation.
|
|
356
|
+
* @param {number} source_handle
|
|
357
|
+
* @param {string} table_id
|
|
358
|
+
* @returns {any}
|
|
359
|
+
*/
|
|
360
|
+
beginOpenTable(source_handle, table_id) {
|
|
361
|
+
try {
|
|
362
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
363
|
+
const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
364
|
+
const len0 = WASM_VECTOR_LEN;
|
|
365
|
+
wasm.wasmruntime_beginOpenTable(retptr, this.__wbg_ptr, source_handle, ptr0, len0);
|
|
366
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
367
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
368
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
369
|
+
if (r2) {
|
|
370
|
+
throw takeObject(r1);
|
|
371
|
+
}
|
|
372
|
+
return takeObject(r0);
|
|
373
|
+
} finally {
|
|
374
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Cancels and releases a pending range-backed operation.
|
|
336
379
|
* @param {number} operation_handle
|
|
337
380
|
* @returns {boolean}
|
|
338
381
|
*/
|
|
@@ -349,17 +392,55 @@ export class WasmRuntime {
|
|
|
349
392
|
return ret >>> 0;
|
|
350
393
|
}
|
|
351
394
|
/**
|
|
352
|
-
*
|
|
395
|
+
* Returns the private adapter-owned resource ledger snapshot.
|
|
396
|
+
* @returns {any}
|
|
397
|
+
*/
|
|
398
|
+
resourceSnapshot() {
|
|
399
|
+
try {
|
|
400
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
401
|
+
wasm.wasmruntime_resourceSnapshot(retptr, this.__wbg_ptr);
|
|
402
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
403
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
404
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
405
|
+
if (r2) {
|
|
406
|
+
throw takeObject(r1);
|
|
407
|
+
}
|
|
408
|
+
return takeObject(r0);
|
|
409
|
+
} finally {
|
|
410
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Starts and completes an ABI-v3 static-presentation operation.
|
|
415
|
+
* @param {number} table_handle
|
|
416
|
+
* @returns {any}
|
|
417
|
+
*/
|
|
418
|
+
beginPresentation(table_handle) {
|
|
419
|
+
try {
|
|
420
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
421
|
+
wasm.wasmruntime_beginPresentation(retptr, this.__wbg_ptr, table_handle);
|
|
422
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
423
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
424
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
425
|
+
if (r2) {
|
|
426
|
+
throw takeObject(r1);
|
|
427
|
+
}
|
|
428
|
+
return takeObject(r0);
|
|
429
|
+
} finally {
|
|
430
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Supplies revision-matched source ranges and advances the operation.
|
|
353
435
|
* @param {number} operation_handle
|
|
354
|
-
* @param {number}
|
|
355
|
-
* @param {
|
|
356
|
-
* @param {boolean} eof
|
|
436
|
+
* @param {number} operation_revision
|
|
437
|
+
* @param {Array<any>} results
|
|
357
438
|
* @returns {any}
|
|
358
439
|
*/
|
|
359
|
-
continueOperation(operation_handle,
|
|
440
|
+
continueOperation(operation_handle, operation_revision, results) {
|
|
360
441
|
try {
|
|
361
442
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
362
|
-
wasm.wasmruntime_continueOperation(retptr, this.__wbg_ptr, operation_handle,
|
|
443
|
+
wasm.wasmruntime_continueOperation(retptr, this.__wbg_ptr, operation_handle, operation_revision, addHeapObject(results));
|
|
363
444
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
364
445
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
365
446
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -409,7 +490,28 @@ export class WasmRuntime {
|
|
|
409
490
|
}
|
|
410
491
|
}
|
|
411
492
|
/**
|
|
412
|
-
*
|
|
493
|
+
* Starts and completes an ABI-v3 range-presentation operation.
|
|
494
|
+
* @param {number} table_handle
|
|
495
|
+
* @param {any} request
|
|
496
|
+
* @returns {any}
|
|
497
|
+
*/
|
|
498
|
+
beginPresentationRange(table_handle, request) {
|
|
499
|
+
try {
|
|
500
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
501
|
+
wasm.wasmruntime_beginPresentationRange(retptr, this.__wbg_ptr, table_handle, addHeapObject(request));
|
|
502
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
503
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
504
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
505
|
+
if (r2) {
|
|
506
|
+
throw takeObject(r1);
|
|
507
|
+
}
|
|
508
|
+
return takeObject(r0);
|
|
509
|
+
} finally {
|
|
510
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Creates an empty range-backed Excel adapter runtime.
|
|
413
515
|
* @param {any} config
|
|
414
516
|
*/
|
|
415
517
|
constructor(config) {
|
|
@@ -502,10 +604,18 @@ function __wbg_get_imports() {
|
|
|
502
604
|
const ret = getObject(arg0).buffer;
|
|
503
605
|
return addHeapObject(ret);
|
|
504
606
|
};
|
|
607
|
+
imports.wbg.__wbg_byteLength_ea52ac3de882b483 = function(arg0) {
|
|
608
|
+
const ret = getObject(arg0).byteLength;
|
|
609
|
+
return ret;
|
|
610
|
+
};
|
|
505
611
|
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
506
612
|
const ret = Object.entries(getObject(arg0));
|
|
507
613
|
return addHeapObject(ret);
|
|
508
614
|
};
|
|
615
|
+
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
616
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
617
|
+
return addHeapObject(ret);
|
|
618
|
+
}, arguments) };
|
|
509
619
|
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
510
620
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
511
621
|
return addHeapObject(ret);
|
|
Binary file
|
|
@@ -5,18 +5,23 @@ export const __wbg_wasmruntime_free: (a: number, b: number) => void;
|
|
|
5
5
|
export const wasmruntime_adapterApiVersion: (a: number) => number;
|
|
6
6
|
export const wasmruntime_adapterId: (a: number, b: number) => void;
|
|
7
7
|
export const wasmruntime_batchLayoutVersion: (a: number) => number;
|
|
8
|
+
export const wasmruntime_beginMetadata: (a: number, b: number, c: number) => void;
|
|
8
9
|
export const wasmruntime_beginOpen: (a: number, b: number, c: number, d: number) => void;
|
|
10
|
+
export const wasmruntime_beginOpenTable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
11
|
+
export const wasmruntime_beginPresentation: (a: number, b: number, c: number) => void;
|
|
12
|
+
export const wasmruntime_beginPresentationRange: (a: number, b: number, c: number, d: number) => void;
|
|
9
13
|
export const wasmruntime_beginRead: (a: number, b: number, c: number, d: number) => void;
|
|
10
14
|
export const wasmruntime_cancelOperation: (a: number, b: number) => number;
|
|
11
15
|
export const wasmruntime_closeSource: (a: number, b: number) => number;
|
|
12
16
|
export const wasmruntime_closeTable: (a: number, b: number) => number;
|
|
13
|
-
export const wasmruntime_continueOperation: (a: number, b: number, c: number, d: number, e: number
|
|
17
|
+
export const wasmruntime_continueOperation: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
14
18
|
export const wasmruntime_metadata: (a: number, b: number, c: number) => void;
|
|
15
19
|
export const wasmruntime_new: (a: number, b: number) => void;
|
|
16
20
|
export const wasmruntime_openTable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
17
21
|
export const wasmruntime_presentation: (a: number, b: number, c: number) => void;
|
|
18
22
|
export const wasmruntime_protocolVersion: (a: number) => number;
|
|
19
23
|
export const wasmruntime_readPresentationRange: (a: number, b: number, c: number, d: number) => void;
|
|
24
|
+
export const wasmruntime_resourceSnapshot: (a: number, b: number) => void;
|
|
20
25
|
export const wasmruntime_shutdown: (a: number) => void;
|
|
21
26
|
export const __wbindgen_export_0: (a: number, b: number) => number;
|
|
22
27
|
export const __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Official Parquet runtime implementing adapter ABI
|
|
4
|
+
* Official Parquet runtime implementing adapter ABI v3.
|
|
5
5
|
*/
|
|
6
6
|
export class WasmRuntime {
|
|
7
7
|
free(): void;
|
|
@@ -33,20 +33,36 @@ export class WasmRuntime {
|
|
|
33
33
|
* Returns no static presentation for Parquet tables.
|
|
34
34
|
*/
|
|
35
35
|
presentation(table_handle: number): any;
|
|
36
|
+
/**
|
|
37
|
+
* Starts and completes an ABI-v3 metadata operation.
|
|
38
|
+
*/
|
|
39
|
+
beginMetadata(table_handle: number): any;
|
|
40
|
+
/**
|
|
41
|
+
* Starts and completes an ABI-v3 open-table operation.
|
|
42
|
+
*/
|
|
43
|
+
beginOpenTable(source_handle: number, table_id: string): any;
|
|
36
44
|
/**
|
|
37
45
|
* Cancels and releases one pending operation.
|
|
38
46
|
*/
|
|
39
47
|
cancelOperation(operation_handle: number): boolean;
|
|
40
48
|
/**
|
|
41
|
-
* Returns Worker protocol version
|
|
49
|
+
* Returns Worker protocol version four.
|
|
42
50
|
*/
|
|
43
51
|
protocolVersion(): number;
|
|
44
52
|
/**
|
|
45
|
-
*
|
|
53
|
+
* Returns the private adapter-owned resource ledger snapshot.
|
|
54
|
+
*/
|
|
55
|
+
resourceSnapshot(): any;
|
|
56
|
+
/**
|
|
57
|
+
* Starts and completes an ABI-v3 static-presentation operation.
|
|
58
|
+
*/
|
|
59
|
+
beginPresentation(table_handle: number): any;
|
|
60
|
+
/**
|
|
61
|
+
* Supplies one complete revision-matched source result set.
|
|
46
62
|
*/
|
|
47
|
-
continueOperation(operation_handle: number,
|
|
63
|
+
continueOperation(operation_handle: number, operation_revision: number, results: Array<any>): any;
|
|
48
64
|
/**
|
|
49
|
-
* Returns official adapter ABI version
|
|
65
|
+
* Returns official adapter ABI version three.
|
|
50
66
|
*/
|
|
51
67
|
adapterApiVersion(): number;
|
|
52
68
|
/**
|
|
@@ -57,6 +73,10 @@ export class WasmRuntime {
|
|
|
57
73
|
* Returns no range presentation for Parquet tables.
|
|
58
74
|
*/
|
|
59
75
|
readPresentationRange(table_handle: number, request: any): any;
|
|
76
|
+
/**
|
|
77
|
+
* Starts and completes an ABI-v3 range-presentation operation.
|
|
78
|
+
*/
|
|
79
|
+
beginPresentationRange(table_handle: number, request: any): any;
|
|
60
80
|
/**
|
|
61
81
|
* Creates an empty Parquet adapter runtime.
|
|
62
82
|
*/
|
|
@@ -79,18 +99,23 @@ export interface InitOutput {
|
|
|
79
99
|
readonly wasmruntime_adapterApiVersion: (a: number) => number;
|
|
80
100
|
readonly wasmruntime_adapterId: (a: number, b: number) => void;
|
|
81
101
|
readonly wasmruntime_batchLayoutVersion: (a: number) => number;
|
|
102
|
+
readonly wasmruntime_beginMetadata: (a: number, b: number, c: number) => void;
|
|
82
103
|
readonly wasmruntime_beginOpen: (a: number, b: number, c: number, d: number) => void;
|
|
104
|
+
readonly wasmruntime_beginOpenTable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
105
|
+
readonly wasmruntime_beginPresentation: (a: number, b: number, c: number) => void;
|
|
106
|
+
readonly wasmruntime_beginPresentationRange: (a: number, b: number, c: number, d: number) => void;
|
|
83
107
|
readonly wasmruntime_beginRead: (a: number, b: number, c: number, d: number) => void;
|
|
84
108
|
readonly wasmruntime_cancelOperation: (a: number, b: number) => number;
|
|
85
109
|
readonly wasmruntime_closeSource: (a: number, b: number) => number;
|
|
86
110
|
readonly wasmruntime_closeTable: (a: number, b: number) => number;
|
|
87
|
-
readonly wasmruntime_continueOperation: (a: number, b: number, c: number, d: number, e: number
|
|
111
|
+
readonly wasmruntime_continueOperation: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
88
112
|
readonly wasmruntime_metadata: (a: number, b: number, c: number) => void;
|
|
89
113
|
readonly wasmruntime_new: (a: number, b: number) => void;
|
|
90
114
|
readonly wasmruntime_openTable: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
91
115
|
readonly wasmruntime_presentation: (a: number, b: number, c: number) => void;
|
|
92
116
|
readonly wasmruntime_protocolVersion: (a: number) => number;
|
|
93
117
|
readonly wasmruntime_readPresentationRange: (a: number, b: number, c: number, d: number) => void;
|
|
118
|
+
readonly wasmruntime_resourceSnapshot: (a: number, b: number) => void;
|
|
94
119
|
readonly wasmruntime_shutdown: (a: number) => void;
|
|
95
120
|
readonly __wbindgen_export_0: (a: number, b: number) => number;
|
|
96
121
|
readonly __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
|