@loaders.gl/parquet 4.5.3 → 5.0.0-alpha.10
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/LICENSE +14 -3
- package/dist/bundled.d.ts +9 -0
- package/dist/bundled.d.ts.map +1 -0
- package/dist/bundled.js +10 -0
- package/dist/bundled.js.map +1 -0
- package/dist/delta-format.d.ts +9 -0
- package/dist/delta-format.d.ts.map +1 -0
- package/dist/delta-format.js +12 -0
- package/dist/delta-format.js.map +1 -0
- package/dist/delta-source-loader-types.d.ts +27 -0
- package/dist/delta-source-loader-types.d.ts.map +1 -0
- package/dist/delta-source-loader-types.js +28 -0
- package/dist/delta-source-loader-types.js.map +1 -0
- package/dist/delta-source.d.ts +48 -0
- package/dist/delta-source.d.ts.map +1 -0
- package/dist/delta-source.js +222 -0
- package/dist/delta-source.js.map +1 -0
- package/dist/delta-types.d.ts +38 -0
- package/dist/delta-types.d.ts.map +1 -0
- package/dist/delta-types.js +5 -0
- package/dist/delta-types.js.map +1 -0
- package/dist/geoparquet-loader-with-parser.d.ts +33 -0
- package/dist/geoparquet-loader-with-parser.d.ts.map +1 -0
- package/dist/geoparquet-loader-with-parser.js +52 -0
- package/dist/geoparquet-loader-with-parser.js.map +1 -0
- package/dist/geoparquet-loader.d.ts +59 -0
- package/dist/geoparquet-loader.d.ts.map +1 -0
- package/dist/geoparquet-loader.js +30 -0
- package/dist/geoparquet-loader.js.map +1 -0
- package/dist/iceberg-rest-catalog.d.ts +49 -0
- package/dist/iceberg-rest-catalog.d.ts.map +1 -0
- package/dist/iceberg-rest-catalog.js +78 -0
- package/dist/iceberg-rest-catalog.js.map +1 -0
- package/dist/iceberg-table-source.d.ts +63 -0
- package/dist/iceberg-table-source.d.ts.map +1 -0
- package/dist/iceberg-table-source.js +797 -0
- package/dist/iceberg-table-source.js.map +1 -0
- package/dist/iceberg-types.d.ts +150 -0
- package/dist/iceberg-types.d.ts.map +1 -0
- package/dist/iceberg-types.js +5 -0
- package/dist/iceberg-types.js.map +1 -0
- package/dist/index.cjs +41568 -6781
- package/dist/index.cjs.map +3 -4
- package/dist/index.d.ts +15 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -12
- package/dist/index.js.map +1 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js +3 -0
- package/dist/lib/arrow/convert-columns-to-row-group.js.map +1 -1
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts +3 -1
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js +164 -29
- package/dist/lib/arrow/convert-schema-from-parquet.js.map +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js +16 -7
- package/dist/lib/arrow/convert-schema-to-parquet.js.map +1 -1
- package/dist/lib/arrow/create-nested-arrow-vector.d.ts +8 -0
- package/dist/lib/arrow/create-nested-arrow-vector.d.ts.map +1 -0
- package/dist/lib/arrow/create-nested-arrow-vector.js +485 -0
- package/dist/lib/arrow/create-nested-arrow-vector.js.map +1 -0
- package/dist/lib/constants.d.ts +0 -1
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +1 -2
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/encoders/encode-arrow-to-parquet.d.ts +2 -2
- package/dist/lib/encoders/encode-arrow-to-parquet.d.ts.map +1 -1
- package/dist/lib/encoders/encode-arrow-to-parquet.js +3 -10
- package/dist/lib/encoders/encode-arrow-to-parquet.js.map +1 -1
- package/dist/lib/encoders/encode-table-to-parquet-js.d.ts +5 -0
- package/dist/lib/encoders/encode-table-to-parquet-js.d.ts.map +1 -0
- package/dist/lib/encoders/encode-table-to-parquet-js.js +394 -0
- package/dist/lib/encoders/encode-table-to-parquet-js.js.map +1 -0
- package/dist/lib/geo/geoparquet-covering.d.ts +19 -0
- package/dist/lib/geo/geoparquet-covering.d.ts.map +1 -0
- package/dist/lib/geo/geoparquet-covering.js +137 -0
- package/dist/lib/geo/geoparquet-covering.js.map +1 -0
- package/dist/lib/geo/geospatial-metadata.d.ts +67 -0
- package/dist/lib/geo/geospatial-metadata.d.ts.map +1 -0
- package/dist/lib/geo/geospatial-metadata.js +412 -0
- package/dist/lib/geo/geospatial-metadata.js.map +1 -0
- package/dist/lib/parquet-bloom-filter-planner.d.ts +16 -0
- package/dist/lib/parquet-bloom-filter-planner.d.ts.map +1 -0
- package/dist/lib/parquet-bloom-filter-planner.js +57 -0
- package/dist/lib/parquet-bloom-filter-planner.js.map +1 -0
- package/dist/lib/parquet-bloom-filter.d.ts +30 -0
- package/dist/lib/parquet-bloom-filter.d.ts.map +1 -0
- package/dist/lib/parquet-bloom-filter.js +289 -0
- package/dist/lib/parquet-bloom-filter.js.map +1 -0
- package/dist/lib/parquet-encryption.d.ts +80 -0
- package/dist/lib/parquet-encryption.d.ts.map +1 -0
- package/dist/lib/parquet-encryption.js +190 -0
- package/dist/lib/parquet-encryption.js.map +1 -0
- package/dist/lib/parquet-page-index.d.ts +91 -0
- package/dist/lib/parquet-page-index.d.ts.map +1 -0
- package/dist/lib/parquet-page-index.js +463 -0
- package/dist/lib/parquet-page-index.js.map +1 -0
- package/dist/lib/parquet-predicate.d.ts +21 -0
- package/dist/lib/parquet-predicate.d.ts.map +1 -0
- package/dist/lib/parquet-predicate.js +328 -0
- package/dist/lib/parquet-predicate.js.map +1 -0
- package/dist/lib/parquet-source-worker-client.d.ts +6 -0
- package/dist/lib/parquet-source-worker-client.d.ts.map +1 -0
- package/dist/lib/parquet-source-worker-client.js +24 -0
- package/dist/lib/parquet-source-worker-client.js.map +1 -0
- package/dist/lib/parquet-source-worker-decoder.d.ts +7 -0
- package/dist/lib/parquet-source-worker-decoder.d.ts.map +1 -0
- package/dist/lib/parquet-source-worker-decoder.js +181 -0
- package/dist/lib/parquet-source-worker-decoder.js.map +1 -0
- package/dist/lib/parquet-source-worker-file.d.ts +24 -0
- package/dist/lib/parquet-source-worker-file.d.ts.map +1 -0
- package/dist/lib/parquet-source-worker-file.js +40 -0
- package/dist/lib/parquet-source-worker-file.js.map +1 -0
- package/dist/lib/parquet-source-worker-types.d.ts +121 -0
- package/dist/lib/parquet-source-worker-types.d.ts.map +1 -0
- package/dist/lib/parquet-source-worker-types.js +5 -0
- package/dist/lib/parquet-source-worker-types.js.map +1 -0
- package/dist/lib/parquet-worker-transport.d.ts +8 -0
- package/dist/lib/parquet-worker-transport.d.ts.map +1 -0
- package/dist/lib/parquet-worker-transport.js +40 -0
- package/dist/lib/parquet-worker-transport.js.map +1 -0
- package/dist/lib/parsers/convert-parquet-tables.d.ts +16 -0
- package/dist/lib/parsers/convert-parquet-tables.d.ts.map +1 -0
- package/dist/lib/parsers/convert-parquet-tables.js +30 -0
- package/dist/lib/parsers/convert-parquet-tables.js.map +1 -0
- package/dist/lib/parsers/get-parquet-schema.d.ts.map +1 -1
- package/dist/lib/parsers/get-parquet-schema.js +6 -2
- package/dist/lib/parsers/get-parquet-schema.js.map +1 -1
- package/dist/lib/parsers/parse-geoparquet-to-geojson.d.ts +4 -4
- package/dist/lib/parsers/parse-geoparquet-to-geojson.d.ts.map +1 -1
- package/dist/lib/parsers/parse-geoparquet-to-geojson.js +19 -6
- package/dist/lib/parsers/parse-geoparquet-to-geojson.js.map +1 -1
- package/dist/lib/parsers/parse-parquet-tables.d.ts +37 -0
- package/dist/lib/parsers/parse-parquet-tables.d.ts.map +1 -0
- package/dist/lib/parsers/parse-parquet-tables.js +50 -0
- package/dist/lib/parsers/parse-parquet-tables.js.map +1 -0
- package/dist/lib/parsers/parse-parquet-to-arrow-js.d.ts +19 -0
- package/dist/lib/parsers/parse-parquet-to-arrow-js.d.ts.map +1 -0
- package/dist/lib/parsers/parse-parquet-to-arrow-js.js +921 -0
- package/dist/lib/parsers/parse-parquet-to-arrow-js.js.map +1 -0
- package/dist/lib/parsers/parse-parquet-to-arrow.d.ts +7 -7
- package/dist/lib/parsers/parse-parquet-to-arrow.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-arrow.js +45 -32
- package/dist/lib/parsers/parse-parquet-to-arrow.js.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts +3 -3
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js +4 -5
- package/dist/lib/parsers/parse-parquet-to-columns.js.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-json.d.ts +3 -3
- package/dist/lib/parsers/parse-parquet-to-json.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-json.js +95 -28
- package/dist/lib/parsers/parse-parquet-to-json.js.map +1 -1
- package/dist/lib/slice-parquet-batch.d.ts +9 -0
- package/dist/lib/slice-parquet-batch.d.ts.map +1 -0
- package/dist/lib/slice-parquet-batch.js +28 -0
- package/dist/lib/slice-parquet-batch.js.map +1 -0
- package/dist/lib/sources/parquet-range-file.d.ts +80 -0
- package/dist/lib/sources/parquet-range-file.d.ts.map +1 -0
- package/dist/lib/sources/parquet-range-file.js +267 -0
- package/dist/lib/sources/parquet-range-file.js.map +1 -0
- package/dist/lib/sources/single-batch-queue.d.ts +24 -0
- package/dist/lib/sources/single-batch-queue.d.ts.map +1 -0
- package/dist/lib/sources/single-batch-queue.js +91 -0
- package/dist/lib/sources/single-batch-queue.js.map +1 -0
- package/dist/lib/utils/load-wasm-node.d.ts +3 -0
- package/dist/lib/utils/load-wasm-node.d.ts.map +1 -0
- package/dist/lib/utils/load-wasm-node.js +23 -0
- package/dist/lib/utils/load-wasm-node.js.map +1 -0
- package/dist/lib/utils/load-wasm.d.ts +2 -2
- package/dist/lib/utils/load-wasm.d.ts.map +1 -1
- package/dist/lib/utils/load-wasm.js +28 -12
- package/dist/lib/utils/load-wasm.js.map +1 -1
- package/dist/lib/utils/make-stream-iterator.d.ts +2 -0
- package/dist/lib/utils/make-stream-iterator.d.ts.map +1 -1
- package/dist/lib/utils/make-stream-iterator.js +123 -14
- package/dist/lib/utils/make-stream-iterator.js.map +1 -1
- package/dist/lib/utils/normalize-parquet-options.d.ts +5 -0
- package/dist/lib/utils/normalize-parquet-options.d.ts.map +1 -0
- package/dist/lib/utils/normalize-parquet-options.js +25 -0
- package/dist/lib/utils/normalize-parquet-options.js.map +1 -0
- package/dist/parquet-dataset-source.cjs +38974 -0
- package/dist/parquet-dataset-source.cjs.map +6 -0
- package/dist/parquet-dataset-source.d.ts +81 -0
- package/dist/parquet-dataset-source.d.ts.map +1 -0
- package/dist/parquet-dataset-source.js +602 -0
- package/dist/parquet-dataset-source.js.map +1 -0
- package/dist/parquet-encoded-page-types.d.ts +108 -0
- package/dist/parquet-encoded-page-types.d.ts.map +1 -0
- package/dist/parquet-encoded-page-types.js +5 -0
- package/dist/parquet-encoded-page-types.js.map +1 -0
- package/dist/parquet-format.d.ts +2 -0
- package/dist/parquet-format.d.ts.map +1 -1
- package/dist/parquet-format.js +2 -0
- package/dist/parquet-format.js.map +1 -1
- package/dist/parquet-js-loader-types.d.ts +59 -0
- package/dist/parquet-js-loader-types.d.ts.map +1 -0
- package/dist/parquet-js-loader-types.js +34 -0
- package/dist/parquet-js-loader-types.js.map +1 -0
- package/dist/parquet-js-loader.d.ts +18 -22
- package/dist/parquet-js-loader.d.ts.map +1 -1
- package/dist/parquet-js-loader.js +53 -14
- package/dist/parquet-js-loader.js.map +1 -1
- package/dist/parquet-js-writer.d.ts +65 -0
- package/dist/parquet-js-writer.d.ts.map +1 -0
- package/dist/parquet-js-writer.js +28 -0
- package/dist/parquet-js-writer.js.map +1 -0
- package/dist/parquet-loader-base.d.ts +25 -0
- package/dist/parquet-loader-base.d.ts.map +1 -0
- package/dist/parquet-loader-base.js +23 -0
- package/dist/parquet-loader-base.js.map +1 -0
- package/dist/parquet-loader-options.d.ts +55 -0
- package/dist/parquet-loader-options.d.ts.map +1 -0
- package/dist/parquet-loader-options.js +10 -0
- package/dist/parquet-loader-options.js.map +1 -0
- package/dist/parquet-loader-types.d.ts +61 -0
- package/dist/parquet-loader-types.d.ts.map +1 -0
- package/dist/parquet-loader-types.js +17 -0
- package/dist/parquet-loader-types.js.map +1 -0
- package/dist/parquet-loader.d.ts +42 -0
- package/dist/parquet-loader.d.ts.map +1 -0
- package/dist/parquet-loader.js +68 -0
- package/dist/parquet-loader.js.map +1 -0
- package/dist/parquet-source-capabilities.d.ts +43 -0
- package/dist/parquet-source-capabilities.d.ts.map +1 -0
- package/dist/parquet-source-capabilities.js +32 -0
- package/dist/parquet-source-capabilities.js.map +1 -0
- package/dist/parquet-source-loader-types.d.ts +82 -0
- package/dist/parquet-source-loader-types.d.ts.map +1 -0
- package/dist/parquet-source-loader-types.js +84 -0
- package/dist/parquet-source-loader-types.js.map +1 -0
- package/dist/parquet-source-loader.cjs +38261 -0
- package/dist/parquet-source-loader.cjs.map +6 -0
- package/dist/parquet-source-loader.d.ts +167 -0
- package/dist/parquet-source-loader.d.ts.map +1 -0
- package/dist/parquet-source-loader.js +1438 -0
- package/dist/parquet-source-loader.js.map +1 -0
- package/dist/parquet-source-types.d.ts +534 -0
- package/dist/parquet-source-types.d.ts.map +1 -0
- package/dist/parquet-source-types.js +5 -0
- package/dist/parquet-source-types.js.map +1 -0
- package/dist/parquet-source-worker-factory.d.ts +4 -0
- package/dist/parquet-source-worker-factory.d.ts.map +1 -0
- package/dist/parquet-source-worker-factory.js +6 -0
- package/dist/parquet-source-worker-factory.js.map +1 -0
- package/dist/parquet-source-worker-url.d.ts +3 -0
- package/dist/parquet-source-worker-url.d.ts.map +1 -0
- package/dist/parquet-source-worker-url.js +22 -0
- package/dist/parquet-source-worker-url.js.map +1 -0
- package/dist/parquet-source-worker.js +38871 -0
- package/dist/parquet-source-worker.js.map +7 -0
- package/dist/parquet-worker-node.cjs +78507 -0
- package/dist/parquet-worker-node.cjs.map +7 -0
- package/dist/parquet-worker-url.d.ts +3 -0
- package/dist/parquet-worker-url.d.ts.map +1 -0
- package/dist/parquet-worker-url.js +19 -0
- package/dist/parquet-worker-url.js.map +1 -0
- package/dist/parquet-worker.js +20094 -0
- package/dist/parquet-worker.js.map +7 -0
- package/dist/parquet-writer.d.ts +10 -0
- package/dist/parquet-writer.d.ts.map +1 -0
- package/dist/parquet-writer.js +27 -0
- package/dist/parquet-writer.js.map +1 -0
- package/dist/parquet_wasm_bg.wasm +0 -0
- package/dist/parquetjs/codecs/byte-stream-split.d.ts +9 -0
- package/dist/parquetjs/codecs/byte-stream-split.d.ts.map +1 -0
- package/dist/parquetjs/codecs/byte-stream-split.js +159 -0
- package/dist/parquetjs/codecs/byte-stream-split.js.map +1 -0
- package/dist/parquetjs/codecs/declare.d.ts +35 -3
- package/dist/parquetjs/codecs/declare.d.ts.map +1 -1
- package/dist/parquetjs/codecs/declare.js +17 -1
- package/dist/parquetjs/codecs/declare.js.map +1 -1
- package/dist/parquetjs/codecs/delta.d.ts +17 -0
- package/dist/parquetjs/codecs/delta.d.ts.map +1 -0
- package/dist/parquetjs/codecs/delta.js +788 -0
- package/dist/parquetjs/codecs/delta.js.map +1 -0
- package/dist/parquetjs/codecs/dictionary.d.ts +5 -2
- package/dist/parquetjs/codecs/dictionary.d.ts.map +1 -1
- package/dist/parquetjs/codecs/dictionary.js +16 -4
- package/dist/parquetjs/codecs/dictionary.js.map +1 -1
- package/dist/parquetjs/codecs/index.d.ts.map +1 -1
- package/dist/parquetjs/codecs/index.js +22 -0
- package/dist/parquetjs/codecs/index.js.map +1 -1
- package/dist/parquetjs/codecs/plain.d.ts +3 -3
- package/dist/parquetjs/codecs/plain.d.ts.map +1 -1
- package/dist/parquetjs/codecs/plain.js +231 -78
- package/dist/parquetjs/codecs/plain.js.map +1 -1
- package/dist/parquetjs/codecs/rle.d.ts +7 -3
- package/dist/parquetjs/codecs/rle.d.ts.map +1 -1
- package/dist/parquetjs/codecs/rle.js +613 -69
- package/dist/parquetjs/codecs/rle.js.map +1 -1
- package/dist/parquetjs/compression.d.ts +16 -8
- package/dist/parquetjs/compression.d.ts.map +1 -1
- package/dist/parquetjs/compression.js +114 -141
- package/dist/parquetjs/compression.js.map +1 -1
- package/dist/parquetjs/encoder/dictionary-planner.d.ts +17 -0
- package/dist/parquetjs/encoder/dictionary-planner.d.ts.map +1 -0
- package/dist/parquetjs/encoder/dictionary-planner.js +67 -0
- package/dist/parquetjs/encoder/dictionary-planner.js.map +1 -0
- package/dist/parquetjs/encoder/page-planner.d.ts +11 -0
- package/dist/parquetjs/encoder/page-planner.d.ts.map +1 -0
- package/dist/parquetjs/encoder/page-planner.js +60 -0
- package/dist/parquetjs/encoder/page-planner.js.map +1 -0
- package/dist/parquetjs/encoder/parquet-encoder.d.ts +54 -5
- package/dist/parquetjs/encoder/parquet-encoder.d.ts.map +1 -1
- package/dist/parquetjs/encoder/parquet-encoder.js +930 -66
- package/dist/parquetjs/encoder/parquet-encoder.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/BoundingBox.d.ts +29 -0
- package/dist/parquetjs/parquet-thrift/BoundingBox.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/BoundingBox.js +85 -0
- package/dist/parquetjs/parquet-thrift/BoundingBox.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/BsonType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/BsonType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/BsonType.js +1 -1
- package/dist/parquetjs/parquet-thrift/BsonType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts +7 -2
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js +37 -2
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnCryptoMetaData.d.ts +35 -0
- package/dist/parquetjs/parquet-thrift/ColumnCryptoMetaData.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnCryptoMetaData.js +135 -0
- package/dist/parquetjs/parquet-thrift/ColumnCryptoMetaData.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts +6 -6
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js +3 -3
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts +12 -2
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js +75 -2
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/DateType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/DateType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DateType.js +1 -1
- package/dist/parquetjs/parquet-thrift/DateType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/DecimalType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/DecimalType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DecimalType.js +1 -1
- package/dist/parquetjs/parquet-thrift/DecimalType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/EdgeInterpolationAlgorithm.d.ts +8 -0
- package/dist/parquetjs/parquet-thrift/EdgeInterpolationAlgorithm.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/EdgeInterpolationAlgorithm.js +14 -0
- package/dist/parquetjs/parquet-thrift/EdgeInterpolationAlgorithm.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/Encoding.d.ts +2 -1
- package/dist/parquetjs/parquet-thrift/Encoding.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/Encoding.js +1 -0
- package/dist/parquetjs/parquet-thrift/Encoding.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/EncryptionAlgorithm.d.ts +22 -0
- package/dist/parquetjs/parquet-thrift/EncryptionAlgorithm.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/EncryptionAlgorithm.js +111 -0
- package/dist/parquetjs/parquet-thrift/EncryptionAlgorithm.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/EnumType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/EnumType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/EnumType.js +1 -1
- package/dist/parquetjs/parquet-thrift/EnumType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/FileCryptoMetaData.d.ts +16 -0
- package/dist/parquetjs/parquet-thrift/FileCryptoMetaData.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/FileCryptoMetaData.js +57 -0
- package/dist/parquetjs/parquet-thrift/FileCryptoMetaData.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts +7 -2
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js +37 -2
- package/dist/parquetjs/parquet-thrift/FileMetaData.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/Float16Type.d.ts +9 -0
- package/dist/parquetjs/parquet-thrift/Float16Type.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/Float16Type.js +27 -0
- package/dist/parquetjs/parquet-thrift/Float16Type.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/GeographyType.d.ts +14 -0
- package/dist/parquetjs/parquet-thrift/GeographyType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/GeographyType.js +51 -0
- package/dist/parquetjs/parquet-thrift/GeographyType.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/GeometryType.d.ts +11 -0
- package/dist/parquetjs/parquet-thrift/GeometryType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/GeometryType.js +41 -0
- package/dist/parquetjs/parquet-thrift/GeometryType.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/GeospatialStatistics.d.ts +18 -0
- package/dist/parquetjs/parquet-thrift/GeospatialStatistics.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/GeospatialStatistics.js +62 -0
- package/dist/parquetjs/parquet-thrift/GeospatialStatistics.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js +1 -1
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/IntType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/IntType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/IntType.js +1 -1
- package/dist/parquetjs/parquet-thrift/IntType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/JsonType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/JsonType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/JsonType.js +1 -1
- package/dist/parquetjs/parquet-thrift/JsonType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/KeyValue.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/KeyValue.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/KeyValue.js +1 -1
- package/dist/parquetjs/parquet-thrift/KeyValue.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/ListType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ListType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ListType.js +1 -1
- package/dist/parquetjs/parquet-thrift/ListType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts +17 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js +97 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/MapType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/MapType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/MapType.js +1 -1
- package/dist/parquetjs/parquet-thrift/MapType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/MicroSeconds.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/MicroSeconds.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js +1 -1
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/MilliSeconds.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/MilliSeconds.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js +1 -1
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/NanoSeconds.d.ts +9 -0
- package/dist/parquetjs/parquet-thrift/NanoSeconds.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/NanoSeconds.js +27 -0
- package/dist/parquetjs/parquet-thrift/NanoSeconds.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/NullType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/NullType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/NullType.js +1 -1
- package/dist/parquetjs/parquet-thrift/NullType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js +1 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js +1 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageLocation.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/PageLocation.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageLocation.js +2 -2
- package/dist/parquetjs/parquet-thrift/PageLocation.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.js +2 -2
- package/dist/parquetjs/parquet-thrift/RowGroup.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js +1 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/SizeStatistics.d.ts +26 -0
- package/dist/parquetjs/parquet-thrift/SizeStatistics.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/SizeStatistics.js +85 -0
- package/dist/parquetjs/parquet-thrift/SizeStatistics.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/SortingColumn.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/SortingColumn.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/SortingColumn.js +1 -1
- package/dist/parquetjs/parquet-thrift/SortingColumn.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/Statistics.d.ts +14 -10
- package/dist/parquetjs/parquet-thrift/Statistics.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/Statistics.js +38 -2
- package/dist/parquetjs/parquet-thrift/Statistics.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/StringType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/StringType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/StringType.js +1 -1
- package/dist/parquetjs/parquet-thrift/StringType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts +5 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js +25 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js +1 -1
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/UUIDType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/UUIDType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/UUIDType.js +1 -1
- package/dist/parquetjs/parquet-thrift/UUIDType.js.map +1 -1
- package/dist/parquetjs/parquet-thrift/VariantType.d.ts +11 -0
- package/dist/parquetjs/parquet-thrift/VariantType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/VariantType.js +41 -0
- package/dist/parquetjs/parquet-thrift/VariantType.js.map +1 -0
- package/dist/parquetjs/parquet-thrift/index.d.ts +12 -2
- package/dist/parquetjs/parquet-thrift/index.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/index.js +12 -2
- package/dist/parquetjs/parquet-thrift/index.js.map +1 -1
- package/dist/parquetjs/parser/decoders.d.ts +23 -3
- package/dist/parquetjs/parser/decoders.d.ts.map +1 -1
- package/dist/parquetjs/parser/decoders.js +687 -119
- package/dist/parquetjs/parser/decoders.js.map +1 -1
- package/dist/parquetjs/parser/encoded-pages.d.ts +24 -0
- package/dist/parquetjs/parser/encoded-pages.d.ts.map +1 -0
- package/dist/parquetjs/parser/encoded-pages.js +206 -0
- package/dist/parquetjs/parser/encoded-pages.js.map +1 -0
- package/dist/parquetjs/parser/parquet-reader.d.ts +111 -10
- package/dist/parquetjs/parser/parquet-reader.d.ts.map +1 -1
- package/dist/parquetjs/parser/parquet-reader.js +836 -69
- package/dist/parquetjs/parser/parquet-reader.js.map +1 -1
- package/dist/parquetjs/schema/declare.d.ts +83 -10
- package/dist/parquetjs/schema/declare.d.ts.map +1 -1
- package/dist/parquetjs/schema/declare.js.map +1 -1
- package/dist/parquetjs/schema/schema.d.ts +3 -0
- package/dist/parquetjs/schema/schema.d.ts.map +1 -1
- package/dist/parquetjs/schema/schema.js +31 -3
- package/dist/parquetjs/schema/schema.js.map +1 -1
- package/dist/parquetjs/schema/shred.d.ts +2 -0
- package/dist/parquetjs/schema/shred.d.ts.map +1 -1
- package/dist/parquetjs/schema/shred.js +285 -29
- package/dist/parquetjs/schema/shred.js.map +1 -1
- package/dist/parquetjs/schema/types.d.ts.map +1 -1
- package/dist/parquetjs/schema/types.js +290 -71
- package/dist/parquetjs/schema/types.js.map +1 -1
- package/dist/parquetjs/schema/variant.d.ts +3 -0
- package/dist/parquetjs/schema/variant.d.ts.map +1 -0
- package/dist/parquetjs/schema/variant.js +248 -0
- package/dist/parquetjs/schema/variant.js.map +1 -0
- package/dist/parquetjs/utils/binary-utils.d.ts +41 -0
- package/dist/parquetjs/utils/binary-utils.d.ts.map +1 -0
- package/dist/parquetjs/utils/binary-utils.js +106 -0
- package/dist/parquetjs/utils/binary-utils.js.map +1 -0
- package/dist/parquetjs/utils/crc32.d.ts +3 -0
- package/dist/parquetjs/utils/crc32.d.ts.map +1 -0
- package/dist/parquetjs/utils/crc32.js +15 -0
- package/dist/parquetjs/utils/crc32.js.map +1 -0
- package/dist/parquetjs/utils/file-utils.d.ts +1 -1
- package/dist/parquetjs/utils/file-utils.d.ts.map +1 -1
- package/dist/parquetjs/utils/file-utils.js +3 -3
- package/dist/parquetjs/utils/file-utils.js.map +1 -1
- package/dist/parquetjs/utils/read-utils.d.ts +25 -7
- package/dist/parquetjs/utils/read-utils.d.ts.map +1 -1
- package/dist/parquetjs/utils/read-utils.js +66 -39
- package/dist/parquetjs/utils/read-utils.js.map +1 -1
- package/dist/parquetjs/utils/thrift-runtime.d.ts +106 -0
- package/dist/parquetjs/utils/thrift-runtime.d.ts.map +1 -0
- package/dist/parquetjs/utils/thrift-runtime.js +50 -0
- package/dist/parquetjs/utils/thrift-runtime.js.map +1 -0
- package/dist/parquetjs/utils/uint8-array-compact-protocol-writer.d.ts +78 -0
- package/dist/parquetjs/utils/uint8-array-compact-protocol-writer.d.ts.map +1 -0
- package/dist/parquetjs/utils/uint8-array-compact-protocol-writer.js +213 -0
- package/dist/parquetjs/utils/uint8-array-compact-protocol-writer.js.map +1 -0
- package/dist/parquetjs/utils/uint8-array-compact-protocol.d.ts +80 -0
- package/dist/parquetjs/utils/uint8-array-compact-protocol.d.ts.map +1 -0
- package/dist/parquetjs/utils/uint8-array-compact-protocol.js +276 -0
- package/dist/parquetjs/utils/uint8-array-compact-protocol.js.map +1 -0
- package/dist/parquetjs/utils/uint8-array-transport.d.ts +25 -0
- package/dist/parquetjs/utils/uint8-array-transport.d.ts.map +1 -0
- package/dist/parquetjs/utils/uint8-array-transport.js +62 -0
- package/dist/parquetjs/utils/uint8-array-transport.js.map +1 -0
- package/dist/polyfills/process.d.ts +12 -0
- package/dist/polyfills/process.d.ts.map +1 -0
- package/dist/polyfills/process.js +17 -0
- package/dist/polyfills/process.js.map +1 -0
- package/dist/unbundled.d.ts +10 -0
- package/dist/unbundled.d.ts.map +1 -0
- package/dist/unbundled.js +11 -0
- package/dist/unbundled.js.map +1 -0
- package/dist/wasm.d.ts +3 -0
- package/dist/wasm.d.ts.map +1 -0
- package/dist/wasm.js +6 -0
- package/dist/wasm.js.map +1 -0
- package/dist/workers/parquet-source-worker.d.ts +2 -0
- package/dist/workers/parquet-source-worker.d.ts.map +1 -0
- package/dist/workers/parquet-source-worker.js +17 -0
- package/dist/workers/parquet-source-worker.js.map +1 -0
- package/dist/workers/parquet-worker-node.d.ts +2 -0
- package/dist/workers/parquet-worker-node.d.ts.map +1 -0
- package/dist/workers/parquet-worker-node.js +5 -0
- package/dist/workers/parquet-worker-node.js.map +1 -0
- package/dist/workers/parquet-worker.d.ts +2 -0
- package/dist/workers/parquet-worker.d.ts.map +1 -0
- package/dist/workers/parquet-worker.js +27 -0
- package/dist/workers/parquet-worker.js.map +1 -0
- package/package.json +84 -40
- package/src/bundled.ts +43 -0
- package/src/delta-format.ts +12 -0
- package/src/delta-source-loader-types.ts +40 -0
- package/src/delta-source.ts +305 -0
- package/src/delta-types.ts +40 -0
- package/src/geoparquet-loader-with-parser.ts +95 -0
- package/src/geoparquet-loader.ts +54 -0
- package/src/iceberg-rest-catalog.ts +122 -0
- package/src/iceberg-table-source.ts +1037 -0
- package/src/iceberg-types.ts +165 -0
- package/src/index.ts +105 -26
- package/src/lib/arrow/convert-columns-to-row-group.ts +3 -0
- package/src/lib/arrow/convert-schema-from-parquet.ts +193 -32
- package/src/lib/arrow/convert-schema-to-parquet.ts +16 -7
- package/src/lib/arrow/create-nested-arrow-vector.ts +705 -0
- package/src/lib/constants.ts +0 -2
- package/src/lib/encoders/encode-arrow-to-parquet.ts +10 -16
- package/src/lib/encoders/encode-table-to-parquet-js.ts +526 -0
- package/src/lib/geo/geoparquet-covering.ts +201 -0
- package/src/lib/geo/geospatial-metadata.ts +547 -0
- package/src/lib/parquet-bloom-filter-planner.ts +86 -0
- package/src/lib/parquet-bloom-filter.ts +345 -0
- package/src/lib/parquet-encryption.ts +344 -0
- package/src/lib/parquet-page-index.ts +727 -0
- package/src/lib/parquet-predicate.ts +410 -0
- package/src/lib/parquet-source-worker-client.ts +41 -0
- package/src/lib/parquet-source-worker-decoder.ts +252 -0
- package/src/lib/parquet-source-worker-file.ts +56 -0
- package/src/lib/parquet-source-worker-types.ts +132 -0
- package/src/lib/parquet-worker-transport.ts +57 -0
- package/src/lib/parsers/convert-parquet-tables.ts +39 -0
- package/src/lib/parsers/get-parquet-schema.ts +6 -2
- package/src/lib/parsers/parse-geoparquet-to-geojson.ts +27 -14
- package/src/lib/parsers/parse-parquet-tables.ts +82 -0
- package/src/lib/parsers/parse-parquet-to-arrow-js.ts +1213 -0
- package/src/lib/parsers/parse-parquet-to-arrow.ts +62 -36
- package/src/lib/parsers/parse-parquet-to-columns.ts +9 -8
- package/src/lib/parsers/parse-parquet-to-json.ts +119 -35
- package/src/lib/slice-parquet-batch.ts +32 -0
- package/src/lib/sources/parquet-range-file.ts +365 -0
- package/src/lib/sources/single-batch-queue.ts +95 -0
- package/src/lib/utils/load-wasm-node.ts +25 -0
- package/src/lib/utils/load-wasm.ts +36 -13
- package/src/lib/utils/make-stream-iterator.ts +126 -14
- package/src/lib/utils/normalize-parquet-options.ts +30 -0
- package/src/parquet-dataset-source.ts +800 -0
- package/src/parquet-encoded-page-types.ts +122 -0
- package/src/parquet-format.ts +2 -0
- package/src/parquet-js-loader-types.ts +53 -0
- package/src/parquet-js-loader.ts +76 -19
- package/src/parquet-js-writer.ts +98 -0
- package/src/parquet-loader-base.ts +34 -0
- package/src/parquet-loader-options.ts +62 -0
- package/src/parquet-loader-types.ts +35 -0
- package/src/parquet-loader.ts +115 -0
- package/src/parquet-source-capabilities.ts +73 -0
- package/src/parquet-source-loader-types.ts +97 -0
- package/src/parquet-source-loader.ts +2254 -0
- package/src/parquet-source-types.ts +627 -0
- package/src/parquet-source-worker-factory.ts +8 -0
- package/src/parquet-source-worker-url.ts +23 -0
- package/src/parquet-worker-url.ts +23 -0
- package/src/parquet-writer.ts +42 -0
- package/src/parquetjs/LICENSE +23 -1
- package/src/parquetjs/codecs/byte-stream-split.ts +221 -0
- package/src/parquetjs/codecs/declare.ts +62 -3
- package/src/parquetjs/codecs/delta.ts +1047 -0
- package/src/parquetjs/codecs/dictionary.ts +22 -4
- package/src/parquetjs/codecs/index.ts +22 -0
- package/src/parquetjs/codecs/plain.ts +317 -89
- package/src/parquetjs/codecs/rle.ts +852 -82
- package/src/parquetjs/compression.ts +137 -156
- package/src/parquetjs/encoder/dictionary-planner.ts +104 -0
- package/src/parquetjs/encoder/page-planner.ts +83 -0
- package/src/parquetjs/encoder/parquet-encoder.ts +1374 -95
- package/src/parquetjs/parquet-thrift/BoundingBox.ts +108 -0
- package/src/parquetjs/parquet-thrift/BsonType.ts +1 -1
- package/src/parquetjs/parquet-thrift/ColumnChunk.ts +37 -2
- package/src/parquetjs/parquet-thrift/ColumnCryptoMetaData.ts +139 -0
- package/src/parquetjs/parquet-thrift/ColumnIndex.ts +13 -13
- package/src/parquetjs/parquet-thrift/ColumnMetaData.ts +75 -2
- package/src/parquetjs/parquet-thrift/ColumnOrder.ts +1 -1
- package/src/parquetjs/parquet-thrift/DataPageHeader.ts +1 -1
- package/src/parquetjs/parquet-thrift/DataPageHeaderV2.ts +1 -1
- package/src/parquetjs/parquet-thrift/DateType.ts +1 -1
- package/src/parquetjs/parquet-thrift/DecimalType.ts +1 -1
- package/src/parquetjs/parquet-thrift/DictionaryPageHeader.ts +1 -1
- package/src/parquetjs/parquet-thrift/EdgeInterpolationAlgorithm.ts +13 -0
- package/src/parquetjs/parquet-thrift/Encoding.ts +2 -1
- package/src/parquetjs/parquet-thrift/EncryptionAlgorithm.ts +127 -0
- package/src/parquetjs/parquet-thrift/EnumType.ts +1 -1
- package/src/parquetjs/parquet-thrift/FileCryptoMetaData.ts +60 -0
- package/src/parquetjs/parquet-thrift/FileMetaData.ts +37 -2
- package/src/parquetjs/parquet-thrift/Float16Type.ts +28 -0
- package/src/parquetjs/parquet-thrift/GeographyType.ts +54 -0
- package/src/parquetjs/parquet-thrift/GeometryType.ts +43 -0
- package/src/parquetjs/parquet-thrift/GeospatialStatistics.ts +68 -0
- package/src/parquetjs/parquet-thrift/IndexPageHeader.ts +1 -1
- package/src/parquetjs/parquet-thrift/IntType.ts +1 -1
- package/src/parquetjs/parquet-thrift/JsonType.ts +1 -1
- package/src/parquetjs/parquet-thrift/KeyValue.ts +1 -1
- package/src/parquetjs/parquet-thrift/ListType.ts +1 -1
- package/src/parquetjs/parquet-thrift/LogicalType.ts +97 -1
- package/src/parquetjs/parquet-thrift/MapType.ts +1 -1
- package/src/parquetjs/parquet-thrift/MicroSeconds.ts +1 -1
- package/src/parquetjs/parquet-thrift/MilliSeconds.ts +1 -1
- package/src/parquetjs/parquet-thrift/NanoSeconds.ts +28 -0
- package/src/parquetjs/parquet-thrift/NullType.ts +1 -1
- package/src/parquetjs/parquet-thrift/OffsetIndex.ts +1 -1
- package/src/parquetjs/parquet-thrift/PageEncodingStats.ts +1 -1
- package/src/parquetjs/parquet-thrift/PageHeader.ts +1 -1
- package/src/parquetjs/parquet-thrift/PageLocation.ts +2 -2
- package/src/parquetjs/parquet-thrift/RowGroup.ts +2 -2
- package/src/parquetjs/parquet-thrift/SchemaElement.ts +1 -1
- package/src/parquetjs/parquet-thrift/SizeStatistics.ts +98 -0
- package/src/parquetjs/parquet-thrift/SortingColumn.ts +1 -1
- package/src/parquetjs/parquet-thrift/Statistics.ts +50 -14
- package/src/parquetjs/parquet-thrift/StringType.ts +1 -1
- package/src/parquetjs/parquet-thrift/TimeType.ts +1 -1
- package/src/parquetjs/parquet-thrift/TimeUnit.ts +25 -1
- package/src/parquetjs/parquet-thrift/TimestampType.ts +1 -1
- package/src/parquetjs/parquet-thrift/TypeDefinedOrder.ts +1 -1
- package/src/parquetjs/parquet-thrift/UUIDType.ts +1 -1
- package/src/parquetjs/parquet-thrift/VariantType.ts +43 -0
- package/src/parquetjs/parquet-thrift/index.ts +12 -4
- package/src/parquetjs/parser/decoders.ts +922 -143
- package/src/parquetjs/parser/encoded-pages.ts +278 -0
- package/src/parquetjs/parser/parquet-reader.ts +1334 -83
- package/src/parquetjs/schema/declare.ts +121 -9
- package/src/parquetjs/schema/schema.ts +33 -3
- package/src/parquetjs/schema/shred.ts +345 -41
- package/src/parquetjs/schema/types.ts +308 -84
- package/src/parquetjs/schema/variant.ts +313 -0
- package/src/parquetjs/utils/binary-utils.ts +132 -0
- package/src/parquetjs/utils/crc32.ts +15 -0
- package/src/parquetjs/utils/file-utils.ts +4 -4
- package/src/parquetjs/utils/read-utils.ts +77 -51
- package/src/parquetjs/utils/thrift-runtime.ts +109 -0
- package/src/parquetjs/utils/uint8-array-compact-protocol-writer.ts +254 -0
- package/src/parquetjs/utils/uint8-array-compact-protocol.ts +322 -0
- package/src/parquetjs/utils/uint8-array-transport.ts +79 -0
- package/src/polyfills/process.ts +17 -0
- package/src/unbundled.ts +47 -0
- package/src/wasm.ts +6 -0
- package/src/workers/parquet-source-worker.ts +21 -0
- package/src/workers/parquet-worker-node.ts +5 -0
- package/src/workers/parquet-worker.ts +31 -0
- package/dist/parquet-arrow-loader.d.ts +0 -43
- package/dist/parquet-arrow-loader.d.ts.map +0 -1
- package/dist/parquet-arrow-loader.js +0 -49
- package/dist/parquet-arrow-loader.js.map +0 -1
- package/dist/parquet-arrow-writer.d.ts +0 -9
- package/dist/parquet-arrow-writer.d.ts.map +0 -1
- package/dist/parquet-arrow-writer.js +0 -23
- package/dist/parquet-arrow-writer.js.map +0 -1
- package/dist/parquet-json-loader.d.ts +0 -148
- package/dist/parquet-json-loader.d.ts.map +0 -1
- package/dist/parquet-json-loader.js +0 -106
- package/dist/parquet-json-loader.js.map +0 -1
- package/dist/parquet-json-writer.d.ts +0 -19
- package/dist/parquet-json-writer.d.ts.map +0 -1
- package/dist/parquet-json-writer.js +0 -20
- package/dist/parquet-json-writer.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.browser.d.ts +0 -3
- package/dist/polyfills/buffer/buffer-polyfill.browser.d.ts.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.browser.js +0 -12
- package/dist/polyfills/buffer/buffer-polyfill.browser.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.node.d.ts +0 -3
- package/dist/polyfills/buffer/buffer-polyfill.node.d.ts.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.node.js +0 -17
- package/dist/polyfills/buffer/buffer-polyfill.node.js.map +0 -1
- package/dist/polyfills/buffer/buffer.d.ts +0 -222
- package/dist/polyfills/buffer/buffer.d.ts.map +0 -1
- package/dist/polyfills/buffer/buffer.js +0 -1868
- package/dist/polyfills/buffer/buffer.js.map +0 -1
- package/dist/polyfills/buffer/index.d.ts +0 -4
- package/dist/polyfills/buffer/index.d.ts.map +0 -1
- package/dist/polyfills/buffer/index.js +0 -9
- package/dist/polyfills/buffer/index.js.map +0 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.d.ts +0 -2
- package/dist/polyfills/buffer/install-buffer-polyfill.d.ts.map +0 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js +0 -10
- package/dist/polyfills/buffer/install-buffer-polyfill.js.map +0 -1
- package/dist/workers/parquet-json-worker.d.ts +0 -2
- package/dist/workers/parquet-json-worker.d.ts.map +0 -1
- package/dist/workers/parquet-json-worker.js +0 -7
- package/dist/workers/parquet-json-worker.js.map +0 -1
- package/src/parquet-arrow-loader.ts +0 -74
- package/src/parquet-arrow-writer.ts +0 -33
- package/src/parquet-json-loader.ts +0 -160
- package/src/parquet-json-writer.ts +0 -27
- package/src/parquetjs/modules.d.ts +0 -25
- package/src/polyfills/buffer/buffer-polyfill.browser.ts +0 -14
- package/src/polyfills/buffer/buffer-polyfill.node.ts +0 -19
- package/src/polyfills/buffer/buffer.ts +0 -2205
- package/src/polyfills/buffer/index.ts +0 -11
- package/src/polyfills/buffer/install-buffer-polyfill.ts +0 -12
- package/src/workers/parquet-json-worker.ts +0 -8
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
/* eslint-disable camelcase */
|
|
6
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
7
|
+
|
|
8
|
+
/** Constructor arguments for the Parquet geospatial bounding-box Thrift structure. */
|
|
9
|
+
export interface IBoundingBoxArgs {
|
|
10
|
+
xmin: number;
|
|
11
|
+
xmax: number;
|
|
12
|
+
ymin: number;
|
|
13
|
+
ymax: number;
|
|
14
|
+
zmin?: number;
|
|
15
|
+
zmax?: number;
|
|
16
|
+
mmin?: number;
|
|
17
|
+
mmax?: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Parquet geospatial bounding-box Thrift structure. */
|
|
21
|
+
export class BoundingBox {
|
|
22
|
+
public xmin: number;
|
|
23
|
+
public xmax: number;
|
|
24
|
+
public ymin: number;
|
|
25
|
+
public ymax: number;
|
|
26
|
+
public zmin?: number;
|
|
27
|
+
public zmax?: number;
|
|
28
|
+
public mmin?: number;
|
|
29
|
+
public mmax?: number;
|
|
30
|
+
|
|
31
|
+
constructor(args: IBoundingBoxArgs) {
|
|
32
|
+
this.xmin = getRequiredCoordinate(args.xmin, 'xmin');
|
|
33
|
+
this.xmax = getRequiredCoordinate(args.xmax, 'xmax');
|
|
34
|
+
this.ymin = getRequiredCoordinate(args.ymin, 'ymin');
|
|
35
|
+
this.ymax = getRequiredCoordinate(args.ymax, 'ymax');
|
|
36
|
+
this.zmin = args.zmin;
|
|
37
|
+
this.zmax = args.zmax;
|
|
38
|
+
this.mmin = args.mmin;
|
|
39
|
+
this.mmax = args.mmax;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Writes this bounding box to a Thrift protocol. */
|
|
43
|
+
public write(output: thrift.TProtocol): void {
|
|
44
|
+
output.writeStructBegin('BoundingBox');
|
|
45
|
+
writeCoordinate(output, 'xmin', 1, this.xmin);
|
|
46
|
+
writeCoordinate(output, 'xmax', 2, this.xmax);
|
|
47
|
+
writeCoordinate(output, 'ymin', 3, this.ymin);
|
|
48
|
+
writeCoordinate(output, 'ymax', 4, this.ymax);
|
|
49
|
+
writeCoordinate(output, 'zmin', 5, this.zmin);
|
|
50
|
+
writeCoordinate(output, 'zmax', 6, this.zmax);
|
|
51
|
+
writeCoordinate(output, 'mmin', 7, this.mmin);
|
|
52
|
+
writeCoordinate(output, 'mmax', 8, this.mmax);
|
|
53
|
+
output.writeFieldStop();
|
|
54
|
+
output.writeStructEnd();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** Reads a bounding box from a Thrift protocol. */
|
|
58
|
+
public static read(input: thrift.TProtocol): BoundingBox {
|
|
59
|
+
input.readStructBegin();
|
|
60
|
+
const args: Partial<IBoundingBoxArgs> = {};
|
|
61
|
+
while (true) {
|
|
62
|
+
const field = input.readFieldBegin();
|
|
63
|
+
if (field.ftype === thrift.Thrift.Type.STOP) break;
|
|
64
|
+
if (field.fid >= 1 && field.fid <= 8 && field.ftype === thrift.Thrift.Type.DOUBLE) {
|
|
65
|
+
const coordinateNames: Array<keyof IBoundingBoxArgs> = [
|
|
66
|
+
'xmin',
|
|
67
|
+
'xmax',
|
|
68
|
+
'ymin',
|
|
69
|
+
'ymax',
|
|
70
|
+
'zmin',
|
|
71
|
+
'zmax',
|
|
72
|
+
'mmin',
|
|
73
|
+
'mmax'
|
|
74
|
+
];
|
|
75
|
+
args[coordinateNames[field.fid - 1]] = input.readDouble();
|
|
76
|
+
} else {
|
|
77
|
+
input.skip(field.ftype);
|
|
78
|
+
}
|
|
79
|
+
input.readFieldEnd();
|
|
80
|
+
}
|
|
81
|
+
input.readStructEnd();
|
|
82
|
+
return new BoundingBox(args as IBoundingBoxArgs);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** Writes one optional coordinate to a Thrift protocol. */
|
|
87
|
+
function writeCoordinate(
|
|
88
|
+
output: thrift.TProtocol,
|
|
89
|
+
name: string,
|
|
90
|
+
fieldId: number,
|
|
91
|
+
value: number | undefined
|
|
92
|
+
): void {
|
|
93
|
+
if (value === undefined) return;
|
|
94
|
+
output.writeFieldBegin(name, thrift.Thrift.Type.DOUBLE, fieldId);
|
|
95
|
+
output.writeDouble(value);
|
|
96
|
+
output.writeFieldEnd();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Validates one required coordinate reported by the Thrift structure. */
|
|
100
|
+
function getRequiredCoordinate(value: number | undefined, name: string): number {
|
|
101
|
+
if (value === undefined) {
|
|
102
|
+
throw new thrift.Thrift.TProtocolException(
|
|
103
|
+
thrift.Thrift.TProtocolExceptionType.UNKNOWN,
|
|
104
|
+
`Required field[${name}] is unset!`
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
14
14
|
export interface IBsonTypeArgs {}
|
|
15
15
|
export class BsonType {
|
|
16
16
|
constructor() {}
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import Int64 from '
|
|
14
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import {CompactInt64 as Int64} from '../utils/uint8-array-compact-protocol';
|
|
14
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
15
15
|
import * as ColumnMetaData from './ColumnMetaData';
|
|
16
|
+
import * as ColumnCryptoMetaData from './ColumnCryptoMetaData';
|
|
16
17
|
export interface IColumnChunkArgs {
|
|
17
18
|
file_path?: string;
|
|
18
19
|
file_offset: number | Int64;
|
|
@@ -21,6 +22,8 @@ export interface IColumnChunkArgs {
|
|
|
21
22
|
offset_index_length?: number;
|
|
22
23
|
column_index_offset?: number | Int64;
|
|
23
24
|
column_index_length?: number;
|
|
25
|
+
crypto_metadata?: ColumnCryptoMetaData.ColumnCryptoMetaData;
|
|
26
|
+
encrypted_column_metadata?: Uint8Array;
|
|
24
27
|
}
|
|
25
28
|
export class ColumnChunk {
|
|
26
29
|
public file_path?: string;
|
|
@@ -30,6 +33,8 @@ export class ColumnChunk {
|
|
|
30
33
|
public offset_index_length?: number;
|
|
31
34
|
public column_index_offset?: Int64;
|
|
32
35
|
public column_index_length?: number;
|
|
36
|
+
public crypto_metadata?: ColumnCryptoMetaData.ColumnCryptoMetaData;
|
|
37
|
+
public encrypted_column_metadata?: Uint8Array;
|
|
33
38
|
constructor(args: IColumnChunkArgs) {
|
|
34
39
|
if (args != null && args.file_path != null) {
|
|
35
40
|
this.file_path = args.file_path;
|
|
@@ -69,6 +74,12 @@ export class ColumnChunk {
|
|
|
69
74
|
if (args != null && args.column_index_length != null) {
|
|
70
75
|
this.column_index_length = args.column_index_length;
|
|
71
76
|
}
|
|
77
|
+
if (args != null && args.crypto_metadata != null) {
|
|
78
|
+
this.crypto_metadata = args.crypto_metadata;
|
|
79
|
+
}
|
|
80
|
+
if (args != null && args.encrypted_column_metadata != null) {
|
|
81
|
+
this.encrypted_column_metadata = args.encrypted_column_metadata;
|
|
82
|
+
}
|
|
72
83
|
}
|
|
73
84
|
public write(output: thrift.TProtocol): void {
|
|
74
85
|
output.writeStructBegin('ColumnChunk');
|
|
@@ -107,6 +118,16 @@ export class ColumnChunk {
|
|
|
107
118
|
output.writeI32(this.column_index_length);
|
|
108
119
|
output.writeFieldEnd();
|
|
109
120
|
}
|
|
121
|
+
if (this.crypto_metadata != null) {
|
|
122
|
+
output.writeFieldBegin('crypto_metadata', thrift.Thrift.Type.STRUCT, 8);
|
|
123
|
+
this.crypto_metadata.write(output);
|
|
124
|
+
output.writeFieldEnd();
|
|
125
|
+
}
|
|
126
|
+
if (this.encrypted_column_metadata != null) {
|
|
127
|
+
output.writeFieldBegin('encrypted_column_metadata', thrift.Thrift.Type.STRING, 9);
|
|
128
|
+
output.writeBinary(this.encrypted_column_metadata);
|
|
129
|
+
output.writeFieldEnd();
|
|
130
|
+
}
|
|
110
131
|
output.writeFieldStop();
|
|
111
132
|
output.writeStructEnd();
|
|
112
133
|
return;
|
|
@@ -179,6 +200,20 @@ export class ColumnChunk {
|
|
|
179
200
|
input.skip(fieldType);
|
|
180
201
|
}
|
|
181
202
|
break;
|
|
203
|
+
case 8:
|
|
204
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
205
|
+
_args.crypto_metadata = ColumnCryptoMetaData.ColumnCryptoMetaData.read(input);
|
|
206
|
+
} else {
|
|
207
|
+
input.skip(fieldType);
|
|
208
|
+
}
|
|
209
|
+
break;
|
|
210
|
+
case 9:
|
|
211
|
+
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
212
|
+
_args.encrypted_column_metadata = input.readBinary();
|
|
213
|
+
} else {
|
|
214
|
+
input.skip(fieldType);
|
|
215
|
+
}
|
|
216
|
+
break;
|
|
182
217
|
default: {
|
|
183
218
|
input.skip(fieldType);
|
|
184
219
|
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
6
|
+
|
|
7
|
+
/** Marker for a column encrypted with the file footer key. */
|
|
8
|
+
export class EncryptionWithFooterKey {
|
|
9
|
+
/** Writes the empty footer-key marker. */
|
|
10
|
+
public write(output: thrift.TProtocol): void {
|
|
11
|
+
output.writeStructBegin('EncryptionWithFooterKey');
|
|
12
|
+
output.writeFieldStop();
|
|
13
|
+
output.writeStructEnd();
|
|
14
|
+
}
|
|
15
|
+
/** Reads the empty footer-key marker. */
|
|
16
|
+
public static read(input: thrift.TProtocol): EncryptionWithFooterKey {
|
|
17
|
+
input.readStructBegin();
|
|
18
|
+
while (true) {
|
|
19
|
+
const field = input.readFieldBegin();
|
|
20
|
+
if (field.ftype === thrift.Thrift.Type.STOP) break;
|
|
21
|
+
input.skip(field.ftype);
|
|
22
|
+
input.readFieldEnd();
|
|
23
|
+
}
|
|
24
|
+
input.readStructEnd();
|
|
25
|
+
return new EncryptionWithFooterKey();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Metadata needed to retrieve a column-specific encryption key. */
|
|
30
|
+
export class EncryptionWithColumnKey {
|
|
31
|
+
public path_in_schema: string[];
|
|
32
|
+
public key_metadata?: Uint8Array;
|
|
33
|
+
constructor(args: {path_in_schema: string[]; key_metadata?: Uint8Array}) {
|
|
34
|
+
this.path_in_schema = args.path_in_schema;
|
|
35
|
+
this.key_metadata = args.key_metadata;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Writes column-key retrieval metadata. */
|
|
39
|
+
public write(output: thrift.TProtocol): void {
|
|
40
|
+
output.writeStructBegin('EncryptionWithColumnKey');
|
|
41
|
+
output.writeFieldBegin('path_in_schema', thrift.Thrift.Type.LIST, 1);
|
|
42
|
+
output.writeListBegin(thrift.Thrift.Type.STRING, this.path_in_schema.length);
|
|
43
|
+
for (const pathPart of this.path_in_schema) output.writeString(pathPart);
|
|
44
|
+
output.writeListEnd();
|
|
45
|
+
output.writeFieldEnd();
|
|
46
|
+
if (this.key_metadata) {
|
|
47
|
+
output.writeFieldBegin('key_metadata', thrift.Thrift.Type.STRING, 2);
|
|
48
|
+
output.writeBinary(this.key_metadata);
|
|
49
|
+
output.writeFieldEnd();
|
|
50
|
+
}
|
|
51
|
+
output.writeFieldStop();
|
|
52
|
+
output.writeStructEnd();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Reads column-key retrieval metadata. */
|
|
56
|
+
public static read(input: thrift.TProtocol): EncryptionWithColumnKey {
|
|
57
|
+
input.readStructBegin();
|
|
58
|
+
let pathInSchema: string[] | undefined;
|
|
59
|
+
let keyMetadata: Uint8Array | undefined;
|
|
60
|
+
while (true) {
|
|
61
|
+
const field = input.readFieldBegin();
|
|
62
|
+
if (field.ftype === thrift.Thrift.Type.STOP) break;
|
|
63
|
+
if (field.fid === 1 && field.ftype === thrift.Thrift.Type.LIST) {
|
|
64
|
+
const list = input.readListBegin();
|
|
65
|
+
pathInSchema = [];
|
|
66
|
+
for (let index = 0; index < list.size; index++) pathInSchema.push(input.readString());
|
|
67
|
+
input.readListEnd();
|
|
68
|
+
} else if (field.fid === 2 && field.ftype === thrift.Thrift.Type.STRING) {
|
|
69
|
+
keyMetadata = input.readBinary();
|
|
70
|
+
} else {
|
|
71
|
+
input.skip(field.ftype);
|
|
72
|
+
}
|
|
73
|
+
input.readFieldEnd();
|
|
74
|
+
}
|
|
75
|
+
input.readStructEnd();
|
|
76
|
+
if (!pathInSchema) throw new Error('EncryptionWithColumnKey path_in_schema is required');
|
|
77
|
+
return new EncryptionWithColumnKey({path_in_schema: pathInSchema, key_metadata: keyMetadata});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Column encryption metadata union. */
|
|
82
|
+
export class ColumnCryptoMetaData {
|
|
83
|
+
public ENCRYPTION_WITH_FOOTER_KEY?: EncryptionWithFooterKey;
|
|
84
|
+
public ENCRYPTION_WITH_COLUMN_KEY?: EncryptionWithColumnKey;
|
|
85
|
+
constructor(args: {
|
|
86
|
+
ENCRYPTION_WITH_FOOTER_KEY?: EncryptionWithFooterKey;
|
|
87
|
+
ENCRYPTION_WITH_COLUMN_KEY?: EncryptionWithColumnKey;
|
|
88
|
+
}) {
|
|
89
|
+
if (
|
|
90
|
+
(args.ENCRYPTION_WITH_FOOTER_KEY ? 1 : 0) + (args.ENCRYPTION_WITH_COLUMN_KEY ? 1 : 0) !==
|
|
91
|
+
1
|
|
92
|
+
) {
|
|
93
|
+
throw new thrift.Thrift.TProtocolException(
|
|
94
|
+
thrift.Thrift.TProtocolExceptionType.INVALID_DATA,
|
|
95
|
+
'ColumnCryptoMetaData must contain exactly one key reference'
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
Object.assign(this, args);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** Writes the selected column encryption key reference. */
|
|
102
|
+
public write(output: thrift.TProtocol): void {
|
|
103
|
+
output.writeStructBegin('ColumnCryptoMetaData');
|
|
104
|
+
if (this.ENCRYPTION_WITH_FOOTER_KEY) {
|
|
105
|
+
output.writeFieldBegin('ENCRYPTION_WITH_FOOTER_KEY', thrift.Thrift.Type.STRUCT, 1);
|
|
106
|
+
this.ENCRYPTION_WITH_FOOTER_KEY.write(output);
|
|
107
|
+
output.writeFieldEnd();
|
|
108
|
+
} else if (this.ENCRYPTION_WITH_COLUMN_KEY) {
|
|
109
|
+
output.writeFieldBegin('ENCRYPTION_WITH_COLUMN_KEY', thrift.Thrift.Type.STRUCT, 2);
|
|
110
|
+
this.ENCRYPTION_WITH_COLUMN_KEY.write(output);
|
|
111
|
+
output.writeFieldEnd();
|
|
112
|
+
}
|
|
113
|
+
output.writeFieldStop();
|
|
114
|
+
output.writeStructEnd();
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Reads column encryption metadata. */
|
|
118
|
+
public static read(input: thrift.TProtocol): ColumnCryptoMetaData {
|
|
119
|
+
input.readStructBegin();
|
|
120
|
+
let footerKey: EncryptionWithFooterKey | undefined;
|
|
121
|
+
let columnKey: EncryptionWithColumnKey | undefined;
|
|
122
|
+
while (true) {
|
|
123
|
+
const field = input.readFieldBegin();
|
|
124
|
+
if (field.ftype === thrift.Thrift.Type.STOP) break;
|
|
125
|
+
if (field.fid === 1 && field.ftype === thrift.Thrift.Type.STRUCT) {
|
|
126
|
+
footerKey = EncryptionWithFooterKey.read(input);
|
|
127
|
+
} else if (field.fid === 2 && field.ftype === thrift.Thrift.Type.STRUCT) {
|
|
128
|
+
columnKey = EncryptionWithColumnKey.read(input);
|
|
129
|
+
} else {
|
|
130
|
+
input.skip(field.ftype);
|
|
131
|
+
}
|
|
132
|
+
input.readFieldEnd();
|
|
133
|
+
}
|
|
134
|
+
input.readStructEnd();
|
|
135
|
+
return footerKey
|
|
136
|
+
? new ColumnCryptoMetaData({ENCRYPTION_WITH_FOOTER_KEY: footerKey})
|
|
137
|
+
: new ColumnCryptoMetaData({ENCRYPTION_WITH_COLUMN_KEY: columnKey!});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import Int64 from '
|
|
14
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import {CompactInt64 as Int64} from '../utils/uint8-array-compact-protocol';
|
|
14
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
15
15
|
import * as BoundaryOrder from './BoundaryOrder';
|
|
16
16
|
export interface IColumnIndexArgs {
|
|
17
17
|
null_pages: Array<boolean>;
|
|
18
|
-
min_values: Array<
|
|
19
|
-
max_values: Array<
|
|
18
|
+
min_values: Array<Uint8Array>;
|
|
19
|
+
max_values: Array<Uint8Array>;
|
|
20
20
|
boundary_order: BoundaryOrder.BoundaryOrder;
|
|
21
21
|
null_counts?: Array<number | Int64>;
|
|
22
22
|
}
|
|
23
23
|
export class ColumnIndex {
|
|
24
24
|
public null_pages: Array<boolean>;
|
|
25
|
-
public min_values: Array<
|
|
26
|
-
public max_values: Array<
|
|
25
|
+
public min_values: Array<Uint8Array>;
|
|
26
|
+
public max_values: Array<Uint8Array>;
|
|
27
27
|
public boundary_order: BoundaryOrder.BoundaryOrder;
|
|
28
28
|
public null_counts?: Array<Int64>;
|
|
29
29
|
constructor(args: IColumnIndexArgs) {
|
|
@@ -60,7 +60,7 @@ export class ColumnIndex {
|
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
if (args != null && args.null_counts != null) {
|
|
63
|
-
this.null_counts = args.null_counts.map(
|
|
63
|
+
this.null_counts = args.null_counts.map(c => new Int64(+c));
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
public write(output: thrift.TProtocol): void {
|
|
@@ -77,7 +77,7 @@ export class ColumnIndex {
|
|
|
77
77
|
if (this.min_values != null) {
|
|
78
78
|
output.writeFieldBegin('min_values', thrift.Thrift.Type.LIST, 2);
|
|
79
79
|
output.writeListBegin(thrift.Thrift.Type.STRING, this.min_values.length);
|
|
80
|
-
this.min_values.forEach((value_2:
|
|
80
|
+
this.min_values.forEach((value_2: Uint8Array): void => {
|
|
81
81
|
output.writeBinary(value_2);
|
|
82
82
|
});
|
|
83
83
|
output.writeListEnd();
|
|
@@ -86,7 +86,7 @@ export class ColumnIndex {
|
|
|
86
86
|
if (this.max_values != null) {
|
|
87
87
|
output.writeFieldBegin('max_values', thrift.Thrift.Type.LIST, 3);
|
|
88
88
|
output.writeListBegin(thrift.Thrift.Type.STRING, this.max_values.length);
|
|
89
|
-
this.max_values.forEach((value_3:
|
|
89
|
+
this.max_values.forEach((value_3: Uint8Array): void => {
|
|
90
90
|
output.writeBinary(value_3);
|
|
91
91
|
});
|
|
92
92
|
output.writeListEnd();
|
|
@@ -138,11 +138,11 @@ export class ColumnIndex {
|
|
|
138
138
|
break;
|
|
139
139
|
case 2:
|
|
140
140
|
if (fieldType === thrift.Thrift.Type.LIST) {
|
|
141
|
-
const value_7: Array<
|
|
141
|
+
const value_7: Array<Uint8Array> = new Array<Uint8Array>();
|
|
142
142
|
const metadata_2: thrift.TList = input.readListBegin();
|
|
143
143
|
const size_2: number = metadata_2.size;
|
|
144
144
|
for (let i_2: number = 0; i_2 < size_2; i_2++) {
|
|
145
|
-
const value_8:
|
|
145
|
+
const value_8: Uint8Array = input.readBinary();
|
|
146
146
|
value_7.push(value_8);
|
|
147
147
|
}
|
|
148
148
|
input.readListEnd();
|
|
@@ -153,11 +153,11 @@ export class ColumnIndex {
|
|
|
153
153
|
break;
|
|
154
154
|
case 3:
|
|
155
155
|
if (fieldType === thrift.Thrift.Type.LIST) {
|
|
156
|
-
const value_9: Array<
|
|
156
|
+
const value_9: Array<Uint8Array> = new Array<Uint8Array>();
|
|
157
157
|
const metadata_3: thrift.TList = input.readListBegin();
|
|
158
158
|
const size_3: number = metadata_3.size;
|
|
159
159
|
for (let i_3: number = 0; i_3 < size_3; i_3++) {
|
|
160
|
-
const value_10:
|
|
160
|
+
const value_10: Uint8Array = input.readBinary();
|
|
161
161
|
value_9.push(value_10);
|
|
162
162
|
}
|
|
163
163
|
input.readListEnd();
|
|
@@ -10,14 +10,16 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import Int64 from '
|
|
14
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import {CompactInt64 as Int64} from '../utils/uint8-array-compact-protocol';
|
|
14
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
15
15
|
import * as CompressionCodec from './CompressionCodec';
|
|
16
16
|
import * as Encoding from './Encoding';
|
|
17
|
+
import * as GeospatialStatistics from './GeospatialStatistics';
|
|
17
18
|
import * as KeyValue from './KeyValue';
|
|
18
19
|
import * as PageEncodingStats from './PageEncodingStats';
|
|
19
20
|
import * as Statistics from './Statistics';
|
|
20
21
|
import * as Type from './Type';
|
|
22
|
+
import * as SizeStatistics from './SizeStatistics';
|
|
21
23
|
export interface IColumnMetaDataArgs {
|
|
22
24
|
type: Type.Type;
|
|
23
25
|
encodings: Array<Encoding.Encoding>;
|
|
@@ -32,6 +34,10 @@ export interface IColumnMetaDataArgs {
|
|
|
32
34
|
dictionary_page_offset?: number | Int64;
|
|
33
35
|
statistics?: Statistics.Statistics;
|
|
34
36
|
encoding_stats?: Array<PageEncodingStats.PageEncodingStats>;
|
|
37
|
+
bloom_filter_offset?: number | Int64;
|
|
38
|
+
bloom_filter_length?: number;
|
|
39
|
+
geospatial_statistics?: GeospatialStatistics.GeospatialStatistics;
|
|
40
|
+
size_statistics?: SizeStatistics.SizeStatistics;
|
|
35
41
|
}
|
|
36
42
|
export class ColumnMetaData {
|
|
37
43
|
public type: Type.Type;
|
|
@@ -47,6 +53,10 @@ export class ColumnMetaData {
|
|
|
47
53
|
public dictionary_page_offset?: Int64;
|
|
48
54
|
public statistics?: Statistics.Statistics;
|
|
49
55
|
public encoding_stats?: Array<PageEncodingStats.PageEncodingStats>;
|
|
56
|
+
public bloom_filter_offset?: Int64;
|
|
57
|
+
public bloom_filter_length?: number;
|
|
58
|
+
public geospatial_statistics?: GeospatialStatistics.GeospatialStatistics;
|
|
59
|
+
public size_statistics?: SizeStatistics.SizeStatistics;
|
|
50
60
|
constructor(args: IColumnMetaDataArgs) {
|
|
51
61
|
if (args != null && args.type != null) {
|
|
52
62
|
this.type = args.type;
|
|
@@ -151,6 +161,21 @@ export class ColumnMetaData {
|
|
|
151
161
|
if (args != null && args.encoding_stats != null) {
|
|
152
162
|
this.encoding_stats = args.encoding_stats;
|
|
153
163
|
}
|
|
164
|
+
if (args != null && args.bloom_filter_offset != null) {
|
|
165
|
+
this.bloom_filter_offset =
|
|
166
|
+
typeof args.bloom_filter_offset === 'number'
|
|
167
|
+
? new Int64(args.bloom_filter_offset)
|
|
168
|
+
: args.bloom_filter_offset;
|
|
169
|
+
}
|
|
170
|
+
if (args != null && args.bloom_filter_length != null) {
|
|
171
|
+
this.bloom_filter_length = args.bloom_filter_length;
|
|
172
|
+
}
|
|
173
|
+
if (args != null && args.geospatial_statistics != null) {
|
|
174
|
+
this.geospatial_statistics = args.geospatial_statistics;
|
|
175
|
+
}
|
|
176
|
+
if (args != null && args.size_statistics != null) {
|
|
177
|
+
this.size_statistics = args.size_statistics;
|
|
178
|
+
}
|
|
154
179
|
}
|
|
155
180
|
public write(output: thrift.TProtocol): void {
|
|
156
181
|
output.writeStructBegin('ColumnMetaData');
|
|
@@ -235,6 +260,26 @@ export class ColumnMetaData {
|
|
|
235
260
|
output.writeListEnd();
|
|
236
261
|
output.writeFieldEnd();
|
|
237
262
|
}
|
|
263
|
+
if (this.bloom_filter_offset != null) {
|
|
264
|
+
output.writeFieldBegin('bloom_filter_offset', thrift.Thrift.Type.I64, 14);
|
|
265
|
+
output.writeI64(this.bloom_filter_offset);
|
|
266
|
+
output.writeFieldEnd();
|
|
267
|
+
}
|
|
268
|
+
if (this.bloom_filter_length != null) {
|
|
269
|
+
output.writeFieldBegin('bloom_filter_length', thrift.Thrift.Type.I32, 15);
|
|
270
|
+
output.writeI32(this.bloom_filter_length);
|
|
271
|
+
output.writeFieldEnd();
|
|
272
|
+
}
|
|
273
|
+
if (this.geospatial_statistics != null) {
|
|
274
|
+
output.writeFieldBegin('geospatial_statistics', thrift.Thrift.Type.STRUCT, 17);
|
|
275
|
+
this.geospatial_statistics.write(output);
|
|
276
|
+
output.writeFieldEnd();
|
|
277
|
+
}
|
|
278
|
+
if (this.size_statistics != null) {
|
|
279
|
+
output.writeFieldBegin('size_statistics', thrift.Thrift.Type.STRUCT, 16);
|
|
280
|
+
this.size_statistics.write(output);
|
|
281
|
+
output.writeFieldEnd();
|
|
282
|
+
}
|
|
238
283
|
output.writeFieldStop();
|
|
239
284
|
output.writeStructEnd();
|
|
240
285
|
return;
|
|
@@ -384,6 +429,34 @@ export class ColumnMetaData {
|
|
|
384
429
|
input.skip(fieldType);
|
|
385
430
|
}
|
|
386
431
|
break;
|
|
432
|
+
case 14:
|
|
433
|
+
if (fieldType === thrift.Thrift.Type.I64) {
|
|
434
|
+
_args.bloom_filter_offset = input.readI64();
|
|
435
|
+
} else {
|
|
436
|
+
input.skip(fieldType);
|
|
437
|
+
}
|
|
438
|
+
break;
|
|
439
|
+
case 15:
|
|
440
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
441
|
+
_args.bloom_filter_length = input.readI32();
|
|
442
|
+
} else {
|
|
443
|
+
input.skip(fieldType);
|
|
444
|
+
}
|
|
445
|
+
break;
|
|
446
|
+
case 17:
|
|
447
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
448
|
+
_args.geospatial_statistics = GeospatialStatistics.GeospatialStatistics.read(input);
|
|
449
|
+
} else {
|
|
450
|
+
input.skip(fieldType);
|
|
451
|
+
}
|
|
452
|
+
break;
|
|
453
|
+
case 16:
|
|
454
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
455
|
+
_args.size_statistics = SizeStatistics.SizeStatistics.read(input);
|
|
456
|
+
} else {
|
|
457
|
+
input.skip(fieldType);
|
|
458
|
+
}
|
|
459
|
+
break;
|
|
387
460
|
default: {
|
|
388
461
|
input.skip(fieldType);
|
|
389
462
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
14
14
|
import * as TypeDefinedOrder from './TypeDefinedOrder';
|
|
15
15
|
export interface IColumnOrderArgs {
|
|
16
16
|
TYPE_ORDER?: TypeDefinedOrder.TypeDefinedOrder;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
14
14
|
import * as Encoding from './Encoding';
|
|
15
15
|
import * as Statistics from './Statistics';
|
|
16
16
|
export interface IDataPageHeaderArgs {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
14
14
|
import * as Encoding from './Encoding';
|
|
15
15
|
import * as Statistics from './Statistics';
|
|
16
16
|
export interface IDataPageHeaderV2Args {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
14
14
|
export interface IDateTypeArgs {}
|
|
15
15
|
export class DateType {
|
|
16
16
|
constructor() {}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
14
14
|
export interface IDecimalTypeArgs {
|
|
15
15
|
scale: number;
|
|
16
16
|
precision: number;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
11
11
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
12
12
|
*/
|
|
13
|
-
import * as thrift from 'thrift';
|
|
13
|
+
import * as thrift from '../utils/thrift-runtime';
|
|
14
14
|
import * as Encoding from './Encoding';
|
|
15
15
|
export interface IDictionaryPageHeaderArgs {
|
|
16
16
|
num_values: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// loaders.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
export enum EdgeInterpolationAlgorithm {
|
|
8
|
+
SPHERICAL = 0,
|
|
9
|
+
VINCENTY = 1,
|
|
10
|
+
THOMAS = 2,
|
|
11
|
+
ANDOYER = 3,
|
|
12
|
+
KARNEY = 4
|
|
13
|
+
}
|