@loaders.gl/arrow 4.0.0-alpha.4 → 4.0.0-alpha.5
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/dist/arrow-loader.d.ts +26 -0
- package/dist/arrow-loader.d.ts.map +1 -0
- package/dist/arrow-loader.js +1 -1
- package/dist/arrow-worker.js +1 -1
- package/dist/arrow-writer.d.ts +17 -0
- package/dist/arrow-writer.d.ts.map +1 -0
- package/dist/arrow-writer.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/dist.min.js +15452 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/arrow-table-batch.d.ts +9 -0
- package/dist/lib/arrow-table-batch.d.ts.map +1 -0
- package/dist/lib/encode-arrow.d.ts +16 -0
- package/dist/lib/encode-arrow.d.ts.map +1 -0
- package/dist/lib/parse-arrow-in-batches.d.ts +4 -0
- package/dist/lib/parse-arrow-in-batches.d.ts.map +1 -0
- package/dist/lib/parse-arrow-sync.d.ts +3 -0
- package/dist/lib/parse-arrow-sync.d.ts.map +1 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/workers/arrow-worker.d.ts +2 -0
- package/dist/workers/arrow-worker.d.ts.map +1 -0
- package/package.json +7 -10
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LoaderWithParser } from '@loaders.gl/loader-utils';
|
|
2
|
+
import type { ArrowLoaderOptions } from './arrow-loader';
|
|
3
|
+
import { ArrowLoader as ArrowWorkerLoader } from './arrow-loader';
|
|
4
|
+
export { VECTOR_TYPES } from './types';
|
|
5
|
+
export { ArrowWriter } from './arrow-writer';
|
|
6
|
+
export type { ArrowLoaderOptions };
|
|
7
|
+
export { ArrowWorkerLoader };
|
|
8
|
+
/** ArrowJS table loader */
|
|
9
|
+
export declare const ArrowLoader: LoaderWithParser;
|
|
10
|
+
export declare const _typecheckArrowLoader: LoaderWithParser;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,WAAW,IAAI,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAWhE,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAIrC,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAI3C,YAAY,EAAC,kBAAkB,EAAC,CAAC;AACjC,OAAO,EAAC,iBAAiB,EAAC,CAAC;AAE3B,2BAA2B;AAC3B,eAAO,MAAM,WAAW,EAAE,gBAMzB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,gBAA8B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ArrowTableBatch } from '@loaders.gl/schema';
|
|
2
|
+
import { Schema } from 'apache-arrow';
|
|
3
|
+
import { ColumnarTableBatchAggregator } from '@loaders.gl/schema';
|
|
4
|
+
export default class ArrowTableBatchAggregator extends ColumnarTableBatchAggregator {
|
|
5
|
+
arrowSchema: Schema | null;
|
|
6
|
+
constructor(schema: any, options: any);
|
|
7
|
+
getBatch(): ArrowTableBatch | null;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=arrow-table-batch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-table-batch.d.ts","sourceRoot":"","sources":["../../src/lib/arrow-table-batch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAC,MAAM,EAA6C,MAAM,cAAc,CAAC;AAChF,OAAO,EAAC,4BAA4B,EAAC,MAAM,oBAAoB,CAAC;AAEhE,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,4BAA4B;IACjF,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;gBAEf,MAAM,KAAA,EAAE,OAAO,KAAA;IAK3B,QAAQ,IAAI,eAAe,GAAG,IAAI;CAoBnC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AnyArrayType } from '../types';
|
|
2
|
+
declare type ColumnarTable = {
|
|
3
|
+
name: string;
|
|
4
|
+
array: AnyArrayType;
|
|
5
|
+
type: number;
|
|
6
|
+
}[];
|
|
7
|
+
/**
|
|
8
|
+
* Encodes set of arrays into the Apache Arrow columnar format
|
|
9
|
+
* https://arrow.apache.org/docs/format/Columnar.html#ipc-file-format
|
|
10
|
+
* @param data - columns data
|
|
11
|
+
* @param options - the writer options
|
|
12
|
+
* @returns - encoded ArrayBuffer
|
|
13
|
+
*/
|
|
14
|
+
export declare function encodeArrowSync(data: ColumnarTable): ArrayBuffer;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=encode-arrow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encode-arrow.d.ts","sourceRoot":"","sources":["../../src/lib/encode-arrow.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAe,MAAM,UAAU,CAAC;AAEpD,aAAK,aAAa,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,EAAE,CAAC;AAEJ;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,WAAW,CAWhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-arrow-in-batches.d.ts","sourceRoot":"","sources":["../../src/lib/parse-arrow-in-batches.ts"],"names":[],"mappings":"AAIA;GACG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,GAChE,aAAa,CAAC,GAAG,CAAC,CA6BpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-arrow-sync.d.ts","sourceRoot":"","sources":["../../src/lib/parse-arrow-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAIxD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,WAAW,KAAA,EAAE,OAAO,CAAC,EAAE,kBAAkB,MAyB/E"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare type TypedIntArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Int32Array | Uint32Array;
|
|
2
|
+
declare type TypedFloatArray = Float32Array | Float64Array;
|
|
3
|
+
declare type TypedArray = TypedIntArray | TypedFloatArray;
|
|
4
|
+
export declare type AnyArrayType = Array<any> | TypedArray;
|
|
5
|
+
export declare enum VECTOR_TYPES {
|
|
6
|
+
FLOAT = 0,
|
|
7
|
+
DATE = 1
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,aAAK,aAAa,GACd,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,CAAC;AAEhB,aAAK,eAAe,GAAG,YAAY,GAAG,YAAY,CAAC;AAEnD,aAAK,UAAU,GAAG,aAAa,GAAG,eAAe,CAAC;AAElD,oBAAY,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;AAEnD,oBAAY,YAAY;IACtB,KAAK,IAAA;IACL,IAAI,IAAA;CACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-worker.d.ts","sourceRoot":"","sources":["../../src/workers/arrow-worker.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/arrow",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.5",
|
|
4
4
|
"description": "Simple columnar table loader for the Apache Arrow format",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"point cloud",
|
|
19
19
|
"PLY"
|
|
20
20
|
],
|
|
21
|
-
"types": "
|
|
21
|
+
"types": "dist/index.d.ts",
|
|
22
22
|
"main": "dist/index.js",
|
|
23
23
|
"module": "dist/index.js",
|
|
24
24
|
"sideEffects": false,
|
|
@@ -32,16 +32,13 @@
|
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"pre-build": "npm run build-worker && npm run build-bundle",
|
|
35
|
-
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/
|
|
36
|
-
"build-worker": "esbuild src/workers/arrow-worker.ts --bundle --outfile=dist/arrow-worker.js"
|
|
35
|
+
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js",
|
|
36
|
+
"build-worker": "esbuild src/workers/arrow-worker.ts --bundle --outfile=dist/arrow-worker.js --define:__VERSION__=\\\"$npm_package_version\\\""
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@loaders.gl/loader-utils": "4.0.0-alpha.
|
|
40
|
-
"@loaders.gl/schema": "4.0.0-alpha.
|
|
39
|
+
"@loaders.gl/loader-utils": "4.0.0-alpha.5",
|
|
40
|
+
"@loaders.gl/schema": "4.0.0-alpha.5",
|
|
41
41
|
"apache-arrow": "^4.0.0"
|
|
42
42
|
},
|
|
43
|
-
"
|
|
44
|
-
"@loaders.gl/core": "^3.0.0"
|
|
45
|
-
},
|
|
46
|
-
"gitHead": "53026061b3c8871f7e96d3a5826125cc6613bddc"
|
|
43
|
+
"gitHead": "7a71a54bdf1ddf985cc3af3db90b82e7fa97d025"
|
|
47
44
|
}
|