@loaders.gl/parquet 3.4.11 → 3.4.13

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