@loaders.gl/parquet 4.0.0-alpha.22 → 4.0.0-alpha.24

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