@loaders.gl/parquet 3.1.0-alpha.5 → 3.1.0-beta.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/bundle.d.ts +1 -0
- package/dist/bundle.d.ts.map +1 -0
- package/dist/bundle.js +5 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +18 -0
- package/dist/dist.min.js +27 -13
- package/dist/dist.min.js.map +7 -1
- package/dist/es5/index.js +6 -26
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/parquet-loader.js +1 -1
- package/dist/es5/parquet-loader.js.map +1 -1
- package/dist/es5/parquet-writer.js +1 -1
- package/dist/es5/parquet-writer.js.map +1 -1
- package/dist/es5/parquetjs/codecs/rle.js +1 -1
- package/dist/es5/parquetjs/codecs/rle.js.map +1 -1
- package/dist/es5/parquetjs/compression.js +1 -12
- package/dist/es5/parquetjs/compression.js.map +1 -1
- package/dist/es5/parquetjs/parser/decoders.js +1 -1
- package/dist/es5/parquetjs/parser/decoders.js.map +1 -1
- package/dist/es5/parquetjs/parser/parquet-envelope-reader.js +0 -13
- package/dist/es5/parquetjs/parser/parquet-envelope-reader.js.map +1 -1
- package/dist/es5/parquetjs/parser/parquet-reader.js +0 -13
- package/dist/es5/parquetjs/parser/parquet-reader.js.map +1 -1
- package/dist/es5/parquetjs/utils/file-utils.js +0 -53
- package/dist/es5/parquetjs/utils/file-utils.js.map +1 -1
- package/dist/esm/index.js +2 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/parquet-loader.js +1 -1
- package/dist/esm/parquet-loader.js.map +1 -1
- package/dist/esm/parquet-writer.js +1 -1
- package/dist/esm/parquet-writer.js.map +1 -1
- package/dist/esm/parquetjs/codecs/rle.js +1 -1
- package/dist/esm/parquetjs/codecs/rle.js.map +1 -1
- package/dist/esm/parquetjs/compression.js +1 -10
- package/dist/esm/parquetjs/compression.js.map +1 -1
- package/dist/esm/parquetjs/parser/decoders.js +1 -1
- package/dist/esm/parquetjs/parser/decoders.js.map +1 -1
- package/dist/esm/parquetjs/parser/parquet-envelope-reader.js +0 -9
- package/dist/esm/parquetjs/parser/parquet-envelope-reader.js.map +1 -1
- package/dist/esm/parquetjs/parser/parquet-reader.js +0 -13
- package/dist/esm/parquetjs/parser/parquet-reader.js.map +1 -1
- package/dist/esm/parquetjs/utils/file-utils.js +0 -45
- package/dist/esm/parquetjs/utils/file-utils.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/lib/convert-schema.d.ts +1 -0
- package/dist/lib/convert-schema.d.ts.map +1 -0
- package/dist/lib/convert-schema.js +70 -0
- package/dist/lib/parse-parquet.d.ts +1 -0
- package/dist/lib/parse-parquet.d.ts.map +1 -0
- package/dist/lib/parse-parquet.js +28 -0
- package/dist/lib/read-array-buffer.d.ts +1 -0
- package/dist/lib/read-array-buffer.d.ts.map +1 -0
- package/dist/lib/read-array-buffer.js +29 -0
- package/dist/parquet-loader.d.ts +1 -0
- package/dist/parquet-loader.d.ts.map +1 -0
- package/dist/parquet-loader.js +27 -0
- package/dist/parquet-worker.js +27 -13
- package/dist/parquet-worker.js.map +7 -1
- package/dist/parquet-writer.d.ts +1 -0
- package/dist/parquet-writer.d.ts.map +1 -0
- package/dist/parquet-writer.js +21 -0
- package/dist/parquetjs/codecs/declare.d.ts +1 -0
- package/dist/parquetjs/codecs/declare.d.ts.map +1 -0
- package/dist/parquetjs/codecs/declare.js +2 -0
- package/dist/parquetjs/codecs/dictionary.d.ts +1 -0
- package/dist/parquetjs/codecs/dictionary.d.ts.map +1 -0
- package/dist/parquetjs/codecs/dictionary.js +14 -0
- package/dist/parquetjs/codecs/index.d.ts +1 -0
- package/dist/parquetjs/codecs/index.d.ts.map +1 -0
- package/dist/parquetjs/codecs/index.js +51 -0
- package/dist/parquetjs/codecs/plain.d.ts +1 -0
- package/dist/parquetjs/codecs/plain.d.ts.map +1 -0
- package/dist/parquetjs/codecs/plain.js +211 -0
- package/dist/parquetjs/codecs/rle.d.ts +1 -0
- package/dist/parquetjs/codecs/rle.d.ts.map +1 -0
- package/dist/parquetjs/codecs/rle.js +145 -0
- package/dist/parquetjs/compression.d.ts +1 -0
- package/dist/parquetjs/compression.d.ts.map +1 -0
- package/dist/parquetjs/compression.js +168 -0
- package/dist/parquetjs/encoder/writer.d.ts +1 -0
- package/dist/parquetjs/encoder/writer.d.ts.map +1 -0
- package/dist/parquetjs/encoder/writer.js +478 -0
- package/dist/parquetjs/file.d.ts +1 -0
- package/dist/parquetjs/file.d.ts.map +1 -0
- package/dist/parquetjs/file.js +99 -0
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js +15 -0
- package/dist/parquetjs/parquet-thrift/BsonType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/BsonType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/BsonType.js +58 -0
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js +207 -0
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js +213 -0
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js +398 -0
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js +104 -0
- package/dist/parquetjs/parquet-thrift/CompressionCodec.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/CompressionCodec.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js +20 -0
- package/dist/parquetjs/parquet-thrift/ConvertedType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/ConvertedType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/ConvertedType.js +34 -0
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js +166 -0
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js +226 -0
- package/dist/parquetjs/parquet-thrift/DateType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/DateType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/DateType.js +58 -0
- package/dist/parquetjs/parquet-thrift/DecimalType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/DecimalType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/DecimalType.js +105 -0
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js +122 -0
- package/dist/parquetjs/parquet-thrift/Encoding.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/Encoding.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/Encoding.js +20 -0
- package/dist/parquetjs/parquet-thrift/EnumType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/EnumType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/EnumType.js +58 -0
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js +15 -0
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/FileMetaData.js +256 -0
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js +58 -0
- package/dist/parquetjs/parquet-thrift/IntType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/IntType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/IntType.js +105 -0
- package/dist/parquetjs/parquet-thrift/JsonType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/JsonType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/JsonType.js +58 -0
- package/dist/parquetjs/parquet-thrift/KeyValue.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/KeyValue.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/KeyValue.js +102 -0
- package/dist/parquetjs/parquet-thrift/ListType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/ListType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/ListType.js +58 -0
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/LogicalType.js +380 -0
- package/dist/parquetjs/parquet-thrift/MapType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/MapType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/MapType.js +58 -0
- package/dist/parquetjs/parquet-thrift/MicroSeconds.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/MicroSeconds.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js +58 -0
- package/dist/parquetjs/parquet-thrift/MilliSeconds.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/MilliSeconds.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js +58 -0
- package/dist/parquetjs/parquet-thrift/NullType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/NullType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/NullType.js +58 -0
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js +97 -0
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js +127 -0
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/PageHeader.js +216 -0
- package/dist/parquetjs/parquet-thrift/PageLocation.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/PageLocation.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/PageLocation.js +141 -0
- package/dist/parquetjs/parquet-thrift/PageType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/PageType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/PageType.js +16 -0
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/RowGroup.js +182 -0
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/SchemaElement.js +239 -0
- package/dist/parquetjs/parquet-thrift/SortingColumn.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/SortingColumn.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/SortingColumn.js +127 -0
- package/dist/parquetjs/parquet-thrift/Statistics.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/Statistics.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/Statistics.js +176 -0
- package/dist/parquetjs/parquet-thrift/StringType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/StringType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/StringType.js +58 -0
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/TimeType.js +106 -0
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/TimeUnit.js +127 -0
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/TimestampType.js +106 -0
- package/dist/parquetjs/parquet-thrift/Type.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/Type.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/Type.js +20 -0
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js +58 -0
- package/dist/parquetjs/parquet-thrift/UUIDType.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/UUIDType.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/UUIDType.js +58 -0
- package/dist/parquetjs/parquet-thrift/index.d.ts +1 -0
- package/dist/parquetjs/parquet-thrift/index.d.ts.map +1 -0
- package/dist/parquetjs/parquet-thrift/index.js +61 -0
- package/dist/parquetjs/parser/decoders.d.ts +1 -0
- package/dist/parquetjs/parser/decoders.d.ts.map +1 -0
- package/dist/parquetjs/parser/decoders.js +318 -0
- package/dist/parquetjs/parser/parquet-cursor.d.ts +1 -0
- package/dist/parquetjs/parser/parquet-cursor.d.ts.map +1 -0
- package/dist/parquetjs/parser/parquet-cursor.js +74 -0
- package/dist/parquetjs/parser/parquet-envelope-reader.d.ts +1 -1
- package/dist/parquetjs/parser/parquet-envelope-reader.d.ts.map +1 -0
- package/dist/parquetjs/parser/parquet-envelope-reader.js +136 -0
- package/dist/parquetjs/parser/parquet-reader.d.ts +1 -5
- package/dist/parquetjs/parser/parquet-reader.d.ts.map +1 -0
- package/dist/parquetjs/parser/parquet-reader.js +134 -0
- package/dist/parquetjs/schema/declare.d.ts +1 -0
- package/dist/parquetjs/schema/declare.d.ts.map +1 -0
- package/dist/parquetjs/schema/declare.js +10 -0
- package/dist/parquetjs/schema/schema.d.ts +1 -0
- package/dist/parquetjs/schema/schema.d.ts.map +1 -0
- package/dist/parquetjs/schema/schema.js +162 -0
- package/dist/parquetjs/schema/shred.d.ts +1 -0
- package/dist/parquetjs/schema/shred.d.ts.map +1 -0
- package/dist/parquetjs/schema/shred.js +225 -0
- package/dist/parquetjs/schema/types.d.ts +1 -0
- package/dist/parquetjs/schema/types.d.ts.map +1 -0
- package/dist/parquetjs/schema/types.js +418 -0
- package/dist/parquetjs/utils/buffer-utils.d.ts +1 -0
- package/dist/parquetjs/utils/buffer-utils.d.ts.map +1 -0
- package/dist/parquetjs/utils/buffer-utils.js +22 -0
- package/dist/parquetjs/utils/file-utils.d.ts +1 -4
- package/dist/parquetjs/utils/file-utils.d.ts.map +1 -0
- package/dist/parquetjs/utils/file-utils.js +46 -0
- package/dist/parquetjs/utils/read-utils.d.ts +1 -0
- package/dist/parquetjs/utils/read-utils.d.ts.map +1 -0
- package/dist/parquetjs/utils/read-utils.js +109 -0
- package/dist/workers/parquet-worker.d.ts +1 -0
- package/dist/workers/parquet-worker.d.ts.map +1 -0
- package/dist/workers/parquet-worker.js +5 -0
- package/package.json +7 -8
- package/src/index.ts +3 -3
- package/src/parquetjs/codecs/rle.ts +1 -1
- package/src/parquetjs/compression.ts +10 -10
- package/src/parquetjs/parser/decoders.ts +1 -1
- package/src/parquetjs/parser/parquet-envelope-reader.ts +0 -11
- package/src/parquetjs/parser/parquet-reader.ts +0 -16
- package/src/parquetjs/utils/file-utils.ts +0 -49
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.DataPageHeader = void 0;
|
|
23
|
+
/* tslint:disable */
|
|
24
|
+
/* eslint-disable */
|
|
25
|
+
/*
|
|
26
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
27
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
28
|
+
*/
|
|
29
|
+
const thrift = __importStar(require("thrift"));
|
|
30
|
+
const Statistics = __importStar(require("./Statistics"));
|
|
31
|
+
class DataPageHeader {
|
|
32
|
+
constructor(args) {
|
|
33
|
+
if (args != null && args.num_values != null) {
|
|
34
|
+
this.num_values = args.num_values;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[num_values] is unset!');
|
|
38
|
+
}
|
|
39
|
+
if (args != null && args.encoding != null) {
|
|
40
|
+
this.encoding = args.encoding;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[encoding] is unset!');
|
|
44
|
+
}
|
|
45
|
+
if (args != null && args.definition_level_encoding != null) {
|
|
46
|
+
this.definition_level_encoding = args.definition_level_encoding;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[definition_level_encoding] is unset!');
|
|
50
|
+
}
|
|
51
|
+
if (args != null && args.repetition_level_encoding != null) {
|
|
52
|
+
this.repetition_level_encoding = args.repetition_level_encoding;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[repetition_level_encoding] is unset!');
|
|
56
|
+
}
|
|
57
|
+
if (args != null && args.statistics != null) {
|
|
58
|
+
this.statistics = args.statistics;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
write(output) {
|
|
62
|
+
output.writeStructBegin('DataPageHeader');
|
|
63
|
+
if (this.num_values != null) {
|
|
64
|
+
output.writeFieldBegin('num_values', thrift.Thrift.Type.I32, 1);
|
|
65
|
+
output.writeI32(this.num_values);
|
|
66
|
+
output.writeFieldEnd();
|
|
67
|
+
}
|
|
68
|
+
if (this.encoding != null) {
|
|
69
|
+
output.writeFieldBegin('encoding', thrift.Thrift.Type.I32, 2);
|
|
70
|
+
output.writeI32(this.encoding);
|
|
71
|
+
output.writeFieldEnd();
|
|
72
|
+
}
|
|
73
|
+
if (this.definition_level_encoding != null) {
|
|
74
|
+
output.writeFieldBegin('definition_level_encoding', thrift.Thrift.Type.I32, 3);
|
|
75
|
+
output.writeI32(this.definition_level_encoding);
|
|
76
|
+
output.writeFieldEnd();
|
|
77
|
+
}
|
|
78
|
+
if (this.repetition_level_encoding != null) {
|
|
79
|
+
output.writeFieldBegin('repetition_level_encoding', thrift.Thrift.Type.I32, 4);
|
|
80
|
+
output.writeI32(this.repetition_level_encoding);
|
|
81
|
+
output.writeFieldEnd();
|
|
82
|
+
}
|
|
83
|
+
if (this.statistics != null) {
|
|
84
|
+
output.writeFieldBegin('statistics', thrift.Thrift.Type.STRUCT, 5);
|
|
85
|
+
this.statistics.write(output);
|
|
86
|
+
output.writeFieldEnd();
|
|
87
|
+
}
|
|
88
|
+
output.writeFieldStop();
|
|
89
|
+
output.writeStructEnd();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
static read(input) {
|
|
93
|
+
input.readStructBegin();
|
|
94
|
+
let _args = {};
|
|
95
|
+
while (true) {
|
|
96
|
+
const ret = input.readFieldBegin();
|
|
97
|
+
const fieldType = ret.ftype;
|
|
98
|
+
const fieldId = ret.fid;
|
|
99
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
switch (fieldId) {
|
|
103
|
+
case 1:
|
|
104
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
105
|
+
const value_1 = input.readI32();
|
|
106
|
+
_args.num_values = value_1;
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
input.skip(fieldType);
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
case 2:
|
|
113
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
114
|
+
const value_2 = input.readI32();
|
|
115
|
+
_args.encoding = value_2;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
input.skip(fieldType);
|
|
119
|
+
}
|
|
120
|
+
break;
|
|
121
|
+
case 3:
|
|
122
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
123
|
+
const value_3 = input.readI32();
|
|
124
|
+
_args.definition_level_encoding = value_3;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
input.skip(fieldType);
|
|
128
|
+
}
|
|
129
|
+
break;
|
|
130
|
+
case 4:
|
|
131
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
132
|
+
const value_4 = input.readI32();
|
|
133
|
+
_args.repetition_level_encoding = value_4;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
input.skip(fieldType);
|
|
137
|
+
}
|
|
138
|
+
break;
|
|
139
|
+
case 5:
|
|
140
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
141
|
+
const value_5 = Statistics.Statistics.read(input);
|
|
142
|
+
_args.statistics = value_5;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
input.skip(fieldType);
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
default: {
|
|
149
|
+
input.skip(fieldType);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
input.readFieldEnd();
|
|
153
|
+
}
|
|
154
|
+
input.readStructEnd();
|
|
155
|
+
if (_args.num_values !== undefined &&
|
|
156
|
+
_args.encoding !== undefined &&
|
|
157
|
+
_args.definition_level_encoding !== undefined &&
|
|
158
|
+
_args.repetition_level_encoding !== undefined) {
|
|
159
|
+
return new DataPageHeader(_args);
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read DataPageHeader from input');
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
exports.DataPageHeader = DataPageHeader;
|
|
@@ -0,0 +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,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;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"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.DataPageHeaderV2 = void 0;
|
|
23
|
+
/* tslint:disable */
|
|
24
|
+
/* eslint-disable */
|
|
25
|
+
/*
|
|
26
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
27
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
28
|
+
*/
|
|
29
|
+
const thrift = __importStar(require("thrift"));
|
|
30
|
+
const Statistics = __importStar(require("./Statistics"));
|
|
31
|
+
class DataPageHeaderV2 {
|
|
32
|
+
constructor(args) {
|
|
33
|
+
this.is_compressed = true;
|
|
34
|
+
if (args != null && args.num_values != null) {
|
|
35
|
+
this.num_values = args.num_values;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[num_values] is unset!');
|
|
39
|
+
}
|
|
40
|
+
if (args != null && args.num_nulls != null) {
|
|
41
|
+
this.num_nulls = args.num_nulls;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[num_nulls] is unset!');
|
|
45
|
+
}
|
|
46
|
+
if (args != null && args.num_rows != null) {
|
|
47
|
+
this.num_rows = args.num_rows;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[num_rows] is unset!');
|
|
51
|
+
}
|
|
52
|
+
if (args != null && args.encoding != null) {
|
|
53
|
+
this.encoding = args.encoding;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[encoding] is unset!');
|
|
57
|
+
}
|
|
58
|
+
if (args != null && args.definition_levels_byte_length != null) {
|
|
59
|
+
this.definition_levels_byte_length = args.definition_levels_byte_length;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[definition_levels_byte_length] is unset!');
|
|
63
|
+
}
|
|
64
|
+
if (args != null && args.repetition_levels_byte_length != null) {
|
|
65
|
+
this.repetition_levels_byte_length = args.repetition_levels_byte_length;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[repetition_levels_byte_length] is unset!');
|
|
69
|
+
}
|
|
70
|
+
if (args != null && args.is_compressed != null) {
|
|
71
|
+
this.is_compressed = args.is_compressed;
|
|
72
|
+
}
|
|
73
|
+
if (args != null && args.statistics != null) {
|
|
74
|
+
this.statistics = args.statistics;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
write(output) {
|
|
78
|
+
output.writeStructBegin('DataPageHeaderV2');
|
|
79
|
+
if (this.num_values != null) {
|
|
80
|
+
output.writeFieldBegin('num_values', thrift.Thrift.Type.I32, 1);
|
|
81
|
+
output.writeI32(this.num_values);
|
|
82
|
+
output.writeFieldEnd();
|
|
83
|
+
}
|
|
84
|
+
if (this.num_nulls != null) {
|
|
85
|
+
output.writeFieldBegin('num_nulls', thrift.Thrift.Type.I32, 2);
|
|
86
|
+
output.writeI32(this.num_nulls);
|
|
87
|
+
output.writeFieldEnd();
|
|
88
|
+
}
|
|
89
|
+
if (this.num_rows != null) {
|
|
90
|
+
output.writeFieldBegin('num_rows', thrift.Thrift.Type.I32, 3);
|
|
91
|
+
output.writeI32(this.num_rows);
|
|
92
|
+
output.writeFieldEnd();
|
|
93
|
+
}
|
|
94
|
+
if (this.encoding != null) {
|
|
95
|
+
output.writeFieldBegin('encoding', thrift.Thrift.Type.I32, 4);
|
|
96
|
+
output.writeI32(this.encoding);
|
|
97
|
+
output.writeFieldEnd();
|
|
98
|
+
}
|
|
99
|
+
if (this.definition_levels_byte_length != null) {
|
|
100
|
+
output.writeFieldBegin('definition_levels_byte_length', thrift.Thrift.Type.I32, 5);
|
|
101
|
+
output.writeI32(this.definition_levels_byte_length);
|
|
102
|
+
output.writeFieldEnd();
|
|
103
|
+
}
|
|
104
|
+
if (this.repetition_levels_byte_length != null) {
|
|
105
|
+
output.writeFieldBegin('repetition_levels_byte_length', thrift.Thrift.Type.I32, 6);
|
|
106
|
+
output.writeI32(this.repetition_levels_byte_length);
|
|
107
|
+
output.writeFieldEnd();
|
|
108
|
+
}
|
|
109
|
+
if (this.is_compressed != null) {
|
|
110
|
+
output.writeFieldBegin('is_compressed', thrift.Thrift.Type.BOOL, 7);
|
|
111
|
+
output.writeBool(this.is_compressed);
|
|
112
|
+
output.writeFieldEnd();
|
|
113
|
+
}
|
|
114
|
+
if (this.statistics != null) {
|
|
115
|
+
output.writeFieldBegin('statistics', thrift.Thrift.Type.STRUCT, 8);
|
|
116
|
+
this.statistics.write(output);
|
|
117
|
+
output.writeFieldEnd();
|
|
118
|
+
}
|
|
119
|
+
output.writeFieldStop();
|
|
120
|
+
output.writeStructEnd();
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
static read(input) {
|
|
124
|
+
input.readStructBegin();
|
|
125
|
+
let _args = {};
|
|
126
|
+
while (true) {
|
|
127
|
+
const ret = input.readFieldBegin();
|
|
128
|
+
const fieldType = ret.ftype;
|
|
129
|
+
const fieldId = ret.fid;
|
|
130
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
switch (fieldId) {
|
|
134
|
+
case 1:
|
|
135
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
136
|
+
const value_1 = input.readI32();
|
|
137
|
+
_args.num_values = value_1;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
input.skip(fieldType);
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
143
|
+
case 2:
|
|
144
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
145
|
+
const value_2 = input.readI32();
|
|
146
|
+
_args.num_nulls = value_2;
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
input.skip(fieldType);
|
|
150
|
+
}
|
|
151
|
+
break;
|
|
152
|
+
case 3:
|
|
153
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
154
|
+
const value_3 = input.readI32();
|
|
155
|
+
_args.num_rows = value_3;
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
input.skip(fieldType);
|
|
159
|
+
}
|
|
160
|
+
break;
|
|
161
|
+
case 4:
|
|
162
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
163
|
+
const value_4 = input.readI32();
|
|
164
|
+
_args.encoding = value_4;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
input.skip(fieldType);
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
170
|
+
case 5:
|
|
171
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
172
|
+
const value_5 = input.readI32();
|
|
173
|
+
_args.definition_levels_byte_length = value_5;
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
input.skip(fieldType);
|
|
177
|
+
}
|
|
178
|
+
break;
|
|
179
|
+
case 6:
|
|
180
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
181
|
+
const value_6 = input.readI32();
|
|
182
|
+
_args.repetition_levels_byte_length = value_6;
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
input.skip(fieldType);
|
|
186
|
+
}
|
|
187
|
+
break;
|
|
188
|
+
case 7:
|
|
189
|
+
if (fieldType === thrift.Thrift.Type.BOOL) {
|
|
190
|
+
const value_7 = input.readBool();
|
|
191
|
+
_args.is_compressed = value_7;
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
input.skip(fieldType);
|
|
195
|
+
}
|
|
196
|
+
break;
|
|
197
|
+
case 8:
|
|
198
|
+
if (fieldType === thrift.Thrift.Type.STRUCT) {
|
|
199
|
+
const value_8 = Statistics.Statistics.read(input);
|
|
200
|
+
_args.statistics = value_8;
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
input.skip(fieldType);
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
default: {
|
|
207
|
+
input.skip(fieldType);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
input.readFieldEnd();
|
|
211
|
+
}
|
|
212
|
+
input.readStructEnd();
|
|
213
|
+
if (_args.num_values !== undefined &&
|
|
214
|
+
_args.num_nulls !== undefined &&
|
|
215
|
+
_args.num_rows !== undefined &&
|
|
216
|
+
_args.encoding !== undefined &&
|
|
217
|
+
_args.definition_levels_byte_length !== undefined &&
|
|
218
|
+
_args.repetition_levels_byte_length !== undefined) {
|
|
219
|
+
return new DataPageHeaderV2(_args);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read DataPageHeaderV2 from input');
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
exports.DataPageHeaderV2 = DataPageHeaderV2;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateType.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/DateType.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,MAAM,WAAW,aAAa;CAAG;AACjC,qBAAa,QAAQ;;IAEZ,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAM9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,QAAQ;CAmBtD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.DateType = void 0;
|
|
23
|
+
/* tslint:disable */
|
|
24
|
+
/* eslint-disable */
|
|
25
|
+
/*
|
|
26
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
27
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
28
|
+
*/
|
|
29
|
+
const thrift = __importStar(require("thrift"));
|
|
30
|
+
class DateType {
|
|
31
|
+
constructor() { }
|
|
32
|
+
write(output) {
|
|
33
|
+
output.writeStructBegin('DateType');
|
|
34
|
+
output.writeFieldStop();
|
|
35
|
+
output.writeStructEnd();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
static read(input) {
|
|
39
|
+
input.readStructBegin();
|
|
40
|
+
while (true) {
|
|
41
|
+
const ret = input.readFieldBegin();
|
|
42
|
+
const fieldType = ret.ftype;
|
|
43
|
+
const fieldId = ret.fid;
|
|
44
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
switch (fieldId) {
|
|
48
|
+
default: {
|
|
49
|
+
input.skip(fieldType);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
input.readFieldEnd();
|
|
53
|
+
}
|
|
54
|
+
input.readStructEnd();
|
|
55
|
+
return new DateType();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.DateType = DateType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DecimalType.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/DecimalType.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,qBAAa,WAAW;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;gBACb,IAAI,EAAE,gBAAgB;IAkB3B,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAgB9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,WAAW;CA2CzD"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.DecimalType = void 0;
|
|
23
|
+
/* tslint:disable */
|
|
24
|
+
/* eslint-disable */
|
|
25
|
+
/*
|
|
26
|
+
* Autogenerated by @creditkarma/thrift-typescript v3.7.2
|
|
27
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
28
|
+
*/
|
|
29
|
+
const thrift = __importStar(require("thrift"));
|
|
30
|
+
class DecimalType {
|
|
31
|
+
constructor(args) {
|
|
32
|
+
if (args != null && args.scale != null) {
|
|
33
|
+
this.scale = args.scale;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[scale] is unset!');
|
|
37
|
+
}
|
|
38
|
+
if (args != null && args.precision != null) {
|
|
39
|
+
this.precision = args.precision;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[precision] is unset!');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
write(output) {
|
|
46
|
+
output.writeStructBegin('DecimalType');
|
|
47
|
+
if (this.scale != null) {
|
|
48
|
+
output.writeFieldBegin('scale', thrift.Thrift.Type.I32, 1);
|
|
49
|
+
output.writeI32(this.scale);
|
|
50
|
+
output.writeFieldEnd();
|
|
51
|
+
}
|
|
52
|
+
if (this.precision != null) {
|
|
53
|
+
output.writeFieldBegin('precision', thrift.Thrift.Type.I32, 2);
|
|
54
|
+
output.writeI32(this.precision);
|
|
55
|
+
output.writeFieldEnd();
|
|
56
|
+
}
|
|
57
|
+
output.writeFieldStop();
|
|
58
|
+
output.writeStructEnd();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
static read(input) {
|
|
62
|
+
input.readStructBegin();
|
|
63
|
+
let _args = {};
|
|
64
|
+
while (true) {
|
|
65
|
+
const ret = input.readFieldBegin();
|
|
66
|
+
const fieldType = ret.ftype;
|
|
67
|
+
const fieldId = ret.fid;
|
|
68
|
+
if (fieldType === thrift.Thrift.Type.STOP) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
switch (fieldId) {
|
|
72
|
+
case 1:
|
|
73
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
74
|
+
const value_1 = input.readI32();
|
|
75
|
+
_args.scale = value_1;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
input.skip(fieldType);
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
case 2:
|
|
82
|
+
if (fieldType === thrift.Thrift.Type.I32) {
|
|
83
|
+
const value_2 = input.readI32();
|
|
84
|
+
_args.precision = value_2;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
input.skip(fieldType);
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
default: {
|
|
91
|
+
input.skip(fieldType);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
input.readFieldEnd();
|
|
95
|
+
}
|
|
96
|
+
input.readStructEnd();
|
|
97
|
+
if (_args.scale !== undefined && _args.precision !== undefined) {
|
|
98
|
+
return new DecimalType(_args);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read DecimalType from input');
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.DecimalType = DecimalType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DictionaryPageHeader.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/DictionaryPageHeader.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AACD,qBAAa,oBAAoB;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;gBACf,IAAI,EAAE,yBAAyB;IAqBpC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAqB9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,oBAAoB;CAmDlE"}
|