@loaders.gl/parquet 4.2.0-alpha.3 → 4.2.0-alpha.5

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