@loaders.gl/parquet 4.2.0-alpha.4 → 4.2.0-alpha.6

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 (269) hide show
  1. package/dist/index.cjs +385 -598
  2. package/dist/index.cjs.map +7 -0
  3. package/dist/index.d.ts +12 -12
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +6 -1
  6. package/dist/lib/arrow/convert-columns-to-row-group.js +1 -2
  7. package/dist/lib/arrow/convert-row-group-to-columns.js +8 -6
  8. package/dist/lib/arrow/convert-schema-from-parquet.d.ts +3 -3
  9. package/dist/lib/arrow/convert-schema-from-parquet.d.ts.map +1 -1
  10. package/dist/lib/arrow/convert-schema-from-parquet.js +71 -82
  11. package/dist/lib/arrow/convert-schema-to-parquet.d.ts +1 -1
  12. package/dist/lib/arrow/convert-schema-to-parquet.d.ts.map +1 -1
  13. package/dist/lib/arrow/convert-schema-to-parquet.js +65 -35
  14. package/dist/lib/constants.js +15 -2
  15. package/dist/lib/parsers/get-parquet-schema.d.ts +1 -1
  16. package/dist/lib/parsers/get-parquet-schema.d.ts.map +1 -1
  17. package/dist/lib/parsers/get-parquet-schema.js +9 -7
  18. package/dist/lib/parsers/parse-geoparquet.d.ts +1 -1
  19. package/dist/lib/parsers/parse-geoparquet.d.ts.map +1 -1
  20. package/dist/lib/parsers/parse-geoparquet.js +47 -45
  21. package/dist/lib/parsers/parse-parquet-to-columns.d.ts +1 -1
  22. package/dist/lib/parsers/parse-parquet-to-columns.d.ts.map +1 -1
  23. package/dist/lib/parsers/parse-parquet-to-columns.js +36 -25
  24. package/dist/lib/parsers/parse-parquet.d.ts +1 -1
  25. package/dist/lib/parsers/parse-parquet.d.ts.map +1 -1
  26. package/dist/lib/parsers/parse-parquet.js +62 -50
  27. package/dist/lib/wasm/encode-parquet-wasm.d.ts +1 -1
  28. package/dist/lib/wasm/encode-parquet-wasm.d.ts.map +1 -1
  29. package/dist/lib/wasm/encode-parquet-wasm.js +49 -12
  30. package/dist/lib/wasm/load-wasm.js +13 -10
  31. package/dist/lib/wasm/parse-parquet-wasm.d.ts +1 -1
  32. package/dist/lib/wasm/parse-parquet-wasm.d.ts.map +1 -1
  33. package/dist/lib/wasm/parse-parquet-wasm.js +19 -15
  34. package/dist/parquet-loader.d.ts +1 -1
  35. package/dist/parquet-loader.d.ts.map +1 -1
  36. package/dist/parquet-loader.js +78 -65
  37. package/dist/parquet-wasm-loader.js +25 -28
  38. package/dist/parquet-wasm-writer.js +19 -23
  39. package/dist/parquet-writer.js +17 -13
  40. package/dist/parquetjs/codecs/declare.d.ts +1 -1
  41. package/dist/parquetjs/codecs/declare.d.ts.map +1 -1
  42. package/dist/parquetjs/codecs/declare.js +0 -1
  43. package/dist/parquetjs/codecs/dictionary.js +4 -8
  44. package/dist/parquetjs/codecs/index.d.ts +3 -3
  45. package/dist/parquetjs/codecs/index.d.ts.map +1 -1
  46. package/dist/parquetjs/codecs/index.js +20 -17
  47. package/dist/parquetjs/codecs/plain.d.ts +2 -2
  48. package/dist/parquetjs/codecs/plain.d.ts.map +1 -1
  49. package/dist/parquetjs/codecs/plain.js +166 -162
  50. package/dist/parquetjs/codecs/rle.d.ts +2 -2
  51. package/dist/parquetjs/codecs/rle.d.ts.map +1 -1
  52. package/dist/parquetjs/codecs/rle.js +124 -105
  53. package/dist/parquetjs/compression.d.ts +1 -1
  54. package/dist/parquetjs/compression.d.ts.map +1 -1
  55. package/dist/parquetjs/compression.js +157 -43
  56. package/dist/parquetjs/encoder/parquet-encoder.d.ts +3 -3
  57. package/dist/parquetjs/encoder/parquet-encoder.d.ts.map +1 -1
  58. package/dist/parquetjs/encoder/parquet-encoder.js +420 -275
  59. package/dist/parquetjs/parquet-thrift/BoundaryOrder.js +12 -7
  60. package/dist/parquetjs/parquet-thrift/BsonType.js +31 -27
  61. package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts +1 -1
  62. package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts.map +1 -1
  63. package/dist/parquetjs/parquet-thrift/ColumnChunk.js +182 -166
  64. package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts +1 -1
  65. package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts.map +1 -1
  66. package/dist/parquetjs/parquet-thrift/ColumnIndex.js +183 -166
  67. package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts +6 -6
  68. package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts.map +1 -1
  69. package/dist/parquetjs/parquet-thrift/ColumnMetaData.js +372 -333
  70. package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts +1 -1
  71. package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts.map +1 -1
  72. package/dist/parquetjs/parquet-thrift/ColumnOrder.js +74 -68
  73. package/dist/parquetjs/parquet-thrift/CompressionCodec.js +17 -12
  74. package/dist/parquetjs/parquet-thrift/ConvertedType.js +31 -26
  75. package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts +2 -2
  76. package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts.map +1 -1
  77. package/dist/parquetjs/parquet-thrift/DataPageHeader.js +141 -124
  78. package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts +2 -2
  79. package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts.map +1 -1
  80. package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js +205 -181
  81. package/dist/parquetjs/parquet-thrift/DateType.js +31 -27
  82. package/dist/parquetjs/parquet-thrift/DecimalType.js +78 -69
  83. package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts +1 -1
  84. package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts.map +1 -1
  85. package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js +96 -86
  86. package/dist/parquetjs/parquet-thrift/Encoding.js +17 -12
  87. package/dist/parquetjs/parquet-thrift/EnumType.js +31 -27
  88. package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js +12 -7
  89. package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts +4 -4
  90. package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts.map +1 -1
  91. package/dist/parquetjs/parquet-thrift/FileMetaData.js +224 -205
  92. package/dist/parquetjs/parquet-thrift/IndexPageHeader.js +31 -27
  93. package/dist/parquetjs/parquet-thrift/IntType.js +78 -69
  94. package/dist/parquetjs/parquet-thrift/JsonType.js +31 -27
  95. package/dist/parquetjs/parquet-thrift/KeyValue.js +75 -67
  96. package/dist/parquetjs/parquet-thrift/ListType.js +31 -27
  97. package/dist/parquetjs/parquet-thrift/LogicalType.d.ts +13 -13
  98. package/dist/parquetjs/parquet-thrift/LogicalType.d.ts.map +1 -1
  99. package/dist/parquetjs/parquet-thrift/LogicalType.js +338 -344
  100. package/dist/parquetjs/parquet-thrift/MapType.js +31 -27
  101. package/dist/parquetjs/parquet-thrift/MicroSeconds.js +31 -27
  102. package/dist/parquetjs/parquet-thrift/MilliSeconds.js +31 -27
  103. package/dist/parquetjs/parquet-thrift/NullType.js +31 -27
  104. package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts +1 -1
  105. package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts.map +1 -1
  106. package/dist/parquetjs/parquet-thrift/OffsetIndex.js +67 -60
  107. package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts +2 -2
  108. package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts.map +1 -1
  109. package/dist/parquetjs/parquet-thrift/PageEncodingStats.js +101 -88
  110. package/dist/parquetjs/parquet-thrift/PageHeader.d.ts +5 -5
  111. package/dist/parquetjs/parquet-thrift/PageHeader.d.ts.map +1 -1
  112. package/dist/parquetjs/parquet-thrift/PageHeader.js +193 -175
  113. package/dist/parquetjs/parquet-thrift/PageLocation.js +111 -96
  114. package/dist/parquetjs/parquet-thrift/PageType.js +13 -8
  115. package/dist/parquetjs/parquet-thrift/RowGroup.d.ts +2 -2
  116. package/dist/parquetjs/parquet-thrift/RowGroup.d.ts.map +1 -1
  117. package/dist/parquetjs/parquet-thrift/RowGroup.js +149 -133
  118. package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts +4 -4
  119. package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts.map +1 -1
  120. package/dist/parquetjs/parquet-thrift/SchemaElement.js +221 -205
  121. package/dist/parquetjs/parquet-thrift/SortingColumn.js +101 -88
  122. package/dist/parquetjs/parquet-thrift/Statistics.js +149 -137
  123. package/dist/parquetjs/parquet-thrift/StringType.js +31 -27
  124. package/dist/parquetjs/parquet-thrift/TimeType.d.ts +1 -1
  125. package/dist/parquetjs/parquet-thrift/TimeType.d.ts.map +1 -1
  126. package/dist/parquetjs/parquet-thrift/TimeType.js +78 -69
  127. package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts +2 -2
  128. package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts.map +1 -1
  129. package/dist/parquetjs/parquet-thrift/TimeUnit.js +96 -91
  130. package/dist/parquetjs/parquet-thrift/TimestampType.d.ts +1 -1
  131. package/dist/parquetjs/parquet-thrift/TimestampType.d.ts.map +1 -1
  132. package/dist/parquetjs/parquet-thrift/TimestampType.js +78 -69
  133. package/dist/parquetjs/parquet-thrift/Type.js +17 -12
  134. package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js +31 -27
  135. package/dist/parquetjs/parquet-thrift/UUIDType.js +31 -27
  136. package/dist/parquetjs/parquet-thrift/index.d.ts +44 -44
  137. package/dist/parquetjs/parquet-thrift/index.d.ts.map +1 -1
  138. package/dist/parquetjs/parquet-thrift/index.js +6 -1
  139. package/dist/parquetjs/parser/decoders.d.ts +3 -3
  140. package/dist/parquetjs/parser/decoders.d.ts.map +1 -1
  141. package/dist/parquetjs/parser/decoders.js +306 -242
  142. package/dist/parquetjs/parser/parquet-reader.d.ts +3 -3
  143. package/dist/parquetjs/parser/parquet-reader.d.ts.map +1 -1
  144. package/dist/parquetjs/parser/parquet-reader.js +183 -158
  145. package/dist/parquetjs/schema/declare.d.ts +1 -1
  146. package/dist/parquetjs/schema/declare.d.ts.map +1 -1
  147. package/dist/parquetjs/schema/declare.js +10 -9
  148. package/dist/parquetjs/schema/schema.d.ts +1 -1
  149. package/dist/parquetjs/schema/schema.d.ts.map +1 -1
  150. package/dist/parquetjs/schema/schema.js +142 -120
  151. package/dist/parquetjs/schema/shred.d.ts +2 -2
  152. package/dist/parquetjs/schema/shred.d.ts.map +1 -1
  153. package/dist/parquetjs/schema/shred.js +301 -204
  154. package/dist/parquetjs/schema/types.d.ts +1 -1
  155. package/dist/parquetjs/schema/types.d.ts.map +1 -1
  156. package/dist/parquetjs/schema/types.js +329 -314
  157. package/dist/parquetjs/utils/file-utils.js +24 -23
  158. package/dist/parquetjs/utils/read-utils.d.ts +1 -1
  159. package/dist/parquetjs/utils/read-utils.d.ts.map +1 -1
  160. package/dist/parquetjs/utils/read-utils.js +76 -69
  161. package/dist/polyfills/buffer/buffer-polyfill.browser.js +8 -3
  162. package/dist/polyfills/buffer/buffer-polyfill.node.js +13 -8
  163. package/dist/polyfills/buffer/buffer.js +1747 -1367
  164. package/dist/polyfills/buffer/index.d.ts +3 -3
  165. package/dist/polyfills/buffer/index.d.ts.map +1 -1
  166. package/dist/polyfills/buffer/index.js +5 -1
  167. package/dist/polyfills/buffer/install-buffer-polyfill.d.ts +28 -1
  168. package/dist/polyfills/buffer/install-buffer-polyfill.d.ts.map +1 -1
  169. package/dist/polyfills/buffer/install-buffer-polyfill.js +2 -1
  170. package/dist/polyfills/util.js +4 -1
  171. package/dist/workers/parquet-worker.js +3 -1
  172. package/package.json +21 -19
  173. package/src/index.ts +1 -1
  174. package/src/lib/parsers/parse-parquet-to-columns.ts +1 -1
  175. package/src/lib/parsers/parse-parquet.ts +1 -1
  176. package/src/parquetjs/encoder/parquet-encoder.ts +2 -2
  177. package/src/parquetjs/parser/decoders.ts +2 -2
  178. package/src/parquetjs/parser/parquet-reader.ts +3 -2
  179. package/src/parquetjs/schema/schema.ts +1 -1
  180. package/src/parquetjs/schema/types.ts +1 -0
  181. package/src/parquetjs/utils/read-utils.ts +2 -2
  182. package/src/polyfills/buffer/buffer.ts +0 -3
  183. package/dist/index.js.map +0 -1
  184. package/dist/lib/arrow/convert-columns-to-row-group.js.map +0 -1
  185. package/dist/lib/arrow/convert-row-group-to-columns.js.map +0 -1
  186. package/dist/lib/arrow/convert-schema-from-parquet.js.map +0 -1
  187. package/dist/lib/arrow/convert-schema-to-parquet.js.map +0 -1
  188. package/dist/lib/constants.js.map +0 -1
  189. package/dist/lib/parsers/get-parquet-schema.js.map +0 -1
  190. package/dist/lib/parsers/parse-geoparquet.js.map +0 -1
  191. package/dist/lib/parsers/parse-parquet-to-columns.js.map +0 -1
  192. package/dist/lib/parsers/parse-parquet.js.map +0 -1
  193. package/dist/lib/wasm/encode-parquet-wasm.js.map +0 -1
  194. package/dist/lib/wasm/load-wasm.js.map +0 -1
  195. package/dist/lib/wasm/parse-parquet-wasm.js.map +0 -1
  196. package/dist/lib/wip/convert-schema-deep.java.disabled +0 -910
  197. package/dist/lib/wip/convert-schema-deep.rs.disabled +0 -976
  198. package/dist/parquet-loader.js.map +0 -1
  199. package/dist/parquet-wasm-loader.js.map +0 -1
  200. package/dist/parquet-wasm-writer.js.map +0 -1
  201. package/dist/parquet-writer.js.map +0 -1
  202. package/dist/parquetjs/LICENSE +0 -20
  203. package/dist/parquetjs/codecs/declare.js.map +0 -1
  204. package/dist/parquetjs/codecs/dictionary.js.map +0 -1
  205. package/dist/parquetjs/codecs/index.js.map +0 -1
  206. package/dist/parquetjs/codecs/plain.js.map +0 -1
  207. package/dist/parquetjs/codecs/rle.js.map +0 -1
  208. package/dist/parquetjs/compression.js.map +0 -1
  209. package/dist/parquetjs/encoder/parquet-encoder.js.map +0 -1
  210. package/dist/parquetjs/modules.d.ts +0 -21
  211. package/dist/parquetjs/parquet-thrift/BoundaryOrder.js.map +0 -1
  212. package/dist/parquetjs/parquet-thrift/BsonType.js.map +0 -1
  213. package/dist/parquetjs/parquet-thrift/ColumnChunk.js.map +0 -1
  214. package/dist/parquetjs/parquet-thrift/ColumnIndex.js.map +0 -1
  215. package/dist/parquetjs/parquet-thrift/ColumnMetaData.js.map +0 -1
  216. package/dist/parquetjs/parquet-thrift/ColumnOrder.js.map +0 -1
  217. package/dist/parquetjs/parquet-thrift/CompressionCodec.js.map +0 -1
  218. package/dist/parquetjs/parquet-thrift/ConvertedType.js.map +0 -1
  219. package/dist/parquetjs/parquet-thrift/DataPageHeader.js.map +0 -1
  220. package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js.map +0 -1
  221. package/dist/parquetjs/parquet-thrift/DateType.js.map +0 -1
  222. package/dist/parquetjs/parquet-thrift/DecimalType.js.map +0 -1
  223. package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js.map +0 -1
  224. package/dist/parquetjs/parquet-thrift/Encoding.js.map +0 -1
  225. package/dist/parquetjs/parquet-thrift/EnumType.js.map +0 -1
  226. package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js.map +0 -1
  227. package/dist/parquetjs/parquet-thrift/FileMetaData.js.map +0 -1
  228. package/dist/parquetjs/parquet-thrift/IndexPageHeader.js.map +0 -1
  229. package/dist/parquetjs/parquet-thrift/IntType.js.map +0 -1
  230. package/dist/parquetjs/parquet-thrift/JsonType.js.map +0 -1
  231. package/dist/parquetjs/parquet-thrift/KeyValue.js.map +0 -1
  232. package/dist/parquetjs/parquet-thrift/ListType.js.map +0 -1
  233. package/dist/parquetjs/parquet-thrift/LogicalType.js.map +0 -1
  234. package/dist/parquetjs/parquet-thrift/MapType.js.map +0 -1
  235. package/dist/parquetjs/parquet-thrift/MicroSeconds.js.map +0 -1
  236. package/dist/parquetjs/parquet-thrift/MilliSeconds.js.map +0 -1
  237. package/dist/parquetjs/parquet-thrift/NullType.js.map +0 -1
  238. package/dist/parquetjs/parquet-thrift/OffsetIndex.js.map +0 -1
  239. package/dist/parquetjs/parquet-thrift/PageEncodingStats.js.map +0 -1
  240. package/dist/parquetjs/parquet-thrift/PageHeader.js.map +0 -1
  241. package/dist/parquetjs/parquet-thrift/PageLocation.js.map +0 -1
  242. package/dist/parquetjs/parquet-thrift/PageType.js.map +0 -1
  243. package/dist/parquetjs/parquet-thrift/RowGroup.js.map +0 -1
  244. package/dist/parquetjs/parquet-thrift/SchemaElement.js.map +0 -1
  245. package/dist/parquetjs/parquet-thrift/SortingColumn.js.map +0 -1
  246. package/dist/parquetjs/parquet-thrift/Statistics.js.map +0 -1
  247. package/dist/parquetjs/parquet-thrift/StringType.js.map +0 -1
  248. package/dist/parquetjs/parquet-thrift/TimeType.js.map +0 -1
  249. package/dist/parquetjs/parquet-thrift/TimeUnit.js.map +0 -1
  250. package/dist/parquetjs/parquet-thrift/TimestampType.js.map +0 -1
  251. package/dist/parquetjs/parquet-thrift/Type.js.map +0 -1
  252. package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js.map +0 -1
  253. package/dist/parquetjs/parquet-thrift/UUIDType.js.map +0 -1
  254. package/dist/parquetjs/parquet-thrift/index.js.map +0 -1
  255. package/dist/parquetjs/parser/decoders.js.map +0 -1
  256. package/dist/parquetjs/parser/parquet-reader.js.map +0 -1
  257. package/dist/parquetjs/schema/declare.js.map +0 -1
  258. package/dist/parquetjs/schema/schema.js.map +0 -1
  259. package/dist/parquetjs/schema/shred.js.map +0 -1
  260. package/dist/parquetjs/schema/types.js.map +0 -1
  261. package/dist/parquetjs/utils/file-utils.js.map +0 -1
  262. package/dist/parquetjs/utils/read-utils.js.map +0 -1
  263. package/dist/polyfills/buffer/buffer-polyfill.browser.js.map +0 -1
  264. package/dist/polyfills/buffer/buffer-polyfill.node.js.map +0 -1
  265. package/dist/polyfills/buffer/buffer.js.map +0 -1
  266. package/dist/polyfills/buffer/index.js.map +0 -1
  267. package/dist/polyfills/buffer/install-buffer-polyfill.js.map +0 -1
  268. package/dist/polyfills/util.js.map +0 -1
  269. package/dist/workers/parquet-worker.js.map +0 -1
@@ -1,346 +1,385 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /*
4
+ * Autogenerated by @creditkarma/thrift-typescript v3.7.2
5
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
6
+ */
1
7
  import Int64 from 'node-int64';
2
8
  import * as thrift from 'thrift';
3
9
  import * as KeyValue from "./KeyValue.js";
4
10
  import * as PageEncodingStats from "./PageEncodingStats.js";
5
11
  import * as Statistics from "./Statistics.js";
6
12
  export class ColumnMetaData {
7
- constructor(args) {
8
- this.type = void 0;
9
- this.encodings = void 0;
10
- this.path_in_schema = void 0;
11
- this.codec = void 0;
12
- this.num_values = void 0;
13
- this.total_uncompressed_size = void 0;
14
- this.total_compressed_size = void 0;
15
- this.key_value_metadata = void 0;
16
- this.data_page_offset = void 0;
17
- this.index_page_offset = void 0;
18
- this.dictionary_page_offset = void 0;
19
- this.statistics = void 0;
20
- this.encoding_stats = void 0;
21
- if (args != null && args.type != null) {
22
- this.type = args.type;
23
- } else {
24
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[type] is unset!');
25
- }
26
- if (args != null && args.encodings != null) {
27
- this.encodings = args.encodings;
28
- } else {
29
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[encodings] is unset!');
30
- }
31
- if (args != null && args.path_in_schema != null) {
32
- this.path_in_schema = args.path_in_schema;
33
- } else {
34
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[path_in_schema] is unset!');
35
- }
36
- if (args != null && args.codec != null) {
37
- this.codec = args.codec;
38
- } else {
39
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[codec] is unset!');
40
- }
41
- if (args != null && args.num_values != null) {
42
- if (typeof args.num_values === 'number') {
43
- this.num_values = new Int64(args.num_values);
44
- } else {
45
- this.num_values = args.num_values;
46
- }
47
- } else {
48
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[num_values] is unset!');
49
- }
50
- if (args != null && args.total_uncompressed_size != null) {
51
- if (typeof args.total_uncompressed_size === 'number') {
52
- this.total_uncompressed_size = new Int64(args.total_uncompressed_size);
53
- } else {
54
- this.total_uncompressed_size = args.total_uncompressed_size;
55
- }
56
- } else {
57
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[total_uncompressed_size] is unset!');
58
- }
59
- if (args != null && args.total_compressed_size != null) {
60
- if (typeof args.total_compressed_size === 'number') {
61
- this.total_compressed_size = new Int64(args.total_compressed_size);
62
- } else {
63
- this.total_compressed_size = args.total_compressed_size;
64
- }
65
- } else {
66
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[total_compressed_size] is unset!');
67
- }
68
- if (args != null && args.key_value_metadata != null) {
69
- this.key_value_metadata = args.key_value_metadata;
70
- }
71
- if (args != null && args.data_page_offset != null) {
72
- if (typeof args.data_page_offset === 'number') {
73
- this.data_page_offset = new Int64(args.data_page_offset);
74
- } else {
75
- this.data_page_offset = args.data_page_offset;
76
- }
77
- } else {
78
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[data_page_offset] is unset!');
79
- }
80
- if (args != null && args.index_page_offset != null) {
81
- if (typeof args.index_page_offset === 'number') {
82
- this.index_page_offset = new Int64(args.index_page_offset);
83
- } else {
84
- this.index_page_offset = args.index_page_offset;
85
- }
86
- }
87
- if (args != null && args.dictionary_page_offset != null) {
88
- if (typeof args.dictionary_page_offset === 'number') {
89
- this.dictionary_page_offset = new Int64(args.dictionary_page_offset);
90
- } else {
91
- this.dictionary_page_offset = args.dictionary_page_offset;
92
- }
93
- }
94
- if (args != null && args.statistics != null) {
95
- this.statistics = args.statistics;
96
- }
97
- if (args != null && args.encoding_stats != null) {
98
- this.encoding_stats = args.encoding_stats;
99
- }
100
- }
101
- write(output) {
102
- output.writeStructBegin('ColumnMetaData');
103
- if (this.type != null) {
104
- output.writeFieldBegin('type', thrift.Thrift.Type.I32, 1);
105
- output.writeI32(this.type);
106
- output.writeFieldEnd();
107
- }
108
- if (this.encodings != null) {
109
- output.writeFieldBegin('encodings', thrift.Thrift.Type.LIST, 2);
110
- output.writeListBegin(thrift.Thrift.Type.I32, this.encodings.length);
111
- this.encodings.forEach(value_1 => {
112
- output.writeI32(value_1);
113
- });
114
- output.writeListEnd();
115
- output.writeFieldEnd();
116
- }
117
- if (this.path_in_schema != null) {
118
- output.writeFieldBegin('path_in_schema', thrift.Thrift.Type.LIST, 3);
119
- output.writeListBegin(thrift.Thrift.Type.STRING, this.path_in_schema.length);
120
- this.path_in_schema.forEach(value_2 => {
121
- output.writeString(value_2);
122
- });
123
- output.writeListEnd();
124
- output.writeFieldEnd();
125
- }
126
- if (this.codec != null) {
127
- output.writeFieldBegin('codec', thrift.Thrift.Type.I32, 4);
128
- output.writeI32(this.codec);
129
- output.writeFieldEnd();
130
- }
131
- if (this.num_values != null) {
132
- output.writeFieldBegin('num_values', thrift.Thrift.Type.I64, 5);
133
- output.writeI64(this.num_values);
134
- output.writeFieldEnd();
135
- }
136
- if (this.total_uncompressed_size != null) {
137
- output.writeFieldBegin('total_uncompressed_size', thrift.Thrift.Type.I64, 6);
138
- output.writeI64(this.total_uncompressed_size);
139
- output.writeFieldEnd();
140
- }
141
- if (this.total_compressed_size != null) {
142
- output.writeFieldBegin('total_compressed_size', thrift.Thrift.Type.I64, 7);
143
- output.writeI64(this.total_compressed_size);
144
- output.writeFieldEnd();
145
- }
146
- if (this.key_value_metadata != null) {
147
- output.writeFieldBegin('key_value_metadata', thrift.Thrift.Type.LIST, 8);
148
- output.writeListBegin(thrift.Thrift.Type.STRUCT, this.key_value_metadata.length);
149
- this.key_value_metadata.forEach(value_3 => {
150
- value_3.write(output);
151
- });
152
- output.writeListEnd();
153
- output.writeFieldEnd();
154
- }
155
- if (this.data_page_offset != null) {
156
- output.writeFieldBegin('data_page_offset', thrift.Thrift.Type.I64, 9);
157
- output.writeI64(this.data_page_offset);
158
- output.writeFieldEnd();
159
- }
160
- if (this.index_page_offset != null) {
161
- output.writeFieldBegin('index_page_offset', thrift.Thrift.Type.I64, 10);
162
- output.writeI64(this.index_page_offset);
163
- output.writeFieldEnd();
164
- }
165
- if (this.dictionary_page_offset != null) {
166
- output.writeFieldBegin('dictionary_page_offset', thrift.Thrift.Type.I64, 11);
167
- output.writeI64(this.dictionary_page_offset);
168
- output.writeFieldEnd();
169
- }
170
- if (this.statistics != null) {
171
- output.writeFieldBegin('statistics', thrift.Thrift.Type.STRUCT, 12);
172
- this.statistics.write(output);
173
- output.writeFieldEnd();
174
- }
175
- if (this.encoding_stats != null) {
176
- output.writeFieldBegin('encoding_stats', thrift.Thrift.Type.LIST, 13);
177
- output.writeListBegin(thrift.Thrift.Type.STRUCT, this.encoding_stats.length);
178
- this.encoding_stats.forEach(value_4 => {
179
- value_4.write(output);
180
- });
181
- output.writeListEnd();
182
- output.writeFieldEnd();
183
- }
184
- output.writeFieldStop();
185
- output.writeStructEnd();
186
- return;
187
- }
188
- static read(input) {
189
- input.readStructBegin();
190
- let _args = {};
191
- while (true) {
192
- const ret = input.readFieldBegin();
193
- const fieldType = ret.ftype;
194
- const fieldId = ret.fid;
195
- if (fieldType === thrift.Thrift.Type.STOP) {
196
- break;
197
- }
198
- switch (fieldId) {
199
- case 1:
200
- if (fieldType === thrift.Thrift.Type.I32) {
201
- const value_5 = input.readI32();
202
- _args.type = value_5;
203
- } else {
204
- input.skip(fieldType);
205
- }
206
- break;
207
- case 2:
208
- if (fieldType === thrift.Thrift.Type.LIST) {
209
- const value_6 = new Array();
210
- const metadata_1 = input.readListBegin();
211
- const size_1 = metadata_1.size;
212
- for (let i_1 = 0; i_1 < size_1; i_1++) {
213
- const value_7 = input.readI32();
214
- value_6.push(value_7);
13
+ type;
14
+ encodings;
15
+ path_in_schema;
16
+ codec;
17
+ num_values;
18
+ total_uncompressed_size;
19
+ total_compressed_size;
20
+ key_value_metadata;
21
+ data_page_offset;
22
+ index_page_offset;
23
+ dictionary_page_offset;
24
+ statistics;
25
+ encoding_stats;
26
+ constructor(args) {
27
+ if (args != null && args.type != null) {
28
+ this.type = args.type;
29
+ }
30
+ else {
31
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[type] is unset!');
32
+ }
33
+ if (args != null && args.encodings != null) {
34
+ this.encodings = args.encodings;
35
+ }
36
+ else {
37
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[encodings] is unset!');
38
+ }
39
+ if (args != null && args.path_in_schema != null) {
40
+ this.path_in_schema = args.path_in_schema;
41
+ }
42
+ else {
43
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[path_in_schema] is unset!');
44
+ }
45
+ if (args != null && args.codec != null) {
46
+ this.codec = args.codec;
47
+ }
48
+ else {
49
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[codec] is unset!');
50
+ }
51
+ if (args != null && args.num_values != null) {
52
+ if (typeof args.num_values === 'number') {
53
+ this.num_values = new Int64(args.num_values);
54
+ }
55
+ else {
56
+ this.num_values = args.num_values;
57
+ }
58
+ }
59
+ else {
60
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[num_values] is unset!');
61
+ }
62
+ if (args != null && args.total_uncompressed_size != null) {
63
+ if (typeof args.total_uncompressed_size === 'number') {
64
+ this.total_uncompressed_size = new Int64(args.total_uncompressed_size);
215
65
  }
216
- input.readListEnd();
217
- _args.encodings = value_6;
218
- } else {
219
- input.skip(fieldType);
220
- }
221
- break;
222
- case 3:
223
- if (fieldType === thrift.Thrift.Type.LIST) {
224
- const value_8 = new Array();
225
- const metadata_2 = input.readListBegin();
226
- const size_2 = metadata_2.size;
227
- for (let i_2 = 0; i_2 < size_2; i_2++) {
228
- const value_9 = input.readString();
229
- value_8.push(value_9);
66
+ else {
67
+ this.total_uncompressed_size = args.total_uncompressed_size;
230
68
  }
231
- input.readListEnd();
232
- _args.path_in_schema = value_8;
233
- } else {
234
- input.skip(fieldType);
235
- }
236
- break;
237
- case 4:
238
- if (fieldType === thrift.Thrift.Type.I32) {
239
- const value_10 = input.readI32();
240
- _args.codec = value_10;
241
- } else {
242
- input.skip(fieldType);
243
- }
244
- break;
245
- case 5:
246
- if (fieldType === thrift.Thrift.Type.I64) {
247
- const value_11 = input.readI64();
248
- _args.num_values = value_11;
249
- } else {
250
- input.skip(fieldType);
251
- }
252
- break;
253
- case 6:
254
- if (fieldType === thrift.Thrift.Type.I64) {
255
- const value_12 = input.readI64();
256
- _args.total_uncompressed_size = value_12;
257
- } else {
258
- input.skip(fieldType);
259
- }
260
- break;
261
- case 7:
262
- if (fieldType === thrift.Thrift.Type.I64) {
263
- const value_13 = input.readI64();
264
- _args.total_compressed_size = value_13;
265
- } else {
266
- input.skip(fieldType);
267
- }
268
- break;
269
- case 8:
270
- if (fieldType === thrift.Thrift.Type.LIST) {
271
- const value_14 = new Array();
272
- const metadata_3 = input.readListBegin();
273
- const size_3 = metadata_3.size;
274
- for (let i_3 = 0; i_3 < size_3; i_3++) {
275
- const value_15 = KeyValue.KeyValue.read(input);
276
- value_14.push(value_15);
69
+ }
70
+ else {
71
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[total_uncompressed_size] is unset!');
72
+ }
73
+ if (args != null && args.total_compressed_size != null) {
74
+ if (typeof args.total_compressed_size === 'number') {
75
+ this.total_compressed_size = new Int64(args.total_compressed_size);
277
76
  }
278
- input.readListEnd();
279
- _args.key_value_metadata = value_14;
280
- } else {
281
- input.skip(fieldType);
282
- }
283
- break;
284
- case 9:
285
- if (fieldType === thrift.Thrift.Type.I64) {
286
- const value_16 = input.readI64();
287
- _args.data_page_offset = value_16;
288
- } else {
289
- input.skip(fieldType);
290
- }
291
- break;
292
- case 10:
293
- if (fieldType === thrift.Thrift.Type.I64) {
294
- const value_17 = input.readI64();
295
- _args.index_page_offset = value_17;
296
- } else {
297
- input.skip(fieldType);
298
- }
299
- break;
300
- case 11:
301
- if (fieldType === thrift.Thrift.Type.I64) {
302
- const value_18 = input.readI64();
303
- _args.dictionary_page_offset = value_18;
304
- } else {
305
- input.skip(fieldType);
306
- }
307
- break;
308
- case 12:
309
- if (fieldType === thrift.Thrift.Type.STRUCT) {
310
- const value_19 = Statistics.Statistics.read(input);
311
- _args.statistics = value_19;
312
- } else {
313
- input.skip(fieldType);
314
- }
315
- break;
316
- case 13:
317
- if (fieldType === thrift.Thrift.Type.LIST) {
318
- const value_20 = new Array();
319
- const metadata_4 = input.readListBegin();
320
- const size_4 = metadata_4.size;
321
- for (let i_4 = 0; i_4 < size_4; i_4++) {
322
- const value_21 = PageEncodingStats.PageEncodingStats.read(input);
323
- value_20.push(value_21);
77
+ else {
78
+ this.total_compressed_size = args.total_compressed_size;
324
79
  }
325
- input.readListEnd();
326
- _args.encoding_stats = value_20;
327
- } else {
328
- input.skip(fieldType);
329
- }
330
- break;
331
- default:
332
- {
333
- input.skip(fieldType);
334
- }
335
- }
336
- input.readFieldEnd();
80
+ }
81
+ else {
82
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[total_compressed_size] is unset!');
83
+ }
84
+ if (args != null && args.key_value_metadata != null) {
85
+ this.key_value_metadata = args.key_value_metadata;
86
+ }
87
+ if (args != null && args.data_page_offset != null) {
88
+ if (typeof args.data_page_offset === 'number') {
89
+ this.data_page_offset = new Int64(args.data_page_offset);
90
+ }
91
+ else {
92
+ this.data_page_offset = args.data_page_offset;
93
+ }
94
+ }
95
+ else {
96
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[data_page_offset] is unset!');
97
+ }
98
+ if (args != null && args.index_page_offset != null) {
99
+ if (typeof args.index_page_offset === 'number') {
100
+ this.index_page_offset = new Int64(args.index_page_offset);
101
+ }
102
+ else {
103
+ this.index_page_offset = args.index_page_offset;
104
+ }
105
+ }
106
+ if (args != null && args.dictionary_page_offset != null) {
107
+ if (typeof args.dictionary_page_offset === 'number') {
108
+ this.dictionary_page_offset = new Int64(args.dictionary_page_offset);
109
+ }
110
+ else {
111
+ this.dictionary_page_offset = args.dictionary_page_offset;
112
+ }
113
+ }
114
+ if (args != null && args.statistics != null) {
115
+ this.statistics = args.statistics;
116
+ }
117
+ if (args != null && args.encoding_stats != null) {
118
+ this.encoding_stats = args.encoding_stats;
119
+ }
120
+ }
121
+ write(output) {
122
+ output.writeStructBegin('ColumnMetaData');
123
+ if (this.type != null) {
124
+ output.writeFieldBegin('type', thrift.Thrift.Type.I32, 1);
125
+ output.writeI32(this.type);
126
+ output.writeFieldEnd();
127
+ }
128
+ if (this.encodings != null) {
129
+ output.writeFieldBegin('encodings', thrift.Thrift.Type.LIST, 2);
130
+ output.writeListBegin(thrift.Thrift.Type.I32, this.encodings.length);
131
+ this.encodings.forEach((value_1) => {
132
+ output.writeI32(value_1);
133
+ });
134
+ output.writeListEnd();
135
+ output.writeFieldEnd();
136
+ }
137
+ if (this.path_in_schema != null) {
138
+ output.writeFieldBegin('path_in_schema', thrift.Thrift.Type.LIST, 3);
139
+ output.writeListBegin(thrift.Thrift.Type.STRING, this.path_in_schema.length);
140
+ this.path_in_schema.forEach((value_2) => {
141
+ output.writeString(value_2);
142
+ });
143
+ output.writeListEnd();
144
+ output.writeFieldEnd();
145
+ }
146
+ if (this.codec != null) {
147
+ output.writeFieldBegin('codec', thrift.Thrift.Type.I32, 4);
148
+ output.writeI32(this.codec);
149
+ output.writeFieldEnd();
150
+ }
151
+ if (this.num_values != null) {
152
+ output.writeFieldBegin('num_values', thrift.Thrift.Type.I64, 5);
153
+ output.writeI64(this.num_values);
154
+ output.writeFieldEnd();
155
+ }
156
+ if (this.total_uncompressed_size != null) {
157
+ output.writeFieldBegin('total_uncompressed_size', thrift.Thrift.Type.I64, 6);
158
+ output.writeI64(this.total_uncompressed_size);
159
+ output.writeFieldEnd();
160
+ }
161
+ if (this.total_compressed_size != null) {
162
+ output.writeFieldBegin('total_compressed_size', thrift.Thrift.Type.I64, 7);
163
+ output.writeI64(this.total_compressed_size);
164
+ output.writeFieldEnd();
165
+ }
166
+ if (this.key_value_metadata != null) {
167
+ output.writeFieldBegin('key_value_metadata', thrift.Thrift.Type.LIST, 8);
168
+ output.writeListBegin(thrift.Thrift.Type.STRUCT, this.key_value_metadata.length);
169
+ this.key_value_metadata.forEach((value_3) => {
170
+ value_3.write(output);
171
+ });
172
+ output.writeListEnd();
173
+ output.writeFieldEnd();
174
+ }
175
+ if (this.data_page_offset != null) {
176
+ output.writeFieldBegin('data_page_offset', thrift.Thrift.Type.I64, 9);
177
+ output.writeI64(this.data_page_offset);
178
+ output.writeFieldEnd();
179
+ }
180
+ if (this.index_page_offset != null) {
181
+ output.writeFieldBegin('index_page_offset', thrift.Thrift.Type.I64, 10);
182
+ output.writeI64(this.index_page_offset);
183
+ output.writeFieldEnd();
184
+ }
185
+ if (this.dictionary_page_offset != null) {
186
+ output.writeFieldBegin('dictionary_page_offset', thrift.Thrift.Type.I64, 11);
187
+ output.writeI64(this.dictionary_page_offset);
188
+ output.writeFieldEnd();
189
+ }
190
+ if (this.statistics != null) {
191
+ output.writeFieldBegin('statistics', thrift.Thrift.Type.STRUCT, 12);
192
+ this.statistics.write(output);
193
+ output.writeFieldEnd();
194
+ }
195
+ if (this.encoding_stats != null) {
196
+ output.writeFieldBegin('encoding_stats', thrift.Thrift.Type.LIST, 13);
197
+ output.writeListBegin(thrift.Thrift.Type.STRUCT, this.encoding_stats.length);
198
+ this.encoding_stats.forEach((value_4) => {
199
+ value_4.write(output);
200
+ });
201
+ output.writeListEnd();
202
+ output.writeFieldEnd();
203
+ }
204
+ output.writeFieldStop();
205
+ output.writeStructEnd();
206
+ return;
337
207
  }
338
- input.readStructEnd();
339
- if (_args.type !== undefined && _args.encodings !== undefined && _args.path_in_schema !== undefined && _args.codec !== undefined && _args.num_values !== undefined && _args.total_uncompressed_size !== undefined && _args.total_compressed_size !== undefined && _args.data_page_offset !== undefined) {
340
- return new ColumnMetaData(_args);
341
- } else {
342
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read ColumnMetaData from input');
208
+ static read(input) {
209
+ input.readStructBegin();
210
+ let _args = {};
211
+ while (true) {
212
+ const ret = input.readFieldBegin();
213
+ const fieldType = ret.ftype;
214
+ const fieldId = ret.fid;
215
+ if (fieldType === thrift.Thrift.Type.STOP) {
216
+ break;
217
+ }
218
+ switch (fieldId) {
219
+ case 1:
220
+ if (fieldType === thrift.Thrift.Type.I32) {
221
+ const value_5 = input.readI32();
222
+ _args.type = value_5;
223
+ }
224
+ else {
225
+ input.skip(fieldType);
226
+ }
227
+ break;
228
+ case 2:
229
+ if (fieldType === thrift.Thrift.Type.LIST) {
230
+ const value_6 = new Array();
231
+ const metadata_1 = input.readListBegin();
232
+ const size_1 = metadata_1.size;
233
+ for (let i_1 = 0; i_1 < size_1; i_1++) {
234
+ const value_7 = input.readI32();
235
+ value_6.push(value_7);
236
+ }
237
+ input.readListEnd();
238
+ _args.encodings = value_6;
239
+ }
240
+ else {
241
+ input.skip(fieldType);
242
+ }
243
+ break;
244
+ case 3:
245
+ if (fieldType === thrift.Thrift.Type.LIST) {
246
+ const value_8 = new Array();
247
+ const metadata_2 = input.readListBegin();
248
+ const size_2 = metadata_2.size;
249
+ for (let i_2 = 0; i_2 < size_2; i_2++) {
250
+ const value_9 = input.readString();
251
+ value_8.push(value_9);
252
+ }
253
+ input.readListEnd();
254
+ _args.path_in_schema = value_8;
255
+ }
256
+ else {
257
+ input.skip(fieldType);
258
+ }
259
+ break;
260
+ case 4:
261
+ if (fieldType === thrift.Thrift.Type.I32) {
262
+ const value_10 = input.readI32();
263
+ _args.codec = value_10;
264
+ }
265
+ else {
266
+ input.skip(fieldType);
267
+ }
268
+ break;
269
+ case 5:
270
+ if (fieldType === thrift.Thrift.Type.I64) {
271
+ const value_11 = input.readI64();
272
+ _args.num_values = value_11;
273
+ }
274
+ else {
275
+ input.skip(fieldType);
276
+ }
277
+ break;
278
+ case 6:
279
+ if (fieldType === thrift.Thrift.Type.I64) {
280
+ const value_12 = input.readI64();
281
+ _args.total_uncompressed_size = value_12;
282
+ }
283
+ else {
284
+ input.skip(fieldType);
285
+ }
286
+ break;
287
+ case 7:
288
+ if (fieldType === thrift.Thrift.Type.I64) {
289
+ const value_13 = input.readI64();
290
+ _args.total_compressed_size = value_13;
291
+ }
292
+ else {
293
+ input.skip(fieldType);
294
+ }
295
+ break;
296
+ case 8:
297
+ if (fieldType === thrift.Thrift.Type.LIST) {
298
+ const value_14 = new Array();
299
+ const metadata_3 = input.readListBegin();
300
+ const size_3 = metadata_3.size;
301
+ for (let i_3 = 0; i_3 < size_3; i_3++) {
302
+ const value_15 = KeyValue.KeyValue.read(input);
303
+ value_14.push(value_15);
304
+ }
305
+ input.readListEnd();
306
+ _args.key_value_metadata = value_14;
307
+ }
308
+ else {
309
+ input.skip(fieldType);
310
+ }
311
+ break;
312
+ case 9:
313
+ if (fieldType === thrift.Thrift.Type.I64) {
314
+ const value_16 = input.readI64();
315
+ _args.data_page_offset = value_16;
316
+ }
317
+ else {
318
+ input.skip(fieldType);
319
+ }
320
+ break;
321
+ case 10:
322
+ if (fieldType === thrift.Thrift.Type.I64) {
323
+ const value_17 = input.readI64();
324
+ _args.index_page_offset = value_17;
325
+ }
326
+ else {
327
+ input.skip(fieldType);
328
+ }
329
+ break;
330
+ case 11:
331
+ if (fieldType === thrift.Thrift.Type.I64) {
332
+ const value_18 = input.readI64();
333
+ _args.dictionary_page_offset = value_18;
334
+ }
335
+ else {
336
+ input.skip(fieldType);
337
+ }
338
+ break;
339
+ case 12:
340
+ if (fieldType === thrift.Thrift.Type.STRUCT) {
341
+ const value_19 = Statistics.Statistics.read(input);
342
+ _args.statistics = value_19;
343
+ }
344
+ else {
345
+ input.skip(fieldType);
346
+ }
347
+ break;
348
+ case 13:
349
+ if (fieldType === thrift.Thrift.Type.LIST) {
350
+ const value_20 = new Array();
351
+ const metadata_4 = input.readListBegin();
352
+ const size_4 = metadata_4.size;
353
+ for (let i_4 = 0; i_4 < size_4; i_4++) {
354
+ const value_21 = PageEncodingStats.PageEncodingStats.read(input);
355
+ value_20.push(value_21);
356
+ }
357
+ input.readListEnd();
358
+ _args.encoding_stats = value_20;
359
+ }
360
+ else {
361
+ input.skip(fieldType);
362
+ }
363
+ break;
364
+ default: {
365
+ input.skip(fieldType);
366
+ }
367
+ }
368
+ input.readFieldEnd();
369
+ }
370
+ input.readStructEnd();
371
+ if (_args.type !== undefined &&
372
+ _args.encodings !== undefined &&
373
+ _args.path_in_schema !== undefined &&
374
+ _args.codec !== undefined &&
375
+ _args.num_values !== undefined &&
376
+ _args.total_uncompressed_size !== undefined &&
377
+ _args.total_compressed_size !== undefined &&
378
+ _args.data_page_offset !== undefined) {
379
+ return new ColumnMetaData(_args);
380
+ }
381
+ else {
382
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read ColumnMetaData from input');
383
+ }
343
384
  }
344
- }
345
385
  }
346
- //# sourceMappingURL=ColumnMetaData.js.map