@loaders.gl/parquet 4.2.0-alpha.4 → 4.2.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/index.cjs +269 -616
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js +1 -2
- package/dist/lib/arrow/convert-row-group-to-columns.js +8 -6
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts +3 -3
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js +71 -82
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js +65 -35
- package/dist/lib/constants.js +14 -1
- package/dist/lib/parsers/get-parquet-schema.d.ts +1 -1
- package/dist/lib/parsers/get-parquet-schema.d.ts.map +1 -1
- package/dist/lib/parsers/get-parquet-schema.js +9 -7
- package/dist/lib/parsers/parse-geoparquet.d.ts +1 -1
- package/dist/lib/parsers/parse-geoparquet.d.ts.map +1 -1
- package/dist/lib/parsers/parse-geoparquet.js +47 -45
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js +36 -25
- package/dist/lib/parsers/parse-parquet.d.ts +1 -1
- package/dist/lib/parsers/parse-parquet.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet.js +62 -50
- package/dist/lib/wasm/encode-parquet-wasm.d.ts +1 -1
- package/dist/lib/wasm/encode-parquet-wasm.d.ts.map +1 -1
- package/dist/lib/wasm/encode-parquet-wasm.js +49 -12
- package/dist/lib/wasm/load-wasm.js +13 -10
- package/dist/lib/wasm/parse-parquet-wasm.d.ts +1 -1
- package/dist/lib/wasm/parse-parquet-wasm.d.ts.map +1 -1
- package/dist/lib/wasm/parse-parquet-wasm.js +19 -15
- package/dist/parquet-loader.d.ts +1 -1
- package/dist/parquet-loader.d.ts.map +1 -1
- package/dist/parquet-loader.js +77 -64
- package/dist/parquet-wasm-loader.js +25 -28
- package/dist/parquet-wasm-writer.js +19 -23
- package/dist/parquet-writer.js +16 -12
- package/dist/parquetjs/codecs/declare.d.ts +1 -1
- package/dist/parquetjs/codecs/declare.d.ts.map +1 -1
- package/dist/parquetjs/codecs/declare.js +0 -1
- package/dist/parquetjs/codecs/dictionary.js +4 -8
- package/dist/parquetjs/codecs/index.d.ts +3 -3
- package/dist/parquetjs/codecs/index.d.ts.map +1 -1
- package/dist/parquetjs/codecs/index.js +20 -17
- package/dist/parquetjs/codecs/plain.d.ts +2 -2
- package/dist/parquetjs/codecs/plain.d.ts.map +1 -1
- package/dist/parquetjs/codecs/plain.js +166 -162
- package/dist/parquetjs/codecs/rle.d.ts +2 -2
- package/dist/parquetjs/codecs/rle.d.ts.map +1 -1
- package/dist/parquetjs/codecs/rle.js +124 -105
- package/dist/parquetjs/compression.d.ts +1 -1
- package/dist/parquetjs/compression.d.ts.map +1 -1
- package/dist/parquetjs/compression.js +157 -43
- package/dist/parquetjs/encoder/parquet-encoder.d.ts +3 -3
- package/dist/parquetjs/encoder/parquet-encoder.d.ts.map +1 -1
- package/dist/parquetjs/encoder/parquet-encoder.js +406 -275
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js +12 -7
- package/dist/parquetjs/parquet-thrift/BsonType.js +31 -27
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js +175 -166
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js +178 -166
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts +6 -6
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js +359 -333
- 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 +73 -68
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js +17 -12
- package/dist/parquetjs/parquet-thrift/ConvertedType.js +31 -26
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js +136 -124
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js +198 -181
- package/dist/parquetjs/parquet-thrift/DateType.js +31 -27
- package/dist/parquetjs/parquet-thrift/DecimalType.js +76 -69
- 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 +93 -86
- package/dist/parquetjs/parquet-thrift/Encoding.js +17 -12
- package/dist/parquetjs/parquet-thrift/EnumType.js +31 -27
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js +12 -7
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts +4 -4
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js +217 -205
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js +31 -27
- package/dist/parquetjs/parquet-thrift/IntType.js +76 -69
- package/dist/parquetjs/parquet-thrift/JsonType.js +31 -27
- package/dist/parquetjs/parquet-thrift/KeyValue.js +73 -67
- package/dist/parquetjs/parquet-thrift/ListType.js +31 -27
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts +13 -13
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js +325 -344
- package/dist/parquetjs/parquet-thrift/MapType.js +31 -27
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js +31 -27
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js +31 -27
- package/dist/parquetjs/parquet-thrift/NullType.js +31 -27
- 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 +66 -60
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js +98 -88
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts +5 -5
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js +185 -175
- package/dist/parquetjs/parquet-thrift/PageLocation.js +108 -96
- package/dist/parquetjs/parquet-thrift/PageType.js +13 -8
- 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 +145 -133
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts +4 -4
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js +211 -205
- package/dist/parquetjs/parquet-thrift/SortingColumn.js +98 -88
- package/dist/parquetjs/parquet-thrift/Statistics.js +143 -137
- package/dist/parquetjs/parquet-thrift/StringType.js +31 -27
- 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 +76 -69
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js +94 -91
- 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 +76 -69
- package/dist/parquetjs/parquet-thrift/Type.js +17 -12
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js +31 -27
- package/dist/parquetjs/parquet-thrift/UUIDType.js +31 -27
- package/dist/parquetjs/parquet-thrift/index.d.ts +44 -44
- package/dist/parquetjs/parquet-thrift/index.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/index.js +6 -1
- package/dist/parquetjs/parser/decoders.d.ts +3 -3
- package/dist/parquetjs/parser/decoders.d.ts.map +1 -1
- package/dist/parquetjs/parser/decoders.js +306 -242
- package/dist/parquetjs/parser/parquet-reader.d.ts +3 -3
- package/dist/parquetjs/parser/parquet-reader.d.ts.map +1 -1
- package/dist/parquetjs/parser/parquet-reader.js +179 -157
- package/dist/parquetjs/schema/declare.d.ts +1 -1
- package/dist/parquetjs/schema/declare.d.ts.map +1 -1
- package/dist/parquetjs/schema/declare.js +6 -9
- package/dist/parquetjs/schema/schema.d.ts +1 -1
- package/dist/parquetjs/schema/schema.d.ts.map +1 -1
- package/dist/parquetjs/schema/schema.js +139 -120
- package/dist/parquetjs/schema/shred.d.ts +2 -2
- package/dist/parquetjs/schema/shred.d.ts.map +1 -1
- package/dist/parquetjs/schema/shred.js +301 -204
- package/dist/parquetjs/schema/types.d.ts +1 -1
- package/dist/parquetjs/schema/types.d.ts.map +1 -1
- package/dist/parquetjs/schema/types.js +328 -314
- package/dist/parquetjs/utils/file-utils.js +24 -23
- package/dist/parquetjs/utils/read-utils.d.ts +1 -1
- package/dist/parquetjs/utils/read-utils.d.ts.map +1 -1
- package/dist/parquetjs/utils/read-utils.js +79 -69
- package/dist/polyfills/buffer/buffer-polyfill.browser.js +8 -3
- package/dist/polyfills/buffer/buffer-polyfill.node.js +13 -8
- package/dist/polyfills/buffer/buffer.js +1750 -1367
- package/dist/polyfills/buffer/index.d.ts +3 -3
- package/dist/polyfills/buffer/index.d.ts.map +1 -1
- package/dist/polyfills/buffer/index.js +5 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js +2 -1
- package/dist/polyfills/util.js +4 -1
- package/dist/workers/parquet-worker.js +3 -1
- package/package.json +15 -13
- package/src/index.ts +1 -1
- package/src/lib/parsers/parse-parquet-to-columns.ts +1 -1
- package/src/lib/parsers/parse-parquet.ts +1 -1
- package/src/parquetjs/encoder/parquet-encoder.ts +2 -2
- package/src/parquetjs/parser/decoders.ts +2 -2
- package/src/parquetjs/parser/parquet-reader.ts +1 -1
- package/src/parquetjs/schema/schema.ts +1 -1
- package/src/parquetjs/utils/read-utils.ts +2 -2
- package/dist/index.js.map +0 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js.map +0 -1
- package/dist/lib/arrow/convert-row-group-to-columns.js.map +0 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js.map +0 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js.map +0 -1
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/parsers/get-parquet-schema.js.map +0 -1
- package/dist/lib/parsers/parse-geoparquet.js.map +0 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js.map +0 -1
- package/dist/lib/parsers/parse-parquet.js.map +0 -1
- package/dist/lib/wasm/encode-parquet-wasm.js.map +0 -1
- package/dist/lib/wasm/load-wasm.js.map +0 -1
- package/dist/lib/wasm/parse-parquet-wasm.js.map +0 -1
- package/dist/lib/wip/convert-schema-deep.java.disabled +0 -910
- package/dist/lib/wip/convert-schema-deep.rs.disabled +0 -976
- package/dist/parquet-loader.js.map +0 -1
- package/dist/parquet-wasm-loader.js.map +0 -1
- package/dist/parquet-wasm-writer.js.map +0 -1
- package/dist/parquet-writer.js.map +0 -1
- package/dist/parquetjs/LICENSE +0 -20
- package/dist/parquetjs/codecs/declare.js.map +0 -1
- package/dist/parquetjs/codecs/dictionary.js.map +0 -1
- package/dist/parquetjs/codecs/index.js.map +0 -1
- package/dist/parquetjs/codecs/plain.js.map +0 -1
- package/dist/parquetjs/codecs/rle.js.map +0 -1
- package/dist/parquetjs/compression.js.map +0 -1
- package/dist/parquetjs/encoder/parquet-encoder.js.map +0 -1
- package/dist/parquetjs/modules.d.ts +0 -21
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/BsonType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ConvertedType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DateType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DecimalType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Encoding.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/EnumType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/IntType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/JsonType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/KeyValue.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ListType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MapType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/NullType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageLocation.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/SortingColumn.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Statistics.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/StringType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Type.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/UUIDType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/index.js.map +0 -1
- package/dist/parquetjs/parser/decoders.js.map +0 -1
- package/dist/parquetjs/parser/parquet-reader.js.map +0 -1
- package/dist/parquetjs/schema/declare.js.map +0 -1
- package/dist/parquetjs/schema/schema.js.map +0 -1
- package/dist/parquetjs/schema/shred.js.map +0 -1
- package/dist/parquetjs/schema/types.js.map +0 -1
- package/dist/parquetjs/utils/file-utils.js.map +0 -1
- package/dist/parquetjs/utils/read-utils.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.browser.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.node.js.map +0 -1
- package/dist/polyfills/buffer/buffer.js.map +0 -1
- package/dist/polyfills/buffer/index.js.map +0 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js.map +0 -1
- package/dist/polyfills/util.js.map +0 -1
- package/dist/workers/parquet-worker.js.map +0 -1
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/*
|
|
4
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
5
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
6
|
+
*/
|
|
7
|
+
export var BoundaryOrder;
|
|
8
|
+
(function (BoundaryOrder) {
|
|
9
|
+
BoundaryOrder[BoundaryOrder["UNORDERED"] = 0] = "UNORDERED";
|
|
10
|
+
BoundaryOrder[BoundaryOrder["ASCENDING"] = 1] = "ASCENDING";
|
|
11
|
+
BoundaryOrder[BoundaryOrder["DESCENDING"] = 2] = "DESCENDING";
|
|
12
|
+
})(BoundaryOrder || (BoundaryOrder = {}));
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/*
|
|
4
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
5
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
6
|
+
*/
|
|
1
7
|
import * as thrift from 'thrift';
|
|
2
8
|
export class BsonType {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
9
|
+
constructor() { }
|
|
10
|
+
write(output) {
|
|
11
|
+
output.writeStructBegin('BsonType');
|
|
12
|
+
output.writeFieldStop();
|
|
13
|
+
output.writeStructEnd();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
static read(input) {
|
|
17
|
+
input.readStructBegin();
|
|
18
|
+
while (true) {
|
|
19
|
+
const ret = input.readFieldBegin();
|
|
20
|
+
const fieldType = ret.ftype;
|
|
21
|
+
const fieldId = ret.fid;
|
|
22
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
switch (fieldId) {
|
|
26
|
+
default: {
|
|
27
|
+
input.skip(fieldType);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
input.readFieldEnd();
|
|
31
|
+
}
|
|
32
|
+
input.readStructEnd();
|
|
33
|
+
return new BsonType();
|
|
26
34
|
}
|
|
27
|
-
input.readStructEnd();
|
|
28
|
-
return new BsonType();
|
|
29
|
-
}
|
|
30
35
|
}
|
|
31
|
-
//# sourceMappingURL=BsonType.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Int64 from 'node-int64';
|
|
2
2
|
import * as thrift from 'thrift';
|
|
3
|
-
import * as ColumnMetaData from
|
|
3
|
+
import * as ColumnMetaData from "./ColumnMetaData.js";
|
|
4
4
|
export interface IColumnChunkArgs {
|
|
5
5
|
file_path?: string;
|
|
6
6
|
file_offset: number | Int64;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnChunk.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/ColumnChunk.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"ColumnChunk.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/ColumnChunk.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,cAAc,4BAAyB;AACnD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B,SAAS,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AACD,qBAAa,WAAW;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,KAAK,CAAC;IACnB,SAAS,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC;IAC1C,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;gBACxB,IAAI,EAAE,gBAAgB;IAwC3B,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAyC9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,WAAW;CAoFzD"}
|
|
@@ -1,172 +1,181 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/*
|
|
4
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
5
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
6
|
+
*/
|
|
1
7
|
import Int64 from 'node-int64';
|
|
2
8
|
import * as thrift from 'thrift';
|
|
3
9
|
import * as ColumnMetaData from "./ColumnMetaData.js";
|
|
4
10
|
export class ColumnChunk {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
constructor(args) {
|
|
12
|
+
if (args != null && args.file_path != null) {
|
|
13
|
+
this.file_path = args.file_path;
|
|
14
|
+
}
|
|
15
|
+
if (args != null && args.file_offset != null) {
|
|
16
|
+
if (typeof args.file_offset === 'number') {
|
|
17
|
+
this.file_offset = new Int64(args.file_offset);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
this.file_offset = args.file_offset;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[file_offset] is unset!');
|
|
25
|
+
}
|
|
26
|
+
if (args != null && args.meta_data != null) {
|
|
27
|
+
this.meta_data = args.meta_data;
|
|
28
|
+
}
|
|
29
|
+
if (args != null && args.offset_index_offset != null) {
|
|
30
|
+
if (typeof args.offset_index_offset === 'number') {
|
|
31
|
+
this.offset_index_offset = new Int64(args.offset_index_offset);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.offset_index_offset = args.offset_index_offset;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (args != null && args.offset_index_length != null) {
|
|
38
|
+
this.offset_index_length = args.offset_index_length;
|
|
39
|
+
}
|
|
40
|
+
if (args != null && args.column_index_offset != null) {
|
|
41
|
+
if (typeof args.column_index_offset === 'number') {
|
|
42
|
+
this.column_index_offset = new Int64(args.column_index_offset);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this.column_index_offset = args.column_index_offset;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (args != null && args.column_index_length != null) {
|
|
49
|
+
this.column_index_length = args.column_index_length;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
write(output) {
|
|
53
|
+
output.writeStructBegin('ColumnChunk');
|
|
54
|
+
if (this.file_path != null) {
|
|
55
|
+
output.writeFieldBegin('file_path', thrift.Thrift.Type.STRING, 1);
|
|
56
|
+
output.writeString(this.file_path);
|
|
57
|
+
output.writeFieldEnd();
|
|
58
|
+
}
|
|
59
|
+
if (this.file_offset != null) {
|
|
60
|
+
output.writeFieldBegin('file_offset', thrift.Thrift.Type.I64, 2);
|
|
61
|
+
output.writeI64(this.file_offset);
|
|
62
|
+
output.writeFieldEnd();
|
|
63
|
+
}
|
|
64
|
+
if (this.meta_data != null) {
|
|
65
|
+
output.writeFieldBegin('meta_data', thrift.Thrift.Type.STRUCT, 3);
|
|
66
|
+
this.meta_data.write(output);
|
|
67
|
+
output.writeFieldEnd();
|
|
68
|
+
}
|
|
69
|
+
if (this.offset_index_offset != null) {
|
|
70
|
+
output.writeFieldBegin('offset_index_offset', thrift.Thrift.Type.I64, 4);
|
|
71
|
+
output.writeI64(this.offset_index_offset);
|
|
72
|
+
output.writeFieldEnd();
|
|
73
|
+
}
|
|
74
|
+
if (this.offset_index_length != null) {
|
|
75
|
+
output.writeFieldBegin('offset_index_length', thrift.Thrift.Type.I32, 5);
|
|
76
|
+
output.writeI32(this.offset_index_length);
|
|
77
|
+
output.writeFieldEnd();
|
|
78
|
+
}
|
|
79
|
+
if (this.column_index_offset != null) {
|
|
80
|
+
output.writeFieldBegin('column_index_offset', thrift.Thrift.Type.I64, 6);
|
|
81
|
+
output.writeI64(this.column_index_offset);
|
|
82
|
+
output.writeFieldEnd();
|
|
83
|
+
}
|
|
84
|
+
if (this.column_index_length != null) {
|
|
85
|
+
output.writeFieldBegin('column_index_length', thrift.Thrift.Type.I32, 7);
|
|
86
|
+
output.writeI32(this.column_index_length);
|
|
87
|
+
output.writeFieldEnd();
|
|
88
|
+
}
|
|
89
|
+
output.writeFieldStop();
|
|
90
|
+
output.writeStructEnd();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
static read(input) {
|
|
94
|
+
input.readStructBegin();
|
|
95
|
+
let _args = {};
|
|
96
|
+
while (true) {
|
|
97
|
+
const ret = input.readFieldBegin();
|
|
98
|
+
const fieldType = ret.ftype;
|
|
99
|
+
const fieldId = ret.fid;
|
|
100
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
switch (fieldId) {
|
|
104
|
+
case 1:
|
|
105
|
+
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
106
|
+
const value_1 = input.readString();
|
|
107
|
+
_args.file_path = value_1;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
input.skip(fieldType);
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
case 2:
|
|
114
|
+
if (fieldType === thrift.Thrift.Type.I64) {
|
|
115
|
+
const value_2 = input.readI64();
|
|
116
|
+
_args.file_offset = value_2;
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
input.skip(fieldType);
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
122
|
+
case 3:
|
|
123
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
124
|
+
const value_3 = ColumnMetaData.ColumnMetaData.read(input);
|
|
125
|
+
_args.meta_data = value_3;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
input.skip(fieldType);
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
case 4:
|
|
132
|
+
if (fieldType === thrift.Thrift.Type.I64) {
|
|
133
|
+
const value_4 = input.readI64();
|
|
134
|
+
_args.offset_index_offset = value_4;
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
input.skip(fieldType);
|
|
138
|
+
}
|
|
139
|
+
break;
|
|
140
|
+
case 5:
|
|
141
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
142
|
+
const value_5 = input.readI32();
|
|
143
|
+
_args.offset_index_length = value_5;
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
input.skip(fieldType);
|
|
147
|
+
}
|
|
148
|
+
break;
|
|
149
|
+
case 6:
|
|
150
|
+
if (fieldType === thrift.Thrift.Type.I64) {
|
|
151
|
+
const value_6 = input.readI64();
|
|
152
|
+
_args.column_index_offset = value_6;
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
input.skip(fieldType);
|
|
156
|
+
}
|
|
157
|
+
break;
|
|
158
|
+
case 7:
|
|
159
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
160
|
+
const value_7 = input.readI32();
|
|
161
|
+
_args.column_index_length = value_7;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
input.skip(fieldType);
|
|
165
|
+
}
|
|
166
|
+
break;
|
|
167
|
+
default: {
|
|
168
|
+
input.skip(fieldType);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
input.readFieldEnd();
|
|
172
|
+
}
|
|
173
|
+
input.readStructEnd();
|
|
174
|
+
if (_args.file_offset !== undefined) {
|
|
175
|
+
return new ColumnChunk(_args);
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read ColumnChunk from input');
|
|
179
|
+
}
|
|
15
180
|
}
|
|
16
|
-
if (args != null && args.file_offset != null) {
|
|
17
|
-
if (typeof args.file_offset === 'number') {
|
|
18
|
-
this.file_offset = new Int64(args.file_offset);
|
|
19
|
-
} else {
|
|
20
|
-
this.file_offset = args.file_offset;
|
|
21
|
-
}
|
|
22
|
-
} else {
|
|
23
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[file_offset] is unset!');
|
|
24
|
-
}
|
|
25
|
-
if (args != null && args.meta_data != null) {
|
|
26
|
-
this.meta_data = args.meta_data;
|
|
27
|
-
}
|
|
28
|
-
if (args != null && args.offset_index_offset != null) {
|
|
29
|
-
if (typeof args.offset_index_offset === 'number') {
|
|
30
|
-
this.offset_index_offset = new Int64(args.offset_index_offset);
|
|
31
|
-
} else {
|
|
32
|
-
this.offset_index_offset = args.offset_index_offset;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (args != null && args.offset_index_length != null) {
|
|
36
|
-
this.offset_index_length = args.offset_index_length;
|
|
37
|
-
}
|
|
38
|
-
if (args != null && args.column_index_offset != null) {
|
|
39
|
-
if (typeof args.column_index_offset === 'number') {
|
|
40
|
-
this.column_index_offset = new Int64(args.column_index_offset);
|
|
41
|
-
} else {
|
|
42
|
-
this.column_index_offset = args.column_index_offset;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (args != null && args.column_index_length != null) {
|
|
46
|
-
this.column_index_length = args.column_index_length;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
write(output) {
|
|
50
|
-
output.writeStructBegin('ColumnChunk');
|
|
51
|
-
if (this.file_path != null) {
|
|
52
|
-
output.writeFieldBegin('file_path', thrift.Thrift.Type.STRING, 1);
|
|
53
|
-
output.writeString(this.file_path);
|
|
54
|
-
output.writeFieldEnd();
|
|
55
|
-
}
|
|
56
|
-
if (this.file_offset != null) {
|
|
57
|
-
output.writeFieldBegin('file_offset', thrift.Thrift.Type.I64, 2);
|
|
58
|
-
output.writeI64(this.file_offset);
|
|
59
|
-
output.writeFieldEnd();
|
|
60
|
-
}
|
|
61
|
-
if (this.meta_data != null) {
|
|
62
|
-
output.writeFieldBegin('meta_data', thrift.Thrift.Type.STRUCT, 3);
|
|
63
|
-
this.meta_data.write(output);
|
|
64
|
-
output.writeFieldEnd();
|
|
65
|
-
}
|
|
66
|
-
if (this.offset_index_offset != null) {
|
|
67
|
-
output.writeFieldBegin('offset_index_offset', thrift.Thrift.Type.I64, 4);
|
|
68
|
-
output.writeI64(this.offset_index_offset);
|
|
69
|
-
output.writeFieldEnd();
|
|
70
|
-
}
|
|
71
|
-
if (this.offset_index_length != null) {
|
|
72
|
-
output.writeFieldBegin('offset_index_length', thrift.Thrift.Type.I32, 5);
|
|
73
|
-
output.writeI32(this.offset_index_length);
|
|
74
|
-
output.writeFieldEnd();
|
|
75
|
-
}
|
|
76
|
-
if (this.column_index_offset != null) {
|
|
77
|
-
output.writeFieldBegin('column_index_offset', thrift.Thrift.Type.I64, 6);
|
|
78
|
-
output.writeI64(this.column_index_offset);
|
|
79
|
-
output.writeFieldEnd();
|
|
80
|
-
}
|
|
81
|
-
if (this.column_index_length != null) {
|
|
82
|
-
output.writeFieldBegin('column_index_length', thrift.Thrift.Type.I32, 7);
|
|
83
|
-
output.writeI32(this.column_index_length);
|
|
84
|
-
output.writeFieldEnd();
|
|
85
|
-
}
|
|
86
|
-
output.writeFieldStop();
|
|
87
|
-
output.writeStructEnd();
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
static read(input) {
|
|
91
|
-
input.readStructBegin();
|
|
92
|
-
let _args = {};
|
|
93
|
-
while (true) {
|
|
94
|
-
const ret = input.readFieldBegin();
|
|
95
|
-
const fieldType = ret.ftype;
|
|
96
|
-
const fieldId = ret.fid;
|
|
97
|
-
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
switch (fieldId) {
|
|
101
|
-
case 1:
|
|
102
|
-
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
103
|
-
const value_1 = input.readString();
|
|
104
|
-
_args.file_path = value_1;
|
|
105
|
-
} else {
|
|
106
|
-
input.skip(fieldType);
|
|
107
|
-
}
|
|
108
|
-
break;
|
|
109
|
-
case 2:
|
|
110
|
-
if (fieldType === thrift.Thrift.Type.I64) {
|
|
111
|
-
const value_2 = input.readI64();
|
|
112
|
-
_args.file_offset = value_2;
|
|
113
|
-
} else {
|
|
114
|
-
input.skip(fieldType);
|
|
115
|
-
}
|
|
116
|
-
break;
|
|
117
|
-
case 3:
|
|
118
|
-
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
119
|
-
const value_3 = ColumnMetaData.ColumnMetaData.read(input);
|
|
120
|
-
_args.meta_data = value_3;
|
|
121
|
-
} else {
|
|
122
|
-
input.skip(fieldType);
|
|
123
|
-
}
|
|
124
|
-
break;
|
|
125
|
-
case 4:
|
|
126
|
-
if (fieldType === thrift.Thrift.Type.I64) {
|
|
127
|
-
const value_4 = input.readI64();
|
|
128
|
-
_args.offset_index_offset = value_4;
|
|
129
|
-
} else {
|
|
130
|
-
input.skip(fieldType);
|
|
131
|
-
}
|
|
132
|
-
break;
|
|
133
|
-
case 5:
|
|
134
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
135
|
-
const value_5 = input.readI32();
|
|
136
|
-
_args.offset_index_length = value_5;
|
|
137
|
-
} else {
|
|
138
|
-
input.skip(fieldType);
|
|
139
|
-
}
|
|
140
|
-
break;
|
|
141
|
-
case 6:
|
|
142
|
-
if (fieldType === thrift.Thrift.Type.I64) {
|
|
143
|
-
const value_6 = input.readI64();
|
|
144
|
-
_args.column_index_offset = value_6;
|
|
145
|
-
} else {
|
|
146
|
-
input.skip(fieldType);
|
|
147
|
-
}
|
|
148
|
-
break;
|
|
149
|
-
case 7:
|
|
150
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
151
|
-
const value_7 = input.readI32();
|
|
152
|
-
_args.column_index_length = value_7;
|
|
153
|
-
} else {
|
|
154
|
-
input.skip(fieldType);
|
|
155
|
-
}
|
|
156
|
-
break;
|
|
157
|
-
default:
|
|
158
|
-
{
|
|
159
|
-
input.skip(fieldType);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
input.readFieldEnd();
|
|
163
|
-
}
|
|
164
|
-
input.readStructEnd();
|
|
165
|
-
if (_args.file_offset !== undefined) {
|
|
166
|
-
return new ColumnChunk(_args);
|
|
167
|
-
} else {
|
|
168
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read ColumnChunk from input');
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
181
|
}
|
|
172
|
-
//# sourceMappingURL=ColumnChunk.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import Int64 from 'node-int64';
|
|
3
3
|
import * as thrift from 'thrift';
|
|
4
|
-
import * as BoundaryOrder from
|
|
4
|
+
import * as BoundaryOrder from "./BoundaryOrder.js";
|
|
5
5
|
export interface IColumnIndexArgs {
|
|
6
6
|
null_pages: Array<boolean>;
|
|
7
7
|
min_values: Array<Buffer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnIndex.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/ColumnIndex.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"ColumnIndex.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/ColumnIndex.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,aAAa,2BAAwB;AACjD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,cAAc,EAAE,aAAa,CAAC,aAAa,CAAC;IAC5C,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;CACrC;AACD,qBAAa,WAAW;IACf,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,cAAc,EAAE,aAAa,CAAC,aAAa,CAAC;IAC5C,WAAW,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;gBACtB,IAAI,EAAE,gBAAgB;IAqC3B,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WA+C9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,WAAW;CAoGzD"}
|