@wafertools/testdata-parser 0.9.0 → 0.10.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wafertools/testdata-parser",
3
3
  "type": "module",
4
4
  "description": "Rust/WASM parsers for semiconductor test data formats (STDF, ATDF, CSV, JSON, Parquet)",
5
- "version": "0.9.0",
5
+ "version": "0.10.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -7,6 +7,11 @@ export function atdf_test_names(bytes: Uint8Array): any;
7
7
 
8
8
  export function init(): void;
9
9
 
10
+ /**
11
+ * `columns` is a JS string array. See `parquet_distinct_count_from_bytes`.
12
+ */
13
+ export function parquet_distinct_count(bytes: Uint8Array, columns: any): number;
14
+
10
15
  export function parquet_headers(bytes: Uint8Array): any;
11
16
 
12
17
  export function parse_atdf(bytes: Uint8Array): any;
@@ -34,6 +39,7 @@ export interface InitOutput {
34
39
  readonly atdf_file_meta: (a: number, b: number) => [number, number, number];
35
40
  readonly atdf_test_names: (a: number, b: number) => [number, number, number];
36
41
  readonly init: () => void;
42
+ readonly parquet_distinct_count: (a: number, b: number, c: any) => [number, number, number];
37
43
  readonly parquet_headers: (a: number, b: number) => [number, number, number];
38
44
  readonly parse_atdf: (a: number, b: number) => [number, number, number];
39
45
  readonly parse_atdf_filtered: (a: number, b: number, c: any) => [number, number, number];
@@ -32,6 +32,22 @@ export function init() {
32
32
  wasm.init();
33
33
  }
34
34
 
35
+ /**
36
+ * `columns` is a JS string array. See `parquet_distinct_count_from_bytes`.
37
+ * @param {Uint8Array} bytes
38
+ * @param {any} columns
39
+ * @returns {number}
40
+ */
41
+ export function parquet_distinct_count(bytes, columns) {
42
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
43
+ const len0 = WASM_VECTOR_LEN;
44
+ const ret = wasm.parquet_distinct_count(ptr0, len0, columns);
45
+ if (ret[2]) {
46
+ throw takeFromExternrefTable0(ret[1]);
47
+ }
48
+ return ret[0] >>> 0;
49
+ }
50
+
35
51
  /**
36
52
  * @param {Uint8Array} bytes
37
53
  * @returns {any}
Binary file