@loaders.gl/parquet 4.2.0-alpha.3 → 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 +15 -2
- 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 +78 -65
- package/dist/parquet-wasm-loader.js +25 -28
- package/dist/parquet-wasm-writer.js +19 -23
- package/dist/parquet-writer.js +17 -13
- 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,92 +1,99 @@
|
|
|
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 DictionaryPageHeader {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
constructor(args) {
|
|
10
|
+
if (args != null && args.num_values != null) {
|
|
11
|
+
this.num_values = args.num_values;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[num_values] is unset!');
|
|
15
|
+
}
|
|
16
|
+
if (args != null && args.encoding != null) {
|
|
17
|
+
this.encoding = args.encoding;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[encoding] is unset!');
|
|
21
|
+
}
|
|
22
|
+
if (args != null && args.is_sorted != null) {
|
|
23
|
+
this.is_sorted = args.is_sorted;
|
|
24
|
+
}
|
|
11
25
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
write(output) {
|
|
27
|
+
output.writeStructBegin('DictionaryPageHeader');
|
|
28
|
+
if (this.num_values != null) {
|
|
29
|
+
output.writeFieldBegin('num_values', thrift.Thrift.Type.I32, 1);
|
|
30
|
+
output.writeI32(this.num_values);
|
|
31
|
+
output.writeFieldEnd();
|
|
32
|
+
}
|
|
33
|
+
if (this.encoding != null) {
|
|
34
|
+
output.writeFieldBegin('encoding', thrift.Thrift.Type.I32, 2);
|
|
35
|
+
output.writeI32(this.encoding);
|
|
36
|
+
output.writeFieldEnd();
|
|
37
|
+
}
|
|
38
|
+
if (this.is_sorted != null) {
|
|
39
|
+
output.writeFieldBegin('is_sorted', thrift.Thrift.Type.BOOL, 3);
|
|
40
|
+
output.writeBool(this.is_sorted);
|
|
41
|
+
output.writeFieldEnd();
|
|
42
|
+
}
|
|
43
|
+
output.writeFieldStop();
|
|
44
|
+
output.writeStructEnd();
|
|
45
|
+
return;
|
|
16
46
|
}
|
|
17
|
-
|
|
18
|
-
|
|
47
|
+
static read(input) {
|
|
48
|
+
input.readStructBegin();
|
|
49
|
+
let _args = {};
|
|
50
|
+
while (true) {
|
|
51
|
+
const ret = input.readFieldBegin();
|
|
52
|
+
const fieldType = ret.ftype;
|
|
53
|
+
const fieldId = ret.fid;
|
|
54
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
switch (fieldId) {
|
|
58
|
+
case 1:
|
|
59
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
60
|
+
const value_1 = input.readI32();
|
|
61
|
+
_args.num_values = value_1;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
input.skip(fieldType);
|
|
65
|
+
}
|
|
66
|
+
break;
|
|
67
|
+
case 2:
|
|
68
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
69
|
+
const value_2 = input.readI32();
|
|
70
|
+
_args.encoding = value_2;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
input.skip(fieldType);
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
case 3:
|
|
77
|
+
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
78
|
+
const value_3 = input.readBool();
|
|
79
|
+
_args.is_sorted = value_3;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
input.skip(fieldType);
|
|
83
|
+
}
|
|
84
|
+
break;
|
|
85
|
+
default: {
|
|
86
|
+
input.skip(fieldType);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
input.readFieldEnd();
|
|
90
|
+
}
|
|
91
|
+
input.readStructEnd();
|
|
92
|
+
if (_args.num_values !== undefined && _args.encoding !== undefined) {
|
|
93
|
+
return new DictionaryPageHeader(_args);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read DictionaryPageHeader from input');
|
|
97
|
+
}
|
|
19
98
|
}
|
|
20
|
-
}
|
|
21
|
-
write(output) {
|
|
22
|
-
output.writeStructBegin('DictionaryPageHeader');
|
|
23
|
-
if (this.num_values != null) {
|
|
24
|
-
output.writeFieldBegin('num_values', thrift.Thrift.Type.I32, 1);
|
|
25
|
-
output.writeI32(this.num_values);
|
|
26
|
-
output.writeFieldEnd();
|
|
27
|
-
}
|
|
28
|
-
if (this.encoding != null) {
|
|
29
|
-
output.writeFieldBegin('encoding', thrift.Thrift.Type.I32, 2);
|
|
30
|
-
output.writeI32(this.encoding);
|
|
31
|
-
output.writeFieldEnd();
|
|
32
|
-
}
|
|
33
|
-
if (this.is_sorted != null) {
|
|
34
|
-
output.writeFieldBegin('is_sorted', thrift.Thrift.Type.BOOL, 3);
|
|
35
|
-
output.writeBool(this.is_sorted);
|
|
36
|
-
output.writeFieldEnd();
|
|
37
|
-
}
|
|
38
|
-
output.writeFieldStop();
|
|
39
|
-
output.writeStructEnd();
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
static read(input) {
|
|
43
|
-
input.readStructBegin();
|
|
44
|
-
let _args = {};
|
|
45
|
-
while (true) {
|
|
46
|
-
const ret = input.readFieldBegin();
|
|
47
|
-
const fieldType = ret.ftype;
|
|
48
|
-
const fieldId = ret.fid;
|
|
49
|
-
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
switch (fieldId) {
|
|
53
|
-
case 1:
|
|
54
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
55
|
-
const value_1 = input.readI32();
|
|
56
|
-
_args.num_values = value_1;
|
|
57
|
-
} else {
|
|
58
|
-
input.skip(fieldType);
|
|
59
|
-
}
|
|
60
|
-
break;
|
|
61
|
-
case 2:
|
|
62
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
63
|
-
const value_2 = input.readI32();
|
|
64
|
-
_args.encoding = value_2;
|
|
65
|
-
} else {
|
|
66
|
-
input.skip(fieldType);
|
|
67
|
-
}
|
|
68
|
-
break;
|
|
69
|
-
case 3:
|
|
70
|
-
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
71
|
-
const value_3 = input.readBool();
|
|
72
|
-
_args.is_sorted = value_3;
|
|
73
|
-
} else {
|
|
74
|
-
input.skip(fieldType);
|
|
75
|
-
}
|
|
76
|
-
break;
|
|
77
|
-
default:
|
|
78
|
-
{
|
|
79
|
-
input.skip(fieldType);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
input.readFieldEnd();
|
|
83
|
-
}
|
|
84
|
-
input.readStructEnd();
|
|
85
|
-
if (_args.num_values !== undefined && _args.encoding !== undefined) {
|
|
86
|
-
return new DictionaryPageHeader(_args);
|
|
87
|
-
} else {
|
|
88
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read DictionaryPageHeader from input');
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
99
|
}
|
|
92
|
-
//# sourceMappingURL=DictionaryPageHeader.js.map
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 Encoding;
|
|
8
|
+
(function (Encoding) {
|
|
9
|
+
Encoding[Encoding["PLAIN"] = 0] = "PLAIN";
|
|
10
|
+
Encoding[Encoding["PLAIN_DICTIONARY"] = 2] = "PLAIN_DICTIONARY";
|
|
11
|
+
Encoding[Encoding["RLE"] = 3] = "RLE";
|
|
12
|
+
Encoding[Encoding["BIT_PACKED"] = 4] = "BIT_PACKED";
|
|
13
|
+
Encoding[Encoding["DELTA_BINARY_PACKED"] = 5] = "DELTA_BINARY_PACKED";
|
|
14
|
+
Encoding[Encoding["DELTA_LENGTH_BYTE_ARRAY"] = 6] = "DELTA_LENGTH_BYTE_ARRAY";
|
|
15
|
+
Encoding[Encoding["DELTA_BYTE_ARRAY"] = 7] = "DELTA_BYTE_ARRAY";
|
|
16
|
+
Encoding[Encoding["RLE_DICTIONARY"] = 8] = "RLE_DICTIONARY";
|
|
17
|
+
})(Encoding || (Encoding = {}));
|
|
@@ -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 EnumType {
|
|
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('EnumType');
|
|
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 EnumType();
|
|
26
34
|
}
|
|
27
|
-
input.readStructEnd();
|
|
28
|
-
return new EnumType();
|
|
29
|
-
}
|
|
30
35
|
}
|
|
31
|
-
//# sourceMappingURL=EnumType.js.map
|
|
@@ -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 FieldRepetitionType;
|
|
8
|
+
(function (FieldRepetitionType) {
|
|
9
|
+
FieldRepetitionType[FieldRepetitionType["REQUIRED"] = 0] = "REQUIRED";
|
|
10
|
+
FieldRepetitionType[FieldRepetitionType["OPTIONAL"] = 1] = "OPTIONAL";
|
|
11
|
+
FieldRepetitionType[FieldRepetitionType["REPEATED"] = 2] = "REPEATED";
|
|
12
|
+
})(FieldRepetitionType || (FieldRepetitionType = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Int64 from 'node-int64';
|
|
2
2
|
import * as thrift from 'thrift';
|
|
3
|
-
import * as ColumnOrder from
|
|
4
|
-
import * as KeyValue from
|
|
5
|
-
import * as RowGroup from
|
|
6
|
-
import * as SchemaElement from
|
|
3
|
+
import * as ColumnOrder from "./ColumnOrder.js";
|
|
4
|
+
import * as KeyValue from "./KeyValue.js";
|
|
5
|
+
import * as RowGroup from "./RowGroup.js";
|
|
6
|
+
import * as SchemaElement from "./SchemaElement.js";
|
|
7
7
|
export interface IFileMetaDataArgs {
|
|
8
8
|
version: number;
|
|
9
9
|
schema: Array<SchemaElement.SchemaElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileMetaData.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/FileMetaData.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"FileMetaData.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/FileMetaData.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,WAAW,yBAAsB;AAC7C,OAAO,KAAK,QAAQ,sBAAmB;AACvC,OAAO,KAAK,QAAQ,sBAAmB;AACvC,OAAO,KAAK,aAAa,2BAAwB;AACjD,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC;IACzB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrC,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;CAChD;AACD,qBAAa,YAAY;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrC,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;gBAC1C,IAAI,GAAE,iBAAiB,GAAG,IAAW;IA+C1C,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAyD9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,YAAY;CAqH1D"}
|