@loaders.gl/parquet 3.4.11 → 3.4.12

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,106 +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.KeyValue = 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 KeyValue {
35
- constructor(args) {
36
- if (args != null && args.key != null) {
37
- this.key = args.key;
38
- }
39
- else {
40
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[key] is unset!');
41
- }
42
- if (args != null && args.value != null) {
43
- this.value = args.value;
44
- }
45
- }
46
- write(output) {
47
- output.writeStructBegin('KeyValue');
48
- if (this.key != null) {
49
- output.writeFieldBegin('key', thrift.Thrift.Type.STRING, 1);
50
- output.writeString(this.key);
51
- output.writeFieldEnd();
52
- }
53
- if (this.value != null) {
54
- output.writeFieldBegin('value', thrift.Thrift.Type.STRING, 2);
55
- output.writeString(this.value);
56
- output.writeFieldEnd();
57
- }
58
- output.writeFieldStop();
59
- output.writeStructEnd();
60
- return;
61
- }
62
- static read(input) {
63
- input.readStructBegin();
64
- let _args = {};
65
- while (true) {
66
- const ret = input.readFieldBegin();
67
- const fieldType = ret.ftype;
68
- const fieldId = ret.fid;
69
- if (fieldType === thrift.Thrift.Type.STOP) {
70
- break;
71
- }
72
- switch (fieldId) {
73
- case 1:
74
- if (fieldType === thrift.Thrift.Type.STRING) {
75
- const value_1 = input.readString();
76
- _args.key = value_1;
77
- }
78
- else {
79
- input.skip(fieldType);
80
- }
81
- break;
82
- case 2:
83
- if (fieldType === thrift.Thrift.Type.STRING) {
84
- const value_2 = input.readString();
85
- _args.value = value_2;
86
- }
87
- else {
88
- input.skip(fieldType);
89
- }
90
- break;
91
- default: {
92
- input.skip(fieldType);
93
- }
94
- }
95
- input.readFieldEnd();
96
- }
97
- input.readStructEnd();
98
- if (_args.key !== undefined) {
99
- return new KeyValue(_args);
100
- }
101
- else {
102
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read KeyValue from input');
103
- }
104
- }
105
- }
106
- exports.KeyValue = KeyValue;
@@ -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.ListType = 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 ListType {
35
- constructor() { }
36
- write(output) {
37
- output.writeStructBegin('ListType');
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 ListType();
60
- }
61
- }
62
- exports.ListType = ListType;
@@ -1,384 +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.LogicalType = 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 BsonType = __importStar(require("./BsonType"));
35
- const DateType = __importStar(require("./DateType"));
36
- const DecimalType = __importStar(require("./DecimalType"));
37
- const EnumType = __importStar(require("./EnumType"));
38
- const IntType = __importStar(require("./IntType"));
39
- const JsonType = __importStar(require("./JsonType"));
40
- const ListType = __importStar(require("./ListType"));
41
- const MapType = __importStar(require("./MapType"));
42
- const NullType = __importStar(require("./NullType"));
43
- const StringType = __importStar(require("./StringType"));
44
- const TimestampType = __importStar(require("./TimestampType"));
45
- const TimeType = __importStar(require("./TimeType"));
46
- const UUIDType = __importStar(require("./UUIDType"));
47
- class LogicalType {
48
- constructor(args) {
49
- let _fieldsSet = 0;
50
- if (args != null) {
51
- if (args.STRING != null) {
52
- _fieldsSet++;
53
- this.STRING = args.STRING;
54
- }
55
- if (args.MAP != null) {
56
- _fieldsSet++;
57
- this.MAP = args.MAP;
58
- }
59
- if (args.LIST != null) {
60
- _fieldsSet++;
61
- this.LIST = args.LIST;
62
- }
63
- if (args.ENUM != null) {
64
- _fieldsSet++;
65
- this.ENUM = args.ENUM;
66
- }
67
- if (args.DECIMAL != null) {
68
- _fieldsSet++;
69
- this.DECIMAL = args.DECIMAL;
70
- }
71
- if (args.DATE != null) {
72
- _fieldsSet++;
73
- this.DATE = args.DATE;
74
- }
75
- if (args.TIME != null) {
76
- _fieldsSet++;
77
- this.TIME = args.TIME;
78
- }
79
- if (args.TIMESTAMP != null) {
80
- _fieldsSet++;
81
- this.TIMESTAMP = args.TIMESTAMP;
82
- }
83
- if (args.INTEGER != null) {
84
- _fieldsSet++;
85
- this.INTEGER = args.INTEGER;
86
- }
87
- if (args.UNKNOWN != null) {
88
- _fieldsSet++;
89
- this.UNKNOWN = args.UNKNOWN;
90
- }
91
- if (args.JSON != null) {
92
- _fieldsSet++;
93
- this.JSON = args.JSON;
94
- }
95
- if (args.BSON != null) {
96
- _fieldsSet++;
97
- this.BSON = args.BSON;
98
- }
99
- if (args.UUID != null) {
100
- _fieldsSet++;
101
- this.UUID = args.UUID;
102
- }
103
- if (_fieldsSet > 1) {
104
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
105
- }
106
- else if (_fieldsSet < 1) {
107
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
108
- }
109
- }
110
- }
111
- static fromSTRING(STRING) {
112
- return new LogicalType({ STRING });
113
- }
114
- static fromMAP(MAP) {
115
- return new LogicalType({ MAP });
116
- }
117
- static fromLIST(LIST) {
118
- return new LogicalType({ LIST });
119
- }
120
- static fromENUM(ENUM) {
121
- return new LogicalType({ ENUM });
122
- }
123
- static fromDECIMAL(DECIMAL) {
124
- return new LogicalType({ DECIMAL });
125
- }
126
- static fromDATE(DATE) {
127
- return new LogicalType({ DATE });
128
- }
129
- static fromTIME(TIME) {
130
- return new LogicalType({ TIME });
131
- }
132
- static fromTIMESTAMP(TIMESTAMP) {
133
- return new LogicalType({ TIMESTAMP });
134
- }
135
- static fromINTEGER(INTEGER) {
136
- return new LogicalType({ INTEGER });
137
- }
138
- static fromUNKNOWN(UNKNOWN) {
139
- return new LogicalType({ UNKNOWN });
140
- }
141
- static fromJSON(JSON) {
142
- return new LogicalType({ JSON });
143
- }
144
- static fromBSON(BSON) {
145
- return new LogicalType({ BSON });
146
- }
147
- static fromUUID(UUID) {
148
- return new LogicalType({ UUID });
149
- }
150
- write(output) {
151
- output.writeStructBegin('LogicalType');
152
- if (this.STRING != null) {
153
- output.writeFieldBegin('STRING', thrift.Thrift.Type.STRUCT, 1);
154
- this.STRING.write(output);
155
- output.writeFieldEnd();
156
- }
157
- if (this.MAP != null) {
158
- output.writeFieldBegin('MAP', thrift.Thrift.Type.STRUCT, 2);
159
- this.MAP.write(output);
160
- output.writeFieldEnd();
161
- }
162
- if (this.LIST != null) {
163
- output.writeFieldBegin('LIST', thrift.Thrift.Type.STRUCT, 3);
164
- this.LIST.write(output);
165
- output.writeFieldEnd();
166
- }
167
- if (this.ENUM != null) {
168
- output.writeFieldBegin('ENUM', thrift.Thrift.Type.STRUCT, 4);
169
- this.ENUM.write(output);
170
- output.writeFieldEnd();
171
- }
172
- if (this.DECIMAL != null) {
173
- output.writeFieldBegin('DECIMAL', thrift.Thrift.Type.STRUCT, 5);
174
- this.DECIMAL.write(output);
175
- output.writeFieldEnd();
176
- }
177
- if (this.DATE != null) {
178
- output.writeFieldBegin('DATE', thrift.Thrift.Type.STRUCT, 6);
179
- this.DATE.write(output);
180
- output.writeFieldEnd();
181
- }
182
- if (this.TIME != null) {
183
- output.writeFieldBegin('TIME', thrift.Thrift.Type.STRUCT, 7);
184
- this.TIME.write(output);
185
- output.writeFieldEnd();
186
- }
187
- if (this.TIMESTAMP != null) {
188
- output.writeFieldBegin('TIMESTAMP', thrift.Thrift.Type.STRUCT, 8);
189
- this.TIMESTAMP.write(output);
190
- output.writeFieldEnd();
191
- }
192
- if (this.INTEGER != null) {
193
- output.writeFieldBegin('INTEGER', thrift.Thrift.Type.STRUCT, 10);
194
- this.INTEGER.write(output);
195
- output.writeFieldEnd();
196
- }
197
- if (this.UNKNOWN != null) {
198
- output.writeFieldBegin('UNKNOWN', thrift.Thrift.Type.STRUCT, 11);
199
- this.UNKNOWN.write(output);
200
- output.writeFieldEnd();
201
- }
202
- if (this.JSON != null) {
203
- output.writeFieldBegin('JSON', thrift.Thrift.Type.STRUCT, 12);
204
- this.JSON.write(output);
205
- output.writeFieldEnd();
206
- }
207
- if (this.BSON != null) {
208
- output.writeFieldBegin('BSON', thrift.Thrift.Type.STRUCT, 13);
209
- this.BSON.write(output);
210
- output.writeFieldEnd();
211
- }
212
- if (this.UUID != null) {
213
- output.writeFieldBegin('UUID', thrift.Thrift.Type.STRUCT, 14);
214
- this.UUID.write(output);
215
- output.writeFieldEnd();
216
- }
217
- output.writeFieldStop();
218
- output.writeStructEnd();
219
- return;
220
- }
221
- static read(input) {
222
- let _fieldsSet = 0;
223
- let _returnValue = null;
224
- input.readStructBegin();
225
- while (true) {
226
- const ret = input.readFieldBegin();
227
- const fieldType = ret.ftype;
228
- const fieldId = ret.fid;
229
- if (fieldType === thrift.Thrift.Type.STOP) {
230
- break;
231
- }
232
- switch (fieldId) {
233
- case 1:
234
- if (fieldType === thrift.Thrift.Type.STRUCT) {
235
- _fieldsSet++;
236
- const value_1 = StringType.StringType.read(input);
237
- _returnValue = LogicalType.fromSTRING(value_1);
238
- }
239
- else {
240
- input.skip(fieldType);
241
- }
242
- break;
243
- case 2:
244
- if (fieldType === thrift.Thrift.Type.STRUCT) {
245
- _fieldsSet++;
246
- const value_2 = MapType.MapType.read(input);
247
- _returnValue = LogicalType.fromMAP(value_2);
248
- }
249
- else {
250
- input.skip(fieldType);
251
- }
252
- break;
253
- case 3:
254
- if (fieldType === thrift.Thrift.Type.STRUCT) {
255
- _fieldsSet++;
256
- const value_3 = ListType.ListType.read(input);
257
- _returnValue = LogicalType.fromLIST(value_3);
258
- }
259
- else {
260
- input.skip(fieldType);
261
- }
262
- break;
263
- case 4:
264
- if (fieldType === thrift.Thrift.Type.STRUCT) {
265
- _fieldsSet++;
266
- const value_4 = EnumType.EnumType.read(input);
267
- _returnValue = LogicalType.fromENUM(value_4);
268
- }
269
- else {
270
- input.skip(fieldType);
271
- }
272
- break;
273
- case 5:
274
- if (fieldType === thrift.Thrift.Type.STRUCT) {
275
- _fieldsSet++;
276
- const value_5 = DecimalType.DecimalType.read(input);
277
- _returnValue = LogicalType.fromDECIMAL(value_5);
278
- }
279
- else {
280
- input.skip(fieldType);
281
- }
282
- break;
283
- case 6:
284
- if (fieldType === thrift.Thrift.Type.STRUCT) {
285
- _fieldsSet++;
286
- const value_6 = DateType.DateType.read(input);
287
- _returnValue = LogicalType.fromDATE(value_6);
288
- }
289
- else {
290
- input.skip(fieldType);
291
- }
292
- break;
293
- case 7:
294
- if (fieldType === thrift.Thrift.Type.STRUCT) {
295
- _fieldsSet++;
296
- const value_7 = TimeType.TimeType.read(input);
297
- _returnValue = LogicalType.fromTIME(value_7);
298
- }
299
- else {
300
- input.skip(fieldType);
301
- }
302
- break;
303
- case 8:
304
- if (fieldType === thrift.Thrift.Type.STRUCT) {
305
- _fieldsSet++;
306
- const value_8 = TimestampType.TimestampType.read(input);
307
- _returnValue = LogicalType.fromTIMESTAMP(value_8);
308
- }
309
- else {
310
- input.skip(fieldType);
311
- }
312
- break;
313
- case 10:
314
- if (fieldType === thrift.Thrift.Type.STRUCT) {
315
- _fieldsSet++;
316
- const value_9 = IntType.IntType.read(input);
317
- _returnValue = LogicalType.fromINTEGER(value_9);
318
- }
319
- else {
320
- input.skip(fieldType);
321
- }
322
- break;
323
- case 11:
324
- if (fieldType === thrift.Thrift.Type.STRUCT) {
325
- _fieldsSet++;
326
- const value_10 = NullType.NullType.read(input);
327
- _returnValue = LogicalType.fromUNKNOWN(value_10);
328
- }
329
- else {
330
- input.skip(fieldType);
331
- }
332
- break;
333
- case 12:
334
- if (fieldType === thrift.Thrift.Type.STRUCT) {
335
- _fieldsSet++;
336
- const value_11 = JsonType.JsonType.read(input);
337
- _returnValue = LogicalType.fromJSON(value_11);
338
- }
339
- else {
340
- input.skip(fieldType);
341
- }
342
- break;
343
- case 13:
344
- if (fieldType === thrift.Thrift.Type.STRUCT) {
345
- _fieldsSet++;
346
- const value_12 = BsonType.BsonType.read(input);
347
- _returnValue = LogicalType.fromBSON(value_12);
348
- }
349
- else {
350
- input.skip(fieldType);
351
- }
352
- break;
353
- case 14:
354
- if (fieldType === thrift.Thrift.Type.STRUCT) {
355
- _fieldsSet++;
356
- const value_13 = UUIDType.UUIDType.read(input);
357
- _returnValue = LogicalType.fromUUID(value_13);
358
- }
359
- else {
360
- input.skip(fieldType);
361
- }
362
- break;
363
- default: {
364
- input.skip(fieldType);
365
- }
366
- }
367
- input.readFieldEnd();
368
- }
369
- input.readStructEnd();
370
- if (_fieldsSet > 1) {
371
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
372
- }
373
- else if (_fieldsSet < 1) {
374
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
375
- }
376
- if (_returnValue !== null) {
377
- return _returnValue;
378
- }
379
- else {
380
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read data for TUnion');
381
- }
382
- }
383
- }
384
- exports.LogicalType = LogicalType;
@@ -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.MapType = 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 MapType {
35
- constructor() { }
36
- write(output) {
37
- output.writeStructBegin('MapType');
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 MapType();
60
- }
61
- }
62
- exports.MapType = MapType;
@@ -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.MicroSeconds = 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 MicroSeconds {
35
- constructor() { }
36
- write(output) {
37
- output.writeStructBegin('MicroSeconds');
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 MicroSeconds();
60
- }
61
- }
62
- exports.MicroSeconds = MicroSeconds;