@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnOrder.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/ColumnOrder.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ColumnOrder.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/ColumnOrder.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,gBAAgB,8BAA2B;AACvD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC;CAChD;AACD,qBAAa,WAAW;IACf,UAAU,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC;gBAC1C,IAAI,CAAC,EAAE,gBAAgB;WAoBrB,cAAc,CAAC,UAAU,EAAE,gBAAgB,CAAC,gBAAgB,GAAG,WAAW;IAGjF,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAW9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,WAAW;CAiDzD"}
|
|
@@ -1,76 +1,81 @@
|
|
|
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 TypeDefinedOrder from "./TypeDefinedOrder.js";
|
|
3
9
|
export class ColumnOrder {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
constructor(args) {
|
|
11
|
+
let _fieldsSet = 0;
|
|
12
|
+
if (args != null) {
|
|
13
|
+
if (args.TYPE_ORDER != null) {
|
|
14
|
+
_fieldsSet++;
|
|
15
|
+
this.TYPE_ORDER = args.TYPE_ORDER;
|
|
16
|
+
}
|
|
17
|
+
if (_fieldsSet > 1) {
|
|
18
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
|
|
19
|
+
}
|
|
20
|
+
else if (_fieldsSet < 1) {
|
|
21
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
17
24
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return new ColumnOrder({
|
|
21
|
-
TYPE_ORDER
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
write(output) {
|
|
25
|
-
output.writeStructBegin('ColumnOrder');
|
|
26
|
-
if (this.TYPE_ORDER != null) {
|
|
27
|
-
output.writeFieldBegin('TYPE_ORDER', thrift.Thrift.Type.STRUCT, 1);
|
|
28
|
-
this.TYPE_ORDER.write(output);
|
|
29
|
-
output.writeFieldEnd();
|
|
25
|
+
static fromTYPE_ORDER(TYPE_ORDER) {
|
|
26
|
+
return new ColumnOrder({ TYPE_ORDER });
|
|
30
27
|
}
|
|
31
|
-
output
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const fieldType = ret.ftype;
|
|
42
|
-
const fieldId = ret.fid;
|
|
43
|
-
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
switch (fieldId) {
|
|
47
|
-
case 1:
|
|
48
|
-
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
49
|
-
_fieldsSet++;
|
|
50
|
-
const value_1 = TypeDefinedOrder.TypeDefinedOrder.read(input);
|
|
51
|
-
_returnValue = ColumnOrder.fromTYPE_ORDER(value_1);
|
|
52
|
-
} else {
|
|
53
|
-
input.skip(fieldType);
|
|
54
|
-
}
|
|
55
|
-
break;
|
|
56
|
-
default:
|
|
57
|
-
{
|
|
58
|
-
input.skip(fieldType);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
input.readFieldEnd();
|
|
28
|
+
write(output) {
|
|
29
|
+
output.writeStructBegin('ColumnOrder');
|
|
30
|
+
if (this.TYPE_ORDER != null) {
|
|
31
|
+
output.writeFieldBegin('TYPE_ORDER', thrift.Thrift.Type.STRUCT, 1);
|
|
32
|
+
this.TYPE_ORDER.write(output);
|
|
33
|
+
output.writeFieldEnd();
|
|
34
|
+
}
|
|
35
|
+
output.writeFieldStop();
|
|
36
|
+
output.writeStructEnd();
|
|
37
|
+
return;
|
|
62
38
|
}
|
|
63
|
-
input
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
39
|
+
static read(input) {
|
|
40
|
+
let _fieldsSet = 0;
|
|
41
|
+
let _returnValue = null;
|
|
42
|
+
input.readStructBegin();
|
|
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.STRUCT) {
|
|
53
|
+
_fieldsSet++;
|
|
54
|
+
const value_1 = TypeDefinedOrder.TypeDefinedOrder.read(input);
|
|
55
|
+
_returnValue = ColumnOrder.fromTYPE_ORDER(value_1);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
input.skip(fieldType);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
default: {
|
|
62
|
+
input.skip(fieldType);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
input.readFieldEnd();
|
|
66
|
+
}
|
|
67
|
+
input.readStructEnd();
|
|
68
|
+
if (_fieldsSet > 1) {
|
|
69
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
|
|
70
|
+
}
|
|
71
|
+
else if (_fieldsSet < 1) {
|
|
72
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
|
|
73
|
+
}
|
|
74
|
+
if (_returnValue !== null) {
|
|
75
|
+
return _returnValue;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read data for TUnion');
|
|
79
|
+
}
|
|
68
80
|
}
|
|
69
|
-
if (_returnValue !== null) {
|
|
70
|
-
return _returnValue;
|
|
71
|
-
} else {
|
|
72
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read data for TUnion');
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
81
|
}
|
|
76
|
-
//# sourceMappingURL=ColumnOrder.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 CompressionCodec;
|
|
8
|
+
(function (CompressionCodec) {
|
|
9
|
+
CompressionCodec[CompressionCodec["UNCOMPRESSED"] = 0] = "UNCOMPRESSED";
|
|
10
|
+
CompressionCodec[CompressionCodec["SNAPPY"] = 1] = "SNAPPY";
|
|
11
|
+
CompressionCodec[CompressionCodec["GZIP"] = 2] = "GZIP";
|
|
12
|
+
CompressionCodec[CompressionCodec["LZO"] = 3] = "LZO";
|
|
13
|
+
CompressionCodec[CompressionCodec["BROTLI"] = 4] = "BROTLI";
|
|
14
|
+
CompressionCodec[CompressionCodec["LZ4"] = 5] = "LZ4";
|
|
15
|
+
CompressionCodec[CompressionCodec["ZSTD"] = 6] = "ZSTD";
|
|
16
|
+
CompressionCodec[CompressionCodec["LZ4_RAW"] = 7] = "LZ4_RAW"; // Added in 2.9
|
|
17
|
+
})(CompressionCodec || (CompressionCodec = {}));
|
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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 ConvertedType;
|
|
8
|
+
(function (ConvertedType) {
|
|
9
|
+
ConvertedType[ConvertedType["UTF8"] = 0] = "UTF8";
|
|
10
|
+
ConvertedType[ConvertedType["MAP"] = 1] = "MAP";
|
|
11
|
+
ConvertedType[ConvertedType["MAP_KEY_VALUE"] = 2] = "MAP_KEY_VALUE";
|
|
12
|
+
ConvertedType[ConvertedType["LIST"] = 3] = "LIST";
|
|
13
|
+
ConvertedType[ConvertedType["ENUM"] = 4] = "ENUM";
|
|
14
|
+
ConvertedType[ConvertedType["DECIMAL"] = 5] = "DECIMAL";
|
|
15
|
+
ConvertedType[ConvertedType["DATE"] = 6] = "DATE";
|
|
16
|
+
ConvertedType[ConvertedType["TIME_MILLIS"] = 7] = "TIME_MILLIS";
|
|
17
|
+
ConvertedType[ConvertedType["TIME_MICROS"] = 8] = "TIME_MICROS";
|
|
18
|
+
ConvertedType[ConvertedType["TIMESTAMP_MILLIS"] = 9] = "TIMESTAMP_MILLIS";
|
|
19
|
+
ConvertedType[ConvertedType["TIMESTAMP_MICROS"] = 10] = "TIMESTAMP_MICROS";
|
|
20
|
+
ConvertedType[ConvertedType["UINT_8"] = 11] = "UINT_8";
|
|
21
|
+
ConvertedType[ConvertedType["UINT_16"] = 12] = "UINT_16";
|
|
22
|
+
ConvertedType[ConvertedType["UINT_32"] = 13] = "UINT_32";
|
|
23
|
+
ConvertedType[ConvertedType["UINT_64"] = 14] = "UINT_64";
|
|
24
|
+
ConvertedType[ConvertedType["INT_8"] = 15] = "INT_8";
|
|
25
|
+
ConvertedType[ConvertedType["INT_16"] = 16] = "INT_16";
|
|
26
|
+
ConvertedType[ConvertedType["INT_32"] = 17] = "INT_32";
|
|
27
|
+
ConvertedType[ConvertedType["INT_64"] = 18] = "INT_64";
|
|
28
|
+
ConvertedType[ConvertedType["JSON"] = 19] = "JSON";
|
|
29
|
+
ConvertedType[ConvertedType["BSON"] = 20] = "BSON";
|
|
30
|
+
ConvertedType[ConvertedType["INTERVAL"] = 21] = "INTERVAL";
|
|
31
|
+
})(ConvertedType || (ConvertedType = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as thrift from 'thrift';
|
|
2
|
-
import * as Encoding from
|
|
3
|
-
import * as Statistics from
|
|
2
|
+
import * as Encoding from "./Encoding.js";
|
|
3
|
+
import * as Statistics from "./Statistics.js";
|
|
4
4
|
export interface IDataPageHeaderArgs {
|
|
5
5
|
num_values: number;
|
|
6
6
|
encoding: Encoding.Encoding;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataPageHeader.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/DataPageHeader.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"DataPageHeader.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/DataPageHeader.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,sBAAmB;AACvC,OAAO,KAAK,UAAU,wBAAqB;AAC3C,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,yBAAyB,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7C,yBAAyB,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;CACpC;AACD,qBAAa,cAAc;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,yBAAyB,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7C,yBAAyB,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;gBAC9B,IAAI,EAAE,mBAAmB;IAqC9B,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WA+B9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,cAAc;CAwE5D"}
|
|
@@ -1,131 +1,143 @@
|
|
|
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 Statistics from "./Statistics.js";
|
|
3
9
|
export class DataPageHeader {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
constructor(args) {
|
|
11
|
+
if (args != null && args.num_values != null) {
|
|
12
|
+
this.num_values = args.num_values;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[num_values] is unset!');
|
|
16
|
+
}
|
|
17
|
+
if (args != null && args.encoding != null) {
|
|
18
|
+
this.encoding = args.encoding;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[encoding] is unset!');
|
|
22
|
+
}
|
|
23
|
+
if (args != null && args.definition_level_encoding != null) {
|
|
24
|
+
this.definition_level_encoding = args.definition_level_encoding;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[definition_level_encoding] is unset!');
|
|
28
|
+
}
|
|
29
|
+
if (args != null && args.repetition_level_encoding != null) {
|
|
30
|
+
this.repetition_level_encoding = args.repetition_level_encoding;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[repetition_level_encoding] is unset!');
|
|
34
|
+
}
|
|
35
|
+
if (args != null && args.statistics != null) {
|
|
36
|
+
this.statistics = args.statistics;
|
|
37
|
+
}
|
|
14
38
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
39
|
+
write(output) {
|
|
40
|
+
output.writeStructBegin('DataPageHeader');
|
|
41
|
+
if (this.num_values != null) {
|
|
42
|
+
output.writeFieldBegin('num_values', thrift.Thrift.Type.I32, 1);
|
|
43
|
+
output.writeI32(this.num_values);
|
|
44
|
+
output.writeFieldEnd();
|
|
45
|
+
}
|
|
46
|
+
if (this.encoding != null) {
|
|
47
|
+
output.writeFieldBegin('encoding', thrift.Thrift.Type.I32, 2);
|
|
48
|
+
output.writeI32(this.encoding);
|
|
49
|
+
output.writeFieldEnd();
|
|
50
|
+
}
|
|
51
|
+
if (this.definition_level_encoding != null) {
|
|
52
|
+
output.writeFieldBegin('definition_level_encoding', thrift.Thrift.Type.I32, 3);
|
|
53
|
+
output.writeI32(this.definition_level_encoding);
|
|
54
|
+
output.writeFieldEnd();
|
|
55
|
+
}
|
|
56
|
+
if (this.repetition_level_encoding != null) {
|
|
57
|
+
output.writeFieldBegin('repetition_level_encoding', thrift.Thrift.Type.I32, 4);
|
|
58
|
+
output.writeI32(this.repetition_level_encoding);
|
|
59
|
+
output.writeFieldEnd();
|
|
60
|
+
}
|
|
61
|
+
if (this.statistics != null) {
|
|
62
|
+
output.writeFieldBegin('statistics', thrift.Thrift.Type.STRUCT, 5);
|
|
63
|
+
this.statistics.write(output);
|
|
64
|
+
output.writeFieldEnd();
|
|
65
|
+
}
|
|
66
|
+
output.writeFieldStop();
|
|
67
|
+
output.writeStructEnd();
|
|
68
|
+
return;
|
|
19
69
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
70
|
+
static read(input) {
|
|
71
|
+
input.readStructBegin();
|
|
72
|
+
let _args = {};
|
|
73
|
+
while (true) {
|
|
74
|
+
const ret = input.readFieldBegin();
|
|
75
|
+
const fieldType = ret.ftype;
|
|
76
|
+
const fieldId = ret.fid;
|
|
77
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
switch (fieldId) {
|
|
81
|
+
case 1:
|
|
82
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
83
|
+
const value_1 = input.readI32();
|
|
84
|
+
_args.num_values = value_1;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
input.skip(fieldType);
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
case 2:
|
|
91
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
92
|
+
const value_2 = input.readI32();
|
|
93
|
+
_args.encoding = value_2;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
input.skip(fieldType);
|
|
97
|
+
}
|
|
98
|
+
break;
|
|
99
|
+
case 3:
|
|
100
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
101
|
+
const value_3 = input.readI32();
|
|
102
|
+
_args.definition_level_encoding = value_3;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
input.skip(fieldType);
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
case 4:
|
|
109
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
110
|
+
const value_4 = input.readI32();
|
|
111
|
+
_args.repetition_level_encoding = value_4;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
input.skip(fieldType);
|
|
115
|
+
}
|
|
116
|
+
break;
|
|
117
|
+
case 5:
|
|
118
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
119
|
+
const value_5 = Statistics.Statistics.read(input);
|
|
120
|
+
_args.statistics = value_5;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
input.skip(fieldType);
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
default: {
|
|
127
|
+
input.skip(fieldType);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
input.readFieldEnd();
|
|
131
|
+
}
|
|
132
|
+
input.readStructEnd();
|
|
133
|
+
if (_args.num_values !== undefined &&
|
|
134
|
+
_args.encoding !== undefined &&
|
|
135
|
+
_args.definition_level_encoding !== undefined &&
|
|
136
|
+
_args.repetition_level_encoding !== undefined) {
|
|
137
|
+
return new DataPageHeader(_args);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read DataPageHeader from input');
|
|
141
|
+
}
|
|
24
142
|
}
|
|
25
|
-
if (args != null && args.repetition_level_encoding != null) {
|
|
26
|
-
this.repetition_level_encoding = args.repetition_level_encoding;
|
|
27
|
-
} else {
|
|
28
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[repetition_level_encoding] is unset!');
|
|
29
|
-
}
|
|
30
|
-
if (args != null && args.statistics != null) {
|
|
31
|
-
this.statistics = args.statistics;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
write(output) {
|
|
35
|
-
output.writeStructBegin('DataPageHeader');
|
|
36
|
-
if (this.num_values != null) {
|
|
37
|
-
output.writeFieldBegin('num_values', thrift.Thrift.Type.I32, 1);
|
|
38
|
-
output.writeI32(this.num_values);
|
|
39
|
-
output.writeFieldEnd();
|
|
40
|
-
}
|
|
41
|
-
if (this.encoding != null) {
|
|
42
|
-
output.writeFieldBegin('encoding', thrift.Thrift.Type.I32, 2);
|
|
43
|
-
output.writeI32(this.encoding);
|
|
44
|
-
output.writeFieldEnd();
|
|
45
|
-
}
|
|
46
|
-
if (this.definition_level_encoding != null) {
|
|
47
|
-
output.writeFieldBegin('definition_level_encoding', thrift.Thrift.Type.I32, 3);
|
|
48
|
-
output.writeI32(this.definition_level_encoding);
|
|
49
|
-
output.writeFieldEnd();
|
|
50
|
-
}
|
|
51
|
-
if (this.repetition_level_encoding != null) {
|
|
52
|
-
output.writeFieldBegin('repetition_level_encoding', thrift.Thrift.Type.I32, 4);
|
|
53
|
-
output.writeI32(this.repetition_level_encoding);
|
|
54
|
-
output.writeFieldEnd();
|
|
55
|
-
}
|
|
56
|
-
if (this.statistics != null) {
|
|
57
|
-
output.writeFieldBegin('statistics', thrift.Thrift.Type.STRUCT, 5);
|
|
58
|
-
this.statistics.write(output);
|
|
59
|
-
output.writeFieldEnd();
|
|
60
|
-
}
|
|
61
|
-
output.writeFieldStop();
|
|
62
|
-
output.writeStructEnd();
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
static read(input) {
|
|
66
|
-
input.readStructBegin();
|
|
67
|
-
let _args = {};
|
|
68
|
-
while (true) {
|
|
69
|
-
const ret = input.readFieldBegin();
|
|
70
|
-
const fieldType = ret.ftype;
|
|
71
|
-
const fieldId = ret.fid;
|
|
72
|
-
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
switch (fieldId) {
|
|
76
|
-
case 1:
|
|
77
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
78
|
-
const value_1 = input.readI32();
|
|
79
|
-
_args.num_values = value_1;
|
|
80
|
-
} else {
|
|
81
|
-
input.skip(fieldType);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
case 2:
|
|
85
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
86
|
-
const value_2 = input.readI32();
|
|
87
|
-
_args.encoding = value_2;
|
|
88
|
-
} else {
|
|
89
|
-
input.skip(fieldType);
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
case 3:
|
|
93
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
94
|
-
const value_3 = input.readI32();
|
|
95
|
-
_args.definition_level_encoding = value_3;
|
|
96
|
-
} else {
|
|
97
|
-
input.skip(fieldType);
|
|
98
|
-
}
|
|
99
|
-
break;
|
|
100
|
-
case 4:
|
|
101
|
-
if (fieldType === thrift.Thrift.Type.I32) {
|
|
102
|
-
const value_4 = input.readI32();
|
|
103
|
-
_args.repetition_level_encoding = value_4;
|
|
104
|
-
} else {
|
|
105
|
-
input.skip(fieldType);
|
|
106
|
-
}
|
|
107
|
-
break;
|
|
108
|
-
case 5:
|
|
109
|
-
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
110
|
-
const value_5 = Statistics.Statistics.read(input);
|
|
111
|
-
_args.statistics = value_5;
|
|
112
|
-
} else {
|
|
113
|
-
input.skip(fieldType);
|
|
114
|
-
}
|
|
115
|
-
break;
|
|
116
|
-
default:
|
|
117
|
-
{
|
|
118
|
-
input.skip(fieldType);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
input.readFieldEnd();
|
|
122
|
-
}
|
|
123
|
-
input.readStructEnd();
|
|
124
|
-
if (_args.num_values !== undefined && _args.encoding !== undefined && _args.definition_level_encoding !== undefined && _args.repetition_level_encoding !== undefined) {
|
|
125
|
-
return new DataPageHeader(_args);
|
|
126
|
-
} else {
|
|
127
|
-
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read DataPageHeader from input');
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
143
|
}
|
|
131
|
-
//# sourceMappingURL=DataPageHeader.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as thrift from 'thrift';
|
|
2
|
-
import * as Encoding from
|
|
3
|
-
import * as Statistics from
|
|
2
|
+
import * as Encoding from "./Encoding.js";
|
|
3
|
+
import * as Statistics from "./Statistics.js";
|
|
4
4
|
export interface IDataPageHeaderV2Args {
|
|
5
5
|
num_values: number;
|
|
6
6
|
num_nulls: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataPageHeaderV2.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/DataPageHeaderV2.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"DataPageHeaderV2.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/DataPageHeaderV2.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,sBAAmB;AACvC,OAAO,KAAK,UAAU,wBAAqB;AAC3C,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,6BAA6B,EAAE,MAAM,CAAC;IACtC,6BAA6B,EAAE,MAAM,CAAC;IACtC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;CACpC;AACD,qBAAa,gBAAgB;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,6BAA6B,EAAE,MAAM,CAAC;IACtC,6BAA6B,EAAE,MAAM,CAAC;IACtC,aAAa,CAAC,EAAE,OAAO,CAAQ;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;gBAC9B,IAAI,EAAE,qBAAqB;IAwDhC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WA8C9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,gBAAgB;CAkG9D"}
|