@loaders.gl/parquet 3.1.0-alpha.5 → 3.1.0-beta.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 (264) hide show
  1. package/dist/bundle.d.ts +1 -0
  2. package/dist/bundle.d.ts.map +1 -0
  3. package/dist/bundle.js +5 -0
  4. package/dist/constants.d.ts +1 -0
  5. package/dist/constants.d.ts.map +1 -0
  6. package/dist/constants.js +18 -0
  7. package/dist/dist.min.js +27 -13
  8. package/dist/dist.min.js.map +7 -1
  9. package/dist/es5/index.js +6 -26
  10. package/dist/es5/index.js.map +1 -1
  11. package/dist/es5/parquet-loader.js +1 -1
  12. package/dist/es5/parquet-loader.js.map +1 -1
  13. package/dist/es5/parquet-writer.js +1 -1
  14. package/dist/es5/parquet-writer.js.map +1 -1
  15. package/dist/es5/parquetjs/codecs/rle.js +1 -1
  16. package/dist/es5/parquetjs/codecs/rle.js.map +1 -1
  17. package/dist/es5/parquetjs/compression.js +1 -12
  18. package/dist/es5/parquetjs/compression.js.map +1 -1
  19. package/dist/es5/parquetjs/parser/decoders.js +1 -1
  20. package/dist/es5/parquetjs/parser/decoders.js.map +1 -1
  21. package/dist/es5/parquetjs/parser/parquet-envelope-reader.js +0 -13
  22. package/dist/es5/parquetjs/parser/parquet-envelope-reader.js.map +1 -1
  23. package/dist/es5/parquetjs/parser/parquet-reader.js +0 -13
  24. package/dist/es5/parquetjs/parser/parquet-reader.js.map +1 -1
  25. package/dist/es5/parquetjs/utils/file-utils.js +0 -53
  26. package/dist/es5/parquetjs/utils/file-utils.js.map +1 -1
  27. package/dist/esm/index.js +2 -3
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/parquet-loader.js +1 -1
  30. package/dist/esm/parquet-loader.js.map +1 -1
  31. package/dist/esm/parquet-writer.js +1 -1
  32. package/dist/esm/parquet-writer.js.map +1 -1
  33. package/dist/esm/parquetjs/codecs/rle.js +1 -1
  34. package/dist/esm/parquetjs/codecs/rle.js.map +1 -1
  35. package/dist/esm/parquetjs/compression.js +1 -10
  36. package/dist/esm/parquetjs/compression.js.map +1 -1
  37. package/dist/esm/parquetjs/parser/decoders.js +1 -1
  38. package/dist/esm/parquetjs/parser/decoders.js.map +1 -1
  39. package/dist/esm/parquetjs/parser/parquet-envelope-reader.js +0 -9
  40. package/dist/esm/parquetjs/parser/parquet-envelope-reader.js.map +1 -1
  41. package/dist/esm/parquetjs/parser/parquet-reader.js +0 -13
  42. package/dist/esm/parquetjs/parser/parquet-reader.js.map +1 -1
  43. package/dist/esm/parquetjs/utils/file-utils.js +0 -45
  44. package/dist/esm/parquetjs/utils/file-utils.js.map +1 -1
  45. package/dist/index.d.ts +3 -3
  46. package/dist/index.d.ts.map +1 -0
  47. package/dist/index.js +30 -0
  48. package/dist/lib/convert-schema.d.ts +1 -0
  49. package/dist/lib/convert-schema.d.ts.map +1 -0
  50. package/dist/lib/convert-schema.js +70 -0
  51. package/dist/lib/parse-parquet.d.ts +1 -0
  52. package/dist/lib/parse-parquet.d.ts.map +1 -0
  53. package/dist/lib/parse-parquet.js +28 -0
  54. package/dist/lib/read-array-buffer.d.ts +1 -0
  55. package/dist/lib/read-array-buffer.d.ts.map +1 -0
  56. package/dist/lib/read-array-buffer.js +29 -0
  57. package/dist/parquet-loader.d.ts +1 -0
  58. package/dist/parquet-loader.d.ts.map +1 -0
  59. package/dist/parquet-loader.js +27 -0
  60. package/dist/parquet-worker.js +27 -13
  61. package/dist/parquet-worker.js.map +7 -1
  62. package/dist/parquet-writer.d.ts +1 -0
  63. package/dist/parquet-writer.d.ts.map +1 -0
  64. package/dist/parquet-writer.js +21 -0
  65. package/dist/parquetjs/codecs/declare.d.ts +1 -0
  66. package/dist/parquetjs/codecs/declare.d.ts.map +1 -0
  67. package/dist/parquetjs/codecs/declare.js +2 -0
  68. package/dist/parquetjs/codecs/dictionary.d.ts +1 -0
  69. package/dist/parquetjs/codecs/dictionary.d.ts.map +1 -0
  70. package/dist/parquetjs/codecs/dictionary.js +14 -0
  71. package/dist/parquetjs/codecs/index.d.ts +1 -0
  72. package/dist/parquetjs/codecs/index.d.ts.map +1 -0
  73. package/dist/parquetjs/codecs/index.js +51 -0
  74. package/dist/parquetjs/codecs/plain.d.ts +1 -0
  75. package/dist/parquetjs/codecs/plain.d.ts.map +1 -0
  76. package/dist/parquetjs/codecs/plain.js +211 -0
  77. package/dist/parquetjs/codecs/rle.d.ts +1 -0
  78. package/dist/parquetjs/codecs/rle.d.ts.map +1 -0
  79. package/dist/parquetjs/codecs/rle.js +145 -0
  80. package/dist/parquetjs/compression.d.ts +1 -0
  81. package/dist/parquetjs/compression.d.ts.map +1 -0
  82. package/dist/parquetjs/compression.js +168 -0
  83. package/dist/parquetjs/encoder/writer.d.ts +1 -0
  84. package/dist/parquetjs/encoder/writer.d.ts.map +1 -0
  85. package/dist/parquetjs/encoder/writer.js +478 -0
  86. package/dist/parquetjs/file.d.ts +1 -0
  87. package/dist/parquetjs/file.d.ts.map +1 -0
  88. package/dist/parquetjs/file.js +99 -0
  89. package/dist/parquetjs/parquet-thrift/BoundaryOrder.d.ts +1 -0
  90. package/dist/parquetjs/parquet-thrift/BoundaryOrder.d.ts.map +1 -0
  91. package/dist/parquetjs/parquet-thrift/BoundaryOrder.js +15 -0
  92. package/dist/parquetjs/parquet-thrift/BsonType.d.ts +1 -0
  93. package/dist/parquetjs/parquet-thrift/BsonType.d.ts.map +1 -0
  94. package/dist/parquetjs/parquet-thrift/BsonType.js +58 -0
  95. package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts +1 -0
  96. package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts.map +1 -0
  97. package/dist/parquetjs/parquet-thrift/ColumnChunk.js +207 -0
  98. package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts +1 -0
  99. package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts.map +1 -0
  100. package/dist/parquetjs/parquet-thrift/ColumnIndex.js +213 -0
  101. package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts +1 -0
  102. package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts.map +1 -0
  103. package/dist/parquetjs/parquet-thrift/ColumnMetaData.js +398 -0
  104. package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts +1 -0
  105. package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts.map +1 -0
  106. package/dist/parquetjs/parquet-thrift/ColumnOrder.js +104 -0
  107. package/dist/parquetjs/parquet-thrift/CompressionCodec.d.ts +1 -0
  108. package/dist/parquetjs/parquet-thrift/CompressionCodec.d.ts.map +1 -0
  109. package/dist/parquetjs/parquet-thrift/CompressionCodec.js +20 -0
  110. package/dist/parquetjs/parquet-thrift/ConvertedType.d.ts +1 -0
  111. package/dist/parquetjs/parquet-thrift/ConvertedType.d.ts.map +1 -0
  112. package/dist/parquetjs/parquet-thrift/ConvertedType.js +34 -0
  113. package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts +1 -0
  114. package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts.map +1 -0
  115. package/dist/parquetjs/parquet-thrift/DataPageHeader.js +166 -0
  116. package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts +1 -0
  117. package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts.map +1 -0
  118. package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js +226 -0
  119. package/dist/parquetjs/parquet-thrift/DateType.d.ts +1 -0
  120. package/dist/parquetjs/parquet-thrift/DateType.d.ts.map +1 -0
  121. package/dist/parquetjs/parquet-thrift/DateType.js +58 -0
  122. package/dist/parquetjs/parquet-thrift/DecimalType.d.ts +1 -0
  123. package/dist/parquetjs/parquet-thrift/DecimalType.d.ts.map +1 -0
  124. package/dist/parquetjs/parquet-thrift/DecimalType.js +105 -0
  125. package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts +1 -0
  126. package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts.map +1 -0
  127. package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js +122 -0
  128. package/dist/parquetjs/parquet-thrift/Encoding.d.ts +1 -0
  129. package/dist/parquetjs/parquet-thrift/Encoding.d.ts.map +1 -0
  130. package/dist/parquetjs/parquet-thrift/Encoding.js +20 -0
  131. package/dist/parquetjs/parquet-thrift/EnumType.d.ts +1 -0
  132. package/dist/parquetjs/parquet-thrift/EnumType.d.ts.map +1 -0
  133. package/dist/parquetjs/parquet-thrift/EnumType.js +58 -0
  134. package/dist/parquetjs/parquet-thrift/FieldRepetitionType.d.ts +1 -0
  135. package/dist/parquetjs/parquet-thrift/FieldRepetitionType.d.ts.map +1 -0
  136. package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js +15 -0
  137. package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts +1 -0
  138. package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts.map +1 -0
  139. package/dist/parquetjs/parquet-thrift/FileMetaData.js +256 -0
  140. package/dist/parquetjs/parquet-thrift/IndexPageHeader.d.ts +1 -0
  141. package/dist/parquetjs/parquet-thrift/IndexPageHeader.d.ts.map +1 -0
  142. package/dist/parquetjs/parquet-thrift/IndexPageHeader.js +58 -0
  143. package/dist/parquetjs/parquet-thrift/IntType.d.ts +1 -0
  144. package/dist/parquetjs/parquet-thrift/IntType.d.ts.map +1 -0
  145. package/dist/parquetjs/parquet-thrift/IntType.js +105 -0
  146. package/dist/parquetjs/parquet-thrift/JsonType.d.ts +1 -0
  147. package/dist/parquetjs/parquet-thrift/JsonType.d.ts.map +1 -0
  148. package/dist/parquetjs/parquet-thrift/JsonType.js +58 -0
  149. package/dist/parquetjs/parquet-thrift/KeyValue.d.ts +1 -0
  150. package/dist/parquetjs/parquet-thrift/KeyValue.d.ts.map +1 -0
  151. package/dist/parquetjs/parquet-thrift/KeyValue.js +102 -0
  152. package/dist/parquetjs/parquet-thrift/ListType.d.ts +1 -0
  153. package/dist/parquetjs/parquet-thrift/ListType.d.ts.map +1 -0
  154. package/dist/parquetjs/parquet-thrift/ListType.js +58 -0
  155. package/dist/parquetjs/parquet-thrift/LogicalType.d.ts +1 -0
  156. package/dist/parquetjs/parquet-thrift/LogicalType.d.ts.map +1 -0
  157. package/dist/parquetjs/parquet-thrift/LogicalType.js +380 -0
  158. package/dist/parquetjs/parquet-thrift/MapType.d.ts +1 -0
  159. package/dist/parquetjs/parquet-thrift/MapType.d.ts.map +1 -0
  160. package/dist/parquetjs/parquet-thrift/MapType.js +58 -0
  161. package/dist/parquetjs/parquet-thrift/MicroSeconds.d.ts +1 -0
  162. package/dist/parquetjs/parquet-thrift/MicroSeconds.d.ts.map +1 -0
  163. package/dist/parquetjs/parquet-thrift/MicroSeconds.js +58 -0
  164. package/dist/parquetjs/parquet-thrift/MilliSeconds.d.ts +1 -0
  165. package/dist/parquetjs/parquet-thrift/MilliSeconds.d.ts.map +1 -0
  166. package/dist/parquetjs/parquet-thrift/MilliSeconds.js +58 -0
  167. package/dist/parquetjs/parquet-thrift/NullType.d.ts +1 -0
  168. package/dist/parquetjs/parquet-thrift/NullType.d.ts.map +1 -0
  169. package/dist/parquetjs/parquet-thrift/NullType.js +58 -0
  170. package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts +1 -0
  171. package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts.map +1 -0
  172. package/dist/parquetjs/parquet-thrift/OffsetIndex.js +97 -0
  173. package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts +1 -0
  174. package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts.map +1 -0
  175. package/dist/parquetjs/parquet-thrift/PageEncodingStats.js +127 -0
  176. package/dist/parquetjs/parquet-thrift/PageHeader.d.ts +1 -0
  177. package/dist/parquetjs/parquet-thrift/PageHeader.d.ts.map +1 -0
  178. package/dist/parquetjs/parquet-thrift/PageHeader.js +216 -0
  179. package/dist/parquetjs/parquet-thrift/PageLocation.d.ts +1 -0
  180. package/dist/parquetjs/parquet-thrift/PageLocation.d.ts.map +1 -0
  181. package/dist/parquetjs/parquet-thrift/PageLocation.js +141 -0
  182. package/dist/parquetjs/parquet-thrift/PageType.d.ts +1 -0
  183. package/dist/parquetjs/parquet-thrift/PageType.d.ts.map +1 -0
  184. package/dist/parquetjs/parquet-thrift/PageType.js +16 -0
  185. package/dist/parquetjs/parquet-thrift/RowGroup.d.ts +1 -0
  186. package/dist/parquetjs/parquet-thrift/RowGroup.d.ts.map +1 -0
  187. package/dist/parquetjs/parquet-thrift/RowGroup.js +182 -0
  188. package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts +1 -0
  189. package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts.map +1 -0
  190. package/dist/parquetjs/parquet-thrift/SchemaElement.js +239 -0
  191. package/dist/parquetjs/parquet-thrift/SortingColumn.d.ts +1 -0
  192. package/dist/parquetjs/parquet-thrift/SortingColumn.d.ts.map +1 -0
  193. package/dist/parquetjs/parquet-thrift/SortingColumn.js +127 -0
  194. package/dist/parquetjs/parquet-thrift/Statistics.d.ts +1 -0
  195. package/dist/parquetjs/parquet-thrift/Statistics.d.ts.map +1 -0
  196. package/dist/parquetjs/parquet-thrift/Statistics.js +176 -0
  197. package/dist/parquetjs/parquet-thrift/StringType.d.ts +1 -0
  198. package/dist/parquetjs/parquet-thrift/StringType.d.ts.map +1 -0
  199. package/dist/parquetjs/parquet-thrift/StringType.js +58 -0
  200. package/dist/parquetjs/parquet-thrift/TimeType.d.ts +1 -0
  201. package/dist/parquetjs/parquet-thrift/TimeType.d.ts.map +1 -0
  202. package/dist/parquetjs/parquet-thrift/TimeType.js +106 -0
  203. package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts +1 -0
  204. package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts.map +1 -0
  205. package/dist/parquetjs/parquet-thrift/TimeUnit.js +127 -0
  206. package/dist/parquetjs/parquet-thrift/TimestampType.d.ts +1 -0
  207. package/dist/parquetjs/parquet-thrift/TimestampType.d.ts.map +1 -0
  208. package/dist/parquetjs/parquet-thrift/TimestampType.js +106 -0
  209. package/dist/parquetjs/parquet-thrift/Type.d.ts +1 -0
  210. package/dist/parquetjs/parquet-thrift/Type.d.ts.map +1 -0
  211. package/dist/parquetjs/parquet-thrift/Type.js +20 -0
  212. package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.d.ts +1 -0
  213. package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.d.ts.map +1 -0
  214. package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js +58 -0
  215. package/dist/parquetjs/parquet-thrift/UUIDType.d.ts +1 -0
  216. package/dist/parquetjs/parquet-thrift/UUIDType.d.ts.map +1 -0
  217. package/dist/parquetjs/parquet-thrift/UUIDType.js +58 -0
  218. package/dist/parquetjs/parquet-thrift/index.d.ts +1 -0
  219. package/dist/parquetjs/parquet-thrift/index.d.ts.map +1 -0
  220. package/dist/parquetjs/parquet-thrift/index.js +61 -0
  221. package/dist/parquetjs/parser/decoders.d.ts +1 -0
  222. package/dist/parquetjs/parser/decoders.d.ts.map +1 -0
  223. package/dist/parquetjs/parser/decoders.js +318 -0
  224. package/dist/parquetjs/parser/parquet-cursor.d.ts +1 -0
  225. package/dist/parquetjs/parser/parquet-cursor.d.ts.map +1 -0
  226. package/dist/parquetjs/parser/parquet-cursor.js +74 -0
  227. package/dist/parquetjs/parser/parquet-envelope-reader.d.ts +1 -1
  228. package/dist/parquetjs/parser/parquet-envelope-reader.d.ts.map +1 -0
  229. package/dist/parquetjs/parser/parquet-envelope-reader.js +136 -0
  230. package/dist/parquetjs/parser/parquet-reader.d.ts +1 -5
  231. package/dist/parquetjs/parser/parquet-reader.d.ts.map +1 -0
  232. package/dist/parquetjs/parser/parquet-reader.js +134 -0
  233. package/dist/parquetjs/schema/declare.d.ts +1 -0
  234. package/dist/parquetjs/schema/declare.d.ts.map +1 -0
  235. package/dist/parquetjs/schema/declare.js +10 -0
  236. package/dist/parquetjs/schema/schema.d.ts +1 -0
  237. package/dist/parquetjs/schema/schema.d.ts.map +1 -0
  238. package/dist/parquetjs/schema/schema.js +162 -0
  239. package/dist/parquetjs/schema/shred.d.ts +1 -0
  240. package/dist/parquetjs/schema/shred.d.ts.map +1 -0
  241. package/dist/parquetjs/schema/shred.js +225 -0
  242. package/dist/parquetjs/schema/types.d.ts +1 -0
  243. package/dist/parquetjs/schema/types.d.ts.map +1 -0
  244. package/dist/parquetjs/schema/types.js +418 -0
  245. package/dist/parquetjs/utils/buffer-utils.d.ts +1 -0
  246. package/dist/parquetjs/utils/buffer-utils.d.ts.map +1 -0
  247. package/dist/parquetjs/utils/buffer-utils.js +22 -0
  248. package/dist/parquetjs/utils/file-utils.d.ts +1 -4
  249. package/dist/parquetjs/utils/file-utils.d.ts.map +1 -0
  250. package/dist/parquetjs/utils/file-utils.js +46 -0
  251. package/dist/parquetjs/utils/read-utils.d.ts +1 -0
  252. package/dist/parquetjs/utils/read-utils.d.ts.map +1 -0
  253. package/dist/parquetjs/utils/read-utils.js +109 -0
  254. package/dist/workers/parquet-worker.d.ts +1 -0
  255. package/dist/workers/parquet-worker.d.ts.map +1 -0
  256. package/dist/workers/parquet-worker.js +5 -0
  257. package/package.json +7 -8
  258. package/src/index.ts +3 -3
  259. package/src/parquetjs/codecs/rle.ts +1 -1
  260. package/src/parquetjs/compression.ts +10 -10
  261. package/src/parquetjs/parser/decoders.ts +1 -1
  262. package/src/parquetjs/parser/parquet-envelope-reader.ts +0 -11
  263. package/src/parquetjs/parser/parquet-reader.ts +0 -16
  264. package/src/parquetjs/utils/file-utils.ts +0 -49
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.Statistics = void 0;
26
+ /* tslint:disable */
27
+ /* eslint-disable */
28
+ /*
29
+ * Autogenerated by @creditkarma/thrift-typescript v3.7.2
30
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
31
+ */
32
+ const node_int64_1 = __importDefault(require("node-int64"));
33
+ const thrift = __importStar(require("thrift"));
34
+ class Statistics {
35
+ constructor(args) {
36
+ if (args != null && args.max != null) {
37
+ this.max = args.max;
38
+ }
39
+ if (args != null && args.min != null) {
40
+ this.min = args.min;
41
+ }
42
+ if (args != null && args.null_count != null) {
43
+ if (typeof args.null_count === 'number') {
44
+ this.null_count = new node_int64_1.default(args.null_count);
45
+ }
46
+ else {
47
+ this.null_count = args.null_count;
48
+ }
49
+ }
50
+ if (args != null && args.distinct_count != null) {
51
+ if (typeof args.distinct_count === 'number') {
52
+ this.distinct_count = new node_int64_1.default(args.distinct_count);
53
+ }
54
+ else {
55
+ this.distinct_count = args.distinct_count;
56
+ }
57
+ }
58
+ if (args != null && args.max_value != null) {
59
+ this.max_value = args.max_value;
60
+ }
61
+ if (args != null && args.min_value != null) {
62
+ this.min_value = args.min_value;
63
+ }
64
+ }
65
+ write(output) {
66
+ output.writeStructBegin('Statistics');
67
+ if (this.max != null) {
68
+ output.writeFieldBegin('max', thrift.Thrift.Type.STRING, 1);
69
+ output.writeBinary(this.max);
70
+ output.writeFieldEnd();
71
+ }
72
+ if (this.min != null) {
73
+ output.writeFieldBegin('min', thrift.Thrift.Type.STRING, 2);
74
+ output.writeBinary(this.min);
75
+ output.writeFieldEnd();
76
+ }
77
+ if (this.null_count != null) {
78
+ output.writeFieldBegin('null_count', thrift.Thrift.Type.I64, 3);
79
+ output.writeI64(this.null_count);
80
+ output.writeFieldEnd();
81
+ }
82
+ if (this.distinct_count != null) {
83
+ output.writeFieldBegin('distinct_count', thrift.Thrift.Type.I64, 4);
84
+ output.writeI64(this.distinct_count);
85
+ output.writeFieldEnd();
86
+ }
87
+ if (this.max_value != null) {
88
+ output.writeFieldBegin('max_value', thrift.Thrift.Type.STRING, 5);
89
+ output.writeBinary(this.max_value);
90
+ output.writeFieldEnd();
91
+ }
92
+ if (this.min_value != null) {
93
+ output.writeFieldBegin('min_value', thrift.Thrift.Type.STRING, 6);
94
+ output.writeBinary(this.min_value);
95
+ output.writeFieldEnd();
96
+ }
97
+ output.writeFieldStop();
98
+ output.writeStructEnd();
99
+ return;
100
+ }
101
+ static read(input) {
102
+ input.readStructBegin();
103
+ let _args = {};
104
+ while (true) {
105
+ const ret = input.readFieldBegin();
106
+ const fieldType = ret.ftype;
107
+ const fieldId = ret.fid;
108
+ if (fieldType === thrift.Thrift.Type.STOP) {
109
+ break;
110
+ }
111
+ switch (fieldId) {
112
+ case 1:
113
+ if (fieldType === thrift.Thrift.Type.STRING) {
114
+ const value_1 = input.readBinary();
115
+ _args.max = value_1;
116
+ }
117
+ else {
118
+ input.skip(fieldType);
119
+ }
120
+ break;
121
+ case 2:
122
+ if (fieldType === thrift.Thrift.Type.STRING) {
123
+ const value_2 = input.readBinary();
124
+ _args.min = value_2;
125
+ }
126
+ else {
127
+ input.skip(fieldType);
128
+ }
129
+ break;
130
+ case 3:
131
+ if (fieldType === thrift.Thrift.Type.I64) {
132
+ const value_3 = input.readI64();
133
+ _args.null_count = value_3;
134
+ }
135
+ else {
136
+ input.skip(fieldType);
137
+ }
138
+ break;
139
+ case 4:
140
+ if (fieldType === thrift.Thrift.Type.I64) {
141
+ const value_4 = input.readI64();
142
+ _args.distinct_count = value_4;
143
+ }
144
+ else {
145
+ input.skip(fieldType);
146
+ }
147
+ break;
148
+ case 5:
149
+ if (fieldType === thrift.Thrift.Type.STRING) {
150
+ const value_5 = input.readBinary();
151
+ _args.max_value = value_5;
152
+ }
153
+ else {
154
+ input.skip(fieldType);
155
+ }
156
+ break;
157
+ case 6:
158
+ if (fieldType === thrift.Thrift.Type.STRING) {
159
+ const value_6 = input.readBinary();
160
+ _args.min_value = value_6;
161
+ }
162
+ else {
163
+ input.skip(fieldType);
164
+ }
165
+ break;
166
+ default: {
167
+ input.skip(fieldType);
168
+ }
169
+ }
170
+ input.readFieldEnd();
171
+ }
172
+ input.readStructEnd();
173
+ return new Statistics(_args);
174
+ }
175
+ }
176
+ exports.Statistics = Statistics;
@@ -6,3 +6,4 @@ export declare class StringType {
6
6
  write(output: thrift.TProtocol): void;
7
7
  static read(input: thrift.TProtocol): StringType;
8
8
  }
9
+ //# sourceMappingURL=StringType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringType.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/StringType.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,MAAM,WAAW,eAAe;CAAG;AACnC,qBAAa,UAAU;;IAEd,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAM9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,UAAU;CAmBxD"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.StringType = void 0;
23
+ /* tslint:disable */
24
+ /* eslint-disable */
25
+ /*
26
+ * Autogenerated by @creditkarma/thrift-typescript v3.7.2
27
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
28
+ */
29
+ const thrift = __importStar(require("thrift"));
30
+ class StringType {
31
+ constructor() { }
32
+ write(output) {
33
+ output.writeStructBegin('StringType');
34
+ output.writeFieldStop();
35
+ output.writeStructEnd();
36
+ return;
37
+ }
38
+ static read(input) {
39
+ input.readStructBegin();
40
+ while (true) {
41
+ const ret = input.readFieldBegin();
42
+ const fieldType = ret.ftype;
43
+ const fieldId = ret.fid;
44
+ if (fieldType === thrift.Thrift.Type.STOP) {
45
+ break;
46
+ }
47
+ switch (fieldId) {
48
+ default: {
49
+ input.skip(fieldType);
50
+ }
51
+ }
52
+ input.readFieldEnd();
53
+ }
54
+ input.readStructEnd();
55
+ return new StringType();
56
+ }
57
+ }
58
+ exports.StringType = StringType;
@@ -11,3 +11,4 @@ export declare class TimeType {
11
11
  write(output: thrift.TProtocol): void;
12
12
  static read(input: thrift.TProtocol): TimeType;
13
13
  }
14
+ //# sourceMappingURL=TimeType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeType.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/TimeType.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;CACzB;AACD,qBAAa,QAAQ;IACZ,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;gBACnB,IAAI,EAAE,aAAa;IAkBxB,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAgB9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,QAAQ;CA2CtD"}
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.TimeType = void 0;
23
+ /* tslint:disable */
24
+ /* eslint-disable */
25
+ /*
26
+ * Autogenerated by @creditkarma/thrift-typescript v3.7.2
27
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
28
+ */
29
+ const thrift = __importStar(require("thrift"));
30
+ const TimeUnit = __importStar(require("./TimeUnit"));
31
+ class TimeType {
32
+ constructor(args) {
33
+ if (args != null && args.isAdjustedToUTC != null) {
34
+ this.isAdjustedToUTC = args.isAdjustedToUTC;
35
+ }
36
+ else {
37
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[isAdjustedToUTC] is unset!');
38
+ }
39
+ if (args != null && args.unit != null) {
40
+ this.unit = args.unit;
41
+ }
42
+ else {
43
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[unit] is unset!');
44
+ }
45
+ }
46
+ write(output) {
47
+ output.writeStructBegin('TimeType');
48
+ if (this.isAdjustedToUTC != null) {
49
+ output.writeFieldBegin('isAdjustedToUTC', thrift.Thrift.Type.BOOL, 1);
50
+ output.writeBool(this.isAdjustedToUTC);
51
+ output.writeFieldEnd();
52
+ }
53
+ if (this.unit != null) {
54
+ output.writeFieldBegin('unit', thrift.Thrift.Type.STRUCT, 2);
55
+ this.unit.write(output);
56
+ output.writeFieldEnd();
57
+ }
58
+ output.writeFieldStop();
59
+ output.writeStructEnd();
60
+ return;
61
+ }
62
+ static read(input) {
63
+ input.readStructBegin();
64
+ let _args = {};
65
+ while (true) {
66
+ const ret = input.readFieldBegin();
67
+ const fieldType = ret.ftype;
68
+ const fieldId = ret.fid;
69
+ if (fieldType === thrift.Thrift.Type.STOP) {
70
+ break;
71
+ }
72
+ switch (fieldId) {
73
+ case 1:
74
+ if (fieldType === thrift.Thrift.Type.BOOL) {
75
+ const value_1 = input.readBool();
76
+ _args.isAdjustedToUTC = value_1;
77
+ }
78
+ else {
79
+ input.skip(fieldType);
80
+ }
81
+ break;
82
+ case 2:
83
+ if (fieldType === thrift.Thrift.Type.STRUCT) {
84
+ const value_2 = TimeUnit.TimeUnit.read(input);
85
+ _args.unit = value_2;
86
+ }
87
+ else {
88
+ input.skip(fieldType);
89
+ }
90
+ break;
91
+ default: {
92
+ input.skip(fieldType);
93
+ }
94
+ }
95
+ input.readFieldEnd();
96
+ }
97
+ input.readStructEnd();
98
+ if (_args.isAdjustedToUTC !== undefined && _args.unit !== undefined) {
99
+ return new TimeType(_args);
100
+ }
101
+ else {
102
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read TimeType from input');
103
+ }
104
+ }
105
+ }
106
+ exports.TimeType = TimeType;
@@ -14,3 +14,4 @@ export declare class TimeUnit {
14
14
  write(output: thrift.TProtocol): void;
15
15
  static read(input: thrift.TProtocol): TimeUnit;
16
16
  }
17
+ //# sourceMappingURL=TimeUnit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeUnit.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/TimeUnit.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;IACnC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;CACpC;AACD,qBAAa,QAAQ;IACZ,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;IACnC,MAAM,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC;gBAC9B,IAAI,CAAC,EAAE,aAAa;WAwBlB,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,YAAY,GAAG,QAAQ;WAGvD,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,YAAY,GAAG,QAAQ;IAG9D,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAgB9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,QAAQ;CAyDtD"}
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.TimeUnit = void 0;
23
+ /* tslint:disable */
24
+ /* eslint-disable */
25
+ /*
26
+ * Autogenerated by @creditkarma/thrift-typescript v3.7.2
27
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
28
+ */
29
+ const thrift = __importStar(require("thrift"));
30
+ const MicroSeconds = __importStar(require("./MicroSeconds"));
31
+ const MilliSeconds = __importStar(require("./MilliSeconds"));
32
+ class TimeUnit {
33
+ constructor(args) {
34
+ let _fieldsSet = 0;
35
+ if (args != null) {
36
+ if (args.MILLIS != null) {
37
+ _fieldsSet++;
38
+ this.MILLIS = args.MILLIS;
39
+ }
40
+ if (args.MICROS != null) {
41
+ _fieldsSet++;
42
+ this.MICROS = args.MICROS;
43
+ }
44
+ if (_fieldsSet > 1) {
45
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
46
+ }
47
+ else if (_fieldsSet < 1) {
48
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
49
+ }
50
+ }
51
+ }
52
+ static fromMILLIS(MILLIS) {
53
+ return new TimeUnit({ MILLIS });
54
+ }
55
+ static fromMICROS(MICROS) {
56
+ return new TimeUnit({ MICROS });
57
+ }
58
+ write(output) {
59
+ output.writeStructBegin('TimeUnit');
60
+ if (this.MILLIS != null) {
61
+ output.writeFieldBegin('MILLIS', thrift.Thrift.Type.STRUCT, 1);
62
+ this.MILLIS.write(output);
63
+ output.writeFieldEnd();
64
+ }
65
+ if (this.MICROS != null) {
66
+ output.writeFieldBegin('MICROS', thrift.Thrift.Type.STRUCT, 2);
67
+ this.MICROS.write(output);
68
+ output.writeFieldEnd();
69
+ }
70
+ output.writeFieldStop();
71
+ output.writeStructEnd();
72
+ return;
73
+ }
74
+ static read(input) {
75
+ let _fieldsSet = 0;
76
+ let _returnValue = null;
77
+ input.readStructBegin();
78
+ while (true) {
79
+ const ret = input.readFieldBegin();
80
+ const fieldType = ret.ftype;
81
+ const fieldId = ret.fid;
82
+ if (fieldType === thrift.Thrift.Type.STOP) {
83
+ break;
84
+ }
85
+ switch (fieldId) {
86
+ case 1:
87
+ if (fieldType === thrift.Thrift.Type.STRUCT) {
88
+ _fieldsSet++;
89
+ const value_1 = MilliSeconds.MilliSeconds.read(input);
90
+ _returnValue = TimeUnit.fromMILLIS(value_1);
91
+ }
92
+ else {
93
+ input.skip(fieldType);
94
+ }
95
+ break;
96
+ case 2:
97
+ if (fieldType === thrift.Thrift.Type.STRUCT) {
98
+ _fieldsSet++;
99
+ const value_2 = MicroSeconds.MicroSeconds.read(input);
100
+ _returnValue = TimeUnit.fromMICROS(value_2);
101
+ }
102
+ else {
103
+ input.skip(fieldType);
104
+ }
105
+ break;
106
+ default: {
107
+ input.skip(fieldType);
108
+ }
109
+ }
110
+ input.readFieldEnd();
111
+ }
112
+ input.readStructEnd();
113
+ if (_fieldsSet > 1) {
114
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
115
+ }
116
+ else if (_fieldsSet < 1) {
117
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
118
+ }
119
+ if (_returnValue !== null) {
120
+ return _returnValue;
121
+ }
122
+ else {
123
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read data for TUnion');
124
+ }
125
+ }
126
+ }
127
+ exports.TimeUnit = TimeUnit;
@@ -11,3 +11,4 @@ export declare class TimestampType {
11
11
  write(output: thrift.TProtocol): void;
12
12
  static read(input: thrift.TProtocol): TimestampType;
13
13
  }
14
+ //# sourceMappingURL=TimestampType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimestampType.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/TimestampType.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;CACzB;AACD,qBAAa,aAAa;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;gBACnB,IAAI,EAAE,kBAAkB;IAkB7B,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAgB9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,aAAa;CA2C3D"}
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.TimestampType = void 0;
23
+ /* tslint:disable */
24
+ /* eslint-disable */
25
+ /*
26
+ * Autogenerated by @creditkarma/thrift-typescript v3.7.2
27
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
28
+ */
29
+ const thrift = __importStar(require("thrift"));
30
+ const TimeUnit = __importStar(require("./TimeUnit"));
31
+ class TimestampType {
32
+ constructor(args) {
33
+ if (args != null && args.isAdjustedToUTC != null) {
34
+ this.isAdjustedToUTC = args.isAdjustedToUTC;
35
+ }
36
+ else {
37
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[isAdjustedToUTC] is unset!');
38
+ }
39
+ if (args != null && args.unit != null) {
40
+ this.unit = args.unit;
41
+ }
42
+ else {
43
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[unit] is unset!');
44
+ }
45
+ }
46
+ write(output) {
47
+ output.writeStructBegin('TimestampType');
48
+ if (this.isAdjustedToUTC != null) {
49
+ output.writeFieldBegin('isAdjustedToUTC', thrift.Thrift.Type.BOOL, 1);
50
+ output.writeBool(this.isAdjustedToUTC);
51
+ output.writeFieldEnd();
52
+ }
53
+ if (this.unit != null) {
54
+ output.writeFieldBegin('unit', thrift.Thrift.Type.STRUCT, 2);
55
+ this.unit.write(output);
56
+ output.writeFieldEnd();
57
+ }
58
+ output.writeFieldStop();
59
+ output.writeStructEnd();
60
+ return;
61
+ }
62
+ static read(input) {
63
+ input.readStructBegin();
64
+ let _args = {};
65
+ while (true) {
66
+ const ret = input.readFieldBegin();
67
+ const fieldType = ret.ftype;
68
+ const fieldId = ret.fid;
69
+ if (fieldType === thrift.Thrift.Type.STOP) {
70
+ break;
71
+ }
72
+ switch (fieldId) {
73
+ case 1:
74
+ if (fieldType === thrift.Thrift.Type.BOOL) {
75
+ const value_1 = input.readBool();
76
+ _args.isAdjustedToUTC = value_1;
77
+ }
78
+ else {
79
+ input.skip(fieldType);
80
+ }
81
+ break;
82
+ case 2:
83
+ if (fieldType === thrift.Thrift.Type.STRUCT) {
84
+ const value_2 = TimeUnit.TimeUnit.read(input);
85
+ _args.unit = value_2;
86
+ }
87
+ else {
88
+ input.skip(fieldType);
89
+ }
90
+ break;
91
+ default: {
92
+ input.skip(fieldType);
93
+ }
94
+ }
95
+ input.readFieldEnd();
96
+ }
97
+ input.readStructEnd();
98
+ if (_args.isAdjustedToUTC !== undefined && _args.unit !== undefined) {
99
+ return new TimestampType(_args);
100
+ }
101
+ else {
102
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read TimestampType from input');
103
+ }
104
+ }
105
+ }
106
+ exports.TimestampType = TimestampType;
@@ -8,3 +8,4 @@ export declare enum Type {
8
8
  BYTE_ARRAY = 6,
9
9
  FIXED_LEN_BYTE_ARRAY = 7
10
10
  }
11
+ //# sourceMappingURL=Type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Type.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/Type.ts"],"names":[],"mappings":"AAMA,oBAAY,IAAI;IACd,OAAO,IAAI;IACX,KAAK,IAAI;IACT,KAAK,IAAI;IACT,KAAK,IAAI;IACT,KAAK,IAAI;IACT,MAAM,IAAI;IACV,UAAU,IAAI;IACd,oBAAoB,IAAI;CACzB"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Type = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ /*
7
+ * Autogenerated by @creditkarma/thrift-typescript v3.7.2
8
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
9
+ */
10
+ var Type;
11
+ (function (Type) {
12
+ Type[Type["BOOLEAN"] = 0] = "BOOLEAN";
13
+ Type[Type["INT32"] = 1] = "INT32";
14
+ Type[Type["INT64"] = 2] = "INT64";
15
+ Type[Type["INT96"] = 3] = "INT96";
16
+ Type[Type["FLOAT"] = 4] = "FLOAT";
17
+ Type[Type["DOUBLE"] = 5] = "DOUBLE";
18
+ Type[Type["BYTE_ARRAY"] = 6] = "BYTE_ARRAY";
19
+ Type[Type["FIXED_LEN_BYTE_ARRAY"] = 7] = "FIXED_LEN_BYTE_ARRAY";
20
+ })(Type = exports.Type || (exports.Type = {}));
@@ -6,3 +6,4 @@ export declare class TypeDefinedOrder {
6
6
  write(output: thrift.TProtocol): void;
7
7
  static read(input: thrift.TProtocol): TypeDefinedOrder;
8
8
  }
9
+ //# sourceMappingURL=TypeDefinedOrder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeDefinedOrder.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/TypeDefinedOrder.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,MAAM,WAAW,qBAAqB;CAAG;AACzC,qBAAa,gBAAgB;;IAEpB,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI;WAM9B,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,gBAAgB;CAmB9D"}