@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,144 +1,150 @@
|
|
|
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
|
export class Statistics {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
constructor(args) {
|
|
11
|
+
if (args != null && args.max != null) {
|
|
12
|
+
this.max = args.max;
|
|
13
|
+
}
|
|
14
|
+
if (args != null && args.min != null) {
|
|
15
|
+
this.min = args.min;
|
|
16
|
+
}
|
|
17
|
+
if (args != null && args.null_count != null) {
|
|
18
|
+
if (typeof args.null_count === 'number') {
|
|
19
|
+
this.null_count = new Int64(args.null_count);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
this.null_count = args.null_count;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (args != null && args.distinct_count != null) {
|
|
26
|
+
if (typeof args.distinct_count === 'number') {
|
|
27
|
+
this.distinct_count = new Int64(args.distinct_count);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.distinct_count = args.distinct_count;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (args != null && args.max_value != null) {
|
|
34
|
+
this.max_value = args.max_value;
|
|
35
|
+
}
|
|
36
|
+
if (args != null && args.min_value != null) {
|
|
37
|
+
this.min_value = args.min_value;
|
|
38
|
+
}
|
|
13
39
|
}
|
|
14
|
-
|
|
15
|
-
|
|
40
|
+
write(output) {
|
|
41
|
+
output.writeStructBegin('Statistics');
|
|
42
|
+
if (this.max != null) {
|
|
43
|
+
output.writeFieldBegin('max', thrift.Thrift.Type.STRING, 1);
|
|
44
|
+
output.writeBinary(this.max);
|
|
45
|
+
output.writeFieldEnd();
|
|
46
|
+
}
|
|
47
|
+
if (this.min != null) {
|
|
48
|
+
output.writeFieldBegin('min', thrift.Thrift.Type.STRING, 2);
|
|
49
|
+
output.writeBinary(this.min);
|
|
50
|
+
output.writeFieldEnd();
|
|
51
|
+
}
|
|
52
|
+
if (this.null_count != null) {
|
|
53
|
+
output.writeFieldBegin('null_count', thrift.Thrift.Type.I64, 3);
|
|
54
|
+
output.writeI64(this.null_count);
|
|
55
|
+
output.writeFieldEnd();
|
|
56
|
+
}
|
|
57
|
+
if (this.distinct_count != null) {
|
|
58
|
+
output.writeFieldBegin('distinct_count', thrift.Thrift.Type.I64, 4);
|
|
59
|
+
output.writeI64(this.distinct_count);
|
|
60
|
+
output.writeFieldEnd();
|
|
61
|
+
}
|
|
62
|
+
if (this.max_value != null) {
|
|
63
|
+
output.writeFieldBegin('max_value', thrift.Thrift.Type.STRING, 5);
|
|
64
|
+
output.writeBinary(this.max_value);
|
|
65
|
+
output.writeFieldEnd();
|
|
66
|
+
}
|
|
67
|
+
if (this.min_value != null) {
|
|
68
|
+
output.writeFieldBegin('min_value', thrift.Thrift.Type.STRING, 6);
|
|
69
|
+
output.writeBinary(this.min_value);
|
|
70
|
+
output.writeFieldEnd();
|
|
71
|
+
}
|
|
72
|
+
output.writeFieldStop();
|
|
73
|
+
output.writeStructEnd();
|
|
74
|
+
return;
|
|
16
75
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
76
|
+
static read(input) {
|
|
77
|
+
input.readStructBegin();
|
|
78
|
+
let _args = {};
|
|
79
|
+
while (true) {
|
|
80
|
+
const ret = input.readFieldBegin();
|
|
81
|
+
const fieldType = ret.ftype;
|
|
82
|
+
const fieldId = ret.fid;
|
|
83
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
switch (fieldId) {
|
|
87
|
+
case 1:
|
|
88
|
+
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
89
|
+
const value_1 = input.readBinary();
|
|
90
|
+
_args.max = value_1;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
input.skip(fieldType);
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
case 2:
|
|
97
|
+
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
98
|
+
const value_2 = input.readBinary();
|
|
99
|
+
_args.min = value_2;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
input.skip(fieldType);
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
case 3:
|
|
106
|
+
if (fieldType === thrift.Thrift.Type.I64) {
|
|
107
|
+
const value_3 = input.readI64();
|
|
108
|
+
_args.null_count = value_3;
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
input.skip(fieldType);
|
|
112
|
+
}
|
|
113
|
+
break;
|
|
114
|
+
case 4:
|
|
115
|
+
if (fieldType === thrift.Thrift.Type.I64) {
|
|
116
|
+
const value_4 = input.readI64();
|
|
117
|
+
_args.distinct_count = value_4;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
input.skip(fieldType);
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
case 5:
|
|
124
|
+
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
125
|
+
const value_5 = input.readBinary();
|
|
126
|
+
_args.max_value = value_5;
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
input.skip(fieldType);
|
|
130
|
+
}
|
|
131
|
+
break;
|
|
132
|
+
case 6:
|
|
133
|
+
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
134
|
+
const value_6 = input.readBinary();
|
|
135
|
+
_args.min_value = value_6;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
input.skip(fieldType);
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
default: {
|
|
142
|
+
input.skip(fieldType);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
input.readFieldEnd();
|
|
146
|
+
}
|
|
147
|
+
input.readStructEnd();
|
|
148
|
+
return new Statistics(_args);
|
|
23
149
|
}
|
|
24
|
-
if (args != null && args.distinct_count != null) {
|
|
25
|
-
if (typeof args.distinct_count === 'number') {
|
|
26
|
-
this.distinct_count = new Int64(args.distinct_count);
|
|
27
|
-
} else {
|
|
28
|
-
this.distinct_count = args.distinct_count;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
if (args != null && args.max_value != null) {
|
|
32
|
-
this.max_value = args.max_value;
|
|
33
|
-
}
|
|
34
|
-
if (args != null && args.min_value != null) {
|
|
35
|
-
this.min_value = args.min_value;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
write(output) {
|
|
39
|
-
output.writeStructBegin('Statistics');
|
|
40
|
-
if (this.max != null) {
|
|
41
|
-
output.writeFieldBegin('max', thrift.Thrift.Type.STRING, 1);
|
|
42
|
-
output.writeBinary(this.max);
|
|
43
|
-
output.writeFieldEnd();
|
|
44
|
-
}
|
|
45
|
-
if (this.min != null) {
|
|
46
|
-
output.writeFieldBegin('min', thrift.Thrift.Type.STRING, 2);
|
|
47
|
-
output.writeBinary(this.min);
|
|
48
|
-
output.writeFieldEnd();
|
|
49
|
-
}
|
|
50
|
-
if (this.null_count != null) {
|
|
51
|
-
output.writeFieldBegin('null_count', thrift.Thrift.Type.I64, 3);
|
|
52
|
-
output.writeI64(this.null_count);
|
|
53
|
-
output.writeFieldEnd();
|
|
54
|
-
}
|
|
55
|
-
if (this.distinct_count != null) {
|
|
56
|
-
output.writeFieldBegin('distinct_count', thrift.Thrift.Type.I64, 4);
|
|
57
|
-
output.writeI64(this.distinct_count);
|
|
58
|
-
output.writeFieldEnd();
|
|
59
|
-
}
|
|
60
|
-
if (this.max_value != null) {
|
|
61
|
-
output.writeFieldBegin('max_value', thrift.Thrift.Type.STRING, 5);
|
|
62
|
-
output.writeBinary(this.max_value);
|
|
63
|
-
output.writeFieldEnd();
|
|
64
|
-
}
|
|
65
|
-
if (this.min_value != null) {
|
|
66
|
-
output.writeFieldBegin('min_value', thrift.Thrift.Type.STRING, 6);
|
|
67
|
-
output.writeBinary(this.min_value);
|
|
68
|
-
output.writeFieldEnd();
|
|
69
|
-
}
|
|
70
|
-
output.writeFieldStop();
|
|
71
|
-
output.writeStructEnd();
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
static read(input) {
|
|
75
|
-
input.readStructBegin();
|
|
76
|
-
let _args = {};
|
|
77
|
-
while (true) {
|
|
78
|
-
const ret = input.readFieldBegin();
|
|
79
|
-
const fieldType = ret.ftype;
|
|
80
|
-
const fieldId = ret.fid;
|
|
81
|
-
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
switch (fieldId) {
|
|
85
|
-
case 1:
|
|
86
|
-
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
87
|
-
const value_1 = input.readBinary();
|
|
88
|
-
_args.max = value_1;
|
|
89
|
-
} else {
|
|
90
|
-
input.skip(fieldType);
|
|
91
|
-
}
|
|
92
|
-
break;
|
|
93
|
-
case 2:
|
|
94
|
-
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
95
|
-
const value_2 = input.readBinary();
|
|
96
|
-
_args.min = value_2;
|
|
97
|
-
} else {
|
|
98
|
-
input.skip(fieldType);
|
|
99
|
-
}
|
|
100
|
-
break;
|
|
101
|
-
case 3:
|
|
102
|
-
if (fieldType === thrift.Thrift.Type.I64) {
|
|
103
|
-
const value_3 = input.readI64();
|
|
104
|
-
_args.null_count = value_3;
|
|
105
|
-
} else {
|
|
106
|
-
input.skip(fieldType);
|
|
107
|
-
}
|
|
108
|
-
break;
|
|
109
|
-
case 4:
|
|
110
|
-
if (fieldType === thrift.Thrift.Type.I64) {
|
|
111
|
-
const value_4 = input.readI64();
|
|
112
|
-
_args.distinct_count = value_4;
|
|
113
|
-
} else {
|
|
114
|
-
input.skip(fieldType);
|
|
115
|
-
}
|
|
116
|
-
break;
|
|
117
|
-
case 5:
|
|
118
|
-
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
119
|
-
const value_5 = input.readBinary();
|
|
120
|
-
_args.max_value = value_5;
|
|
121
|
-
} else {
|
|
122
|
-
input.skip(fieldType);
|
|
123
|
-
}
|
|
124
|
-
break;
|
|
125
|
-
case 6:
|
|
126
|
-
if (fieldType === thrift.Thrift.Type.STRING) {
|
|
127
|
-
const value_6 = input.readBinary();
|
|
128
|
-
_args.min_value = value_6;
|
|
129
|
-
} else {
|
|
130
|
-
input.skip(fieldType);
|
|
131
|
-
}
|
|
132
|
-
break;
|
|
133
|
-
default:
|
|
134
|
-
{
|
|
135
|
-
input.skip(fieldType);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
input.readFieldEnd();
|
|
139
|
-
}
|
|
140
|
-
input.readStructEnd();
|
|
141
|
-
return new Statistics(_args);
|
|
142
|
-
}
|
|
143
150
|
}
|
|
144
|
-
//# sourceMappingURL=Statistics.js.map
|
|
@@ -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 StringType {
|
|
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('StringType');
|
|
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 StringType();
|
|
26
34
|
}
|
|
27
|
-
input.readStructEnd();
|
|
28
|
-
return new StringType();
|
|
29
|
-
}
|
|
30
35
|
}
|
|
31
|
-
//# sourceMappingURL=StringType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeType.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/TimeType.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"TimeType.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/TimeType.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,sBAAmB;AACvC,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;CACzB;AACD,qBAAa,QAAQ;IACZ,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;gBACnB,IAAI,EAAE,aAAa;IAkBxB,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAgB9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,QAAQ;CA2CtD"}
|
|
@@ -1,76 +1,83 @@
|
|
|
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
|
import * as TimeUnit from "./TimeUnit.js";
|
|
3
9
|
export class TimeType {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
constructor(args) {
|
|
11
|
+
if (args != null && args.isAdjustedToUTC != null) {
|
|
12
|
+
this.isAdjustedToUTC = args.isAdjustedToUTC;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[isAdjustedToUTC] is unset!');
|
|
16
|
+
}
|
|
17
|
+
if (args != null && args.unit != null) {
|
|
18
|
+
this.unit = args.unit;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[unit] is unset!');
|
|
22
|
+
}
|
|
11
23
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
write(output) {
|
|
25
|
+
output.writeStructBegin('TimeType');
|
|
26
|
+
if (this.isAdjustedToUTC != null) {
|
|
27
|
+
output.writeFieldBegin('isAdjustedToUTC', thrift.Thrift.Type.BOOL, 1);
|
|
28
|
+
output.writeBool(this.isAdjustedToUTC);
|
|
29
|
+
output.writeFieldEnd();
|
|
30
|
+
}
|
|
31
|
+
if (this.unit != null) {
|
|
32
|
+
output.writeFieldBegin('unit', thrift.Thrift.Type.STRUCT, 2);
|
|
33
|
+
this.unit.write(output);
|
|
34
|
+
output.writeFieldEnd();
|
|
35
|
+
}
|
|
36
|
+
output.writeFieldStop();
|
|
37
|
+
output.writeStructEnd();
|
|
38
|
+
return;
|
|
16
39
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
40
|
+
static read(input) {
|
|
41
|
+
input.readStructBegin();
|
|
42
|
+
let _args = {};
|
|
43
|
+
while (true) {
|
|
44
|
+
const ret = input.readFieldBegin();
|
|
45
|
+
const fieldType = ret.ftype;
|
|
46
|
+
const fieldId = ret.fid;
|
|
47
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
switch (fieldId) {
|
|
51
|
+
case 1:
|
|
52
|
+
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
53
|
+
const value_1 = input.readBool();
|
|
54
|
+
_args.isAdjustedToUTC = value_1;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
input.skip(fieldType);
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
case 2:
|
|
61
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
62
|
+
const value_2 = TimeUnit.TimeUnit.read(input);
|
|
63
|
+
_args.unit = value_2;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
input.skip(fieldType);
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
default: {
|
|
70
|
+
input.skip(fieldType);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
input.readFieldEnd();
|
|
74
|
+
}
|
|
75
|
+
input.readStructEnd();
|
|
76
|
+
if (_args.isAdjustedToUTC !== undefined && _args.unit !== undefined) {
|
|
77
|
+
return new TimeType(_args);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read TimeType from input');
|
|
81
|
+
}
|
|
24
82
|
}
|
|
25
|
-
if (this.unit != null) {
|
|
26
|
-
output.writeFieldBegin('unit', thrift.Thrift.Type.STRUCT, 2);
|
|
27
|
-
this.unit.write(output);
|
|
28
|
-
output.writeFieldEnd();
|
|
29
|
-
}
|
|
30
|
-
output.writeFieldStop();
|
|
31
|
-
output.writeStructEnd();
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
static read(input) {
|
|
35
|
-
input.readStructBegin();
|
|
36
|
-
let _args = {};
|
|
37
|
-
while (true) {
|
|
38
|
-
const ret = input.readFieldBegin();
|
|
39
|
-
const fieldType = ret.ftype;
|
|
40
|
-
const fieldId = ret.fid;
|
|
41
|
-
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
switch (fieldId) {
|
|
45
|
-
case 1:
|
|
46
|
-
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
47
|
-
const value_1 = input.readBool();
|
|
48
|
-
_args.isAdjustedToUTC = value_1;
|
|
49
|
-
} else {
|
|
50
|
-
input.skip(fieldType);
|
|
51
|
-
}
|
|
52
|
-
break;
|
|
53
|
-
case 2:
|
|
54
|
-
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
55
|
-
const value_2 = TimeUnit.TimeUnit.read(input);
|
|
56
|
-
_args.unit = value_2;
|
|
57
|
-
} else {
|
|
58
|
-
input.skip(fieldType);
|
|
59
|
-
}
|
|
60
|
-
break;
|
|
61
|
-
default:
|
|
62
|
-
{
|
|
63
|
-
input.skip(fieldType);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
input.readFieldEnd();
|
|
67
|
-
}
|
|
68
|
-
input.readStructEnd();
|
|
69
|
-
if (_args.isAdjustedToUTC !== undefined && _args.unit !== undefined) {
|
|
70
|
-
return new TimeType(_args);
|
|
71
|
-
} else {
|
|
72
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read TimeType from input');
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
83
|
}
|
|
76
|
-
//# sourceMappingURL=TimeType.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as thrift from 'thrift';
|
|
2
|
-
import * as MicroSeconds from
|
|
3
|
-
import * as MilliSeconds from
|
|
2
|
+
import * as MicroSeconds from "./MicroSeconds.js";
|
|
3
|
+
import * as MilliSeconds from "./MilliSeconds.js";
|
|
4
4
|
export interface ITimeUnitArgs {
|
|
5
5
|
MILLIS?: MilliSeconds.MilliSeconds;
|
|
6
6
|
MICROS?: MicroSeconds.MicroSeconds;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeUnit.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/TimeUnit.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"TimeUnit.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/TimeUnit.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,YAAY,0BAAuB;AAC/C,OAAO,KAAK,YAAY,0BAAuB;AAC/C,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;IACnC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;CACpC;AACD,qBAAa,QAAQ;IACZ,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;IACnC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;gBAC9B,IAAI,CAAC,EAAE,aAAa;WAwBlB,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,YAAY,GAAG,QAAQ;WAGvD,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,YAAY,GAAG,QAAQ;IAG9D,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAgB9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,QAAQ;CAyDtD"}
|