@loaders.gl/parquet 4.2.0-alpha.4 → 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 +14 -1
  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 +77 -64
  37. package/dist/parquet-wasm-loader.js +25 -28
  38. package/dist/parquet-wasm-writer.js +19 -23
  39. package/dist/parquet-writer.js +16 -12
  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,101 +1,104 @@
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 * as thrift from 'thrift';
2
8
  import * as MicroSeconds from "./MicroSeconds.js";
3
9
  import * as MilliSeconds from "./MilliSeconds.js";
4
10
  export class TimeUnit {
5
- constructor(args) {
6
- this.MILLIS = void 0;
7
- this.MICROS = void 0;
8
- let _fieldsSet = 0;
9
- if (args != null) {
10
- if (args.MILLIS != null) {
11
- _fieldsSet++;
12
- this.MILLIS = args.MILLIS;
13
- }
14
- if (args.MICROS != null) {
15
- _fieldsSet++;
16
- this.MICROS = args.MICROS;
17
- }
18
- if (_fieldsSet > 1) {
19
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
20
- } else if (_fieldsSet < 1) {
21
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
22
- }
11
+ constructor(args) {
12
+ let _fieldsSet = 0;
13
+ if (args != null) {
14
+ if (args.MILLIS != null) {
15
+ _fieldsSet++;
16
+ this.MILLIS = args.MILLIS;
17
+ }
18
+ if (args.MICROS != null) {
19
+ _fieldsSet++;
20
+ this.MICROS = args.MICROS;
21
+ }
22
+ if (_fieldsSet > 1) {
23
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
24
+ }
25
+ else if (_fieldsSet < 1) {
26
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
27
+ }
28
+ }
23
29
  }
24
- }
25
- static fromMILLIS(MILLIS) {
26
- return new TimeUnit({
27
- MILLIS
28
- });
29
- }
30
- static fromMICROS(MICROS) {
31
- return new TimeUnit({
32
- MICROS
33
- });
34
- }
35
- write(output) {
36
- output.writeStructBegin('TimeUnit');
37
- if (this.MILLIS != null) {
38
- output.writeFieldBegin('MILLIS', thrift.Thrift.Type.STRUCT, 1);
39
- this.MILLIS.write(output);
40
- output.writeFieldEnd();
30
+ static fromMILLIS(MILLIS) {
31
+ return new TimeUnit({ MILLIS });
41
32
  }
42
- if (this.MICROS != null) {
43
- output.writeFieldBegin('MICROS', thrift.Thrift.Type.STRUCT, 2);
44
- this.MICROS.write(output);
45
- output.writeFieldEnd();
33
+ static fromMICROS(MICROS) {
34
+ return new TimeUnit({ MICROS });
46
35
  }
47
- output.writeFieldStop();
48
- output.writeStructEnd();
49
- return;
50
- }
51
- static read(input) {
52
- let _fieldsSet = 0;
53
- let _returnValue = null;
54
- input.readStructBegin();
55
- while (true) {
56
- const ret = input.readFieldBegin();
57
- const fieldType = ret.ftype;
58
- const fieldId = ret.fid;
59
- if (fieldType === thrift.Thrift.Type.STOP) {
60
- break;
61
- }
62
- switch (fieldId) {
63
- case 1:
64
- if (fieldType === thrift.Thrift.Type.STRUCT) {
65
- _fieldsSet++;
66
- const value_1 = MilliSeconds.MilliSeconds.read(input);
67
- _returnValue = TimeUnit.fromMILLIS(value_1);
68
- } else {
69
- input.skip(fieldType);
70
- }
71
- break;
72
- case 2:
73
- if (fieldType === thrift.Thrift.Type.STRUCT) {
74
- _fieldsSet++;
75
- const value_2 = MicroSeconds.MicroSeconds.read(input);
76
- _returnValue = TimeUnit.fromMICROS(value_2);
77
- } else {
78
- input.skip(fieldType);
79
- }
80
- break;
81
- default:
82
- {
83
- input.skip(fieldType);
84
- }
85
- }
86
- input.readFieldEnd();
36
+ write(output) {
37
+ output.writeStructBegin('TimeUnit');
38
+ if (this.MILLIS != null) {
39
+ output.writeFieldBegin('MILLIS', thrift.Thrift.Type.STRUCT, 1);
40
+ this.MILLIS.write(output);
41
+ output.writeFieldEnd();
42
+ }
43
+ if (this.MICROS != null) {
44
+ output.writeFieldBegin('MICROS', thrift.Thrift.Type.STRUCT, 2);
45
+ this.MICROS.write(output);
46
+ output.writeFieldEnd();
47
+ }
48
+ output.writeFieldStop();
49
+ output.writeStructEnd();
50
+ return;
87
51
  }
88
- input.readStructEnd();
89
- if (_fieldsSet > 1) {
90
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
91
- } else if (_fieldsSet < 1) {
92
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
52
+ static read(input) {
53
+ let _fieldsSet = 0;
54
+ let _returnValue = null;
55
+ input.readStructBegin();
56
+ while (true) {
57
+ const ret = input.readFieldBegin();
58
+ const fieldType = ret.ftype;
59
+ const fieldId = ret.fid;
60
+ if (fieldType === thrift.Thrift.Type.STOP) {
61
+ break;
62
+ }
63
+ switch (fieldId) {
64
+ case 1:
65
+ if (fieldType === thrift.Thrift.Type.STRUCT) {
66
+ _fieldsSet++;
67
+ const value_1 = MilliSeconds.MilliSeconds.read(input);
68
+ _returnValue = TimeUnit.fromMILLIS(value_1);
69
+ }
70
+ else {
71
+ input.skip(fieldType);
72
+ }
73
+ break;
74
+ case 2:
75
+ if (fieldType === thrift.Thrift.Type.STRUCT) {
76
+ _fieldsSet++;
77
+ const value_2 = MicroSeconds.MicroSeconds.read(input);
78
+ _returnValue = TimeUnit.fromMICROS(value_2);
79
+ }
80
+ else {
81
+ input.skip(fieldType);
82
+ }
83
+ break;
84
+ default: {
85
+ input.skip(fieldType);
86
+ }
87
+ }
88
+ input.readFieldEnd();
89
+ }
90
+ input.readStructEnd();
91
+ if (_fieldsSet > 1) {
92
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with more than one set value!');
93
+ }
94
+ else if (_fieldsSet < 1) {
95
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.INVALID_DATA, 'Cannot read a TUnion with no set value!');
96
+ }
97
+ if (_returnValue !== null) {
98
+ return _returnValue;
99
+ }
100
+ else {
101
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read data for TUnion');
102
+ }
93
103
  }
94
- if (_returnValue !== null) {
95
- return _returnValue;
96
- } else {
97
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read data for TUnion');
98
- }
99
- }
100
104
  }
101
- //# sourceMappingURL=TimeUnit.js.map
@@ -1,5 +1,5 @@
1
1
  import * as thrift from 'thrift';
2
- import * as TimeUnit from './TimeUnit';
2
+ import * as TimeUnit from "./TimeUnit.js";
3
3
  export interface ITimestampTypeArgs {
4
4
  isAdjustedToUTC: boolean;
5
5
  unit: TimeUnit.TimeUnit;
@@ -1 +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"}
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,sBAAmB;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"}
@@ -1,76 +1,83 @@
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 * as thrift from 'thrift';
2
8
  import * as TimeUnit from "./TimeUnit.js";
3
9
  export class TimestampType {
4
- constructor(args) {
5
- this.isAdjustedToUTC = void 0;
6
- this.unit = void 0;
7
- if (args != null && args.isAdjustedToUTC != null) {
8
- this.isAdjustedToUTC = args.isAdjustedToUTC;
9
- } else {
10
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[isAdjustedToUTC] is unset!');
10
+ constructor(args) {
11
+ if (args != null && args.isAdjustedToUTC != null) {
12
+ this.isAdjustedToUTC = args.isAdjustedToUTC;
13
+ }
14
+ else {
15
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[isAdjustedToUTC] is unset!');
16
+ }
17
+ if (args != null && args.unit != null) {
18
+ this.unit = args.unit;
19
+ }
20
+ else {
21
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[unit] is unset!');
22
+ }
11
23
  }
12
- if (args != null && args.unit != null) {
13
- this.unit = args.unit;
14
- } else {
15
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Required field[unit] is unset!');
24
+ write(output) {
25
+ output.writeStructBegin('TimestampType');
26
+ if (this.isAdjustedToUTC != null) {
27
+ output.writeFieldBegin('isAdjustedToUTC', thrift.Thrift.Type.BOOL, 1);
28
+ output.writeBool(this.isAdjustedToUTC);
29
+ output.writeFieldEnd();
30
+ }
31
+ if (this.unit != null) {
32
+ output.writeFieldBegin('unit', thrift.Thrift.Type.STRUCT, 2);
33
+ this.unit.write(output);
34
+ output.writeFieldEnd();
35
+ }
36
+ output.writeFieldStop();
37
+ output.writeStructEnd();
38
+ return;
16
39
  }
17
- }
18
- write(output) {
19
- output.writeStructBegin('TimestampType');
20
- if (this.isAdjustedToUTC != null) {
21
- output.writeFieldBegin('isAdjustedToUTC', thrift.Thrift.Type.BOOL, 1);
22
- output.writeBool(this.isAdjustedToUTC);
23
- output.writeFieldEnd();
40
+ static read(input) {
41
+ input.readStructBegin();
42
+ let _args = {};
43
+ while (true) {
44
+ const ret = input.readFieldBegin();
45
+ const fieldType = ret.ftype;
46
+ const fieldId = ret.fid;
47
+ if (fieldType === thrift.Thrift.Type.STOP) {
48
+ break;
49
+ }
50
+ switch (fieldId) {
51
+ case 1:
52
+ if (fieldType === thrift.Thrift.Type.BOOL) {
53
+ const value_1 = input.readBool();
54
+ _args.isAdjustedToUTC = value_1;
55
+ }
56
+ else {
57
+ input.skip(fieldType);
58
+ }
59
+ break;
60
+ case 2:
61
+ if (fieldType === thrift.Thrift.Type.STRUCT) {
62
+ const value_2 = TimeUnit.TimeUnit.read(input);
63
+ _args.unit = value_2;
64
+ }
65
+ else {
66
+ input.skip(fieldType);
67
+ }
68
+ break;
69
+ default: {
70
+ input.skip(fieldType);
71
+ }
72
+ }
73
+ input.readFieldEnd();
74
+ }
75
+ input.readStructEnd();
76
+ if (_args.isAdjustedToUTC !== undefined && _args.unit !== undefined) {
77
+ return new TimestampType(_args);
78
+ }
79
+ else {
80
+ throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read TimestampType from input');
81
+ }
24
82
  }
25
- if (this.unit != null) {
26
- output.writeFieldBegin('unit', thrift.Thrift.Type.STRUCT, 2);
27
- this.unit.write(output);
28
- output.writeFieldEnd();
29
- }
30
- output.writeFieldStop();
31
- output.writeStructEnd();
32
- return;
33
- }
34
- static read(input) {
35
- input.readStructBegin();
36
- let _args = {};
37
- while (true) {
38
- const ret = input.readFieldBegin();
39
- const fieldType = ret.ftype;
40
- const fieldId = ret.fid;
41
- if (fieldType === thrift.Thrift.Type.STOP) {
42
- break;
43
- }
44
- switch (fieldId) {
45
- case 1:
46
- if (fieldType === thrift.Thrift.Type.BOOL) {
47
- const value_1 = input.readBool();
48
- _args.isAdjustedToUTC = value_1;
49
- } else {
50
- input.skip(fieldType);
51
- }
52
- break;
53
- case 2:
54
- if (fieldType === thrift.Thrift.Type.STRUCT) {
55
- const value_2 = TimeUnit.TimeUnit.read(input);
56
- _args.unit = value_2;
57
- } else {
58
- input.skip(fieldType);
59
- }
60
- break;
61
- default:
62
- {
63
- input.skip(fieldType);
64
- }
65
- }
66
- input.readFieldEnd();
67
- }
68
- input.readStructEnd();
69
- if (_args.isAdjustedToUTC !== undefined && _args.unit !== undefined) {
70
- return new TimestampType(_args);
71
- } else {
72
- throw new thrift.Thrift.TProtocolException(thrift.Thrift.TProtocolExceptionType.UNKNOWN, 'Unable to read TimestampType from input');
73
- }
74
- }
75
83
  }
76
- //# sourceMappingURL=TimestampType.js.map
@@ -1,12 +1,17 @@
1
- export let Type = function (Type) {
2
- Type[Type["BOOLEAN"] = 0] = "BOOLEAN";
3
- Type[Type["INT32"] = 1] = "INT32";
4
- Type[Type["INT64"] = 2] = "INT64";
5
- Type[Type["INT96"] = 3] = "INT96";
6
- Type[Type["FLOAT"] = 4] = "FLOAT";
7
- Type[Type["DOUBLE"] = 5] = "DOUBLE";
8
- Type[Type["BYTE_ARRAY"] = 6] = "BYTE_ARRAY";
9
- Type[Type["FIXED_LEN_BYTE_ARRAY"] = 7] = "FIXED_LEN_BYTE_ARRAY";
10
- return Type;
11
- }({});
12
- //# sourceMappingURL=Type.js.map
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
+ */
7
+ export var Type;
8
+ (function (Type) {
9
+ Type[Type["BOOLEAN"] = 0] = "BOOLEAN";
10
+ Type[Type["INT32"] = 1] = "INT32";
11
+ Type[Type["INT64"] = 2] = "INT64";
12
+ Type[Type["INT96"] = 3] = "INT96";
13
+ Type[Type["FLOAT"] = 4] = "FLOAT";
14
+ Type[Type["DOUBLE"] = 5] = "DOUBLE";
15
+ Type[Type["BYTE_ARRAY"] = 6] = "BYTE_ARRAY";
16
+ Type[Type["FIXED_LEN_BYTE_ARRAY"] = 7] = "FIXED_LEN_BYTE_ARRAY";
17
+ })(Type || (Type = {}));
@@ -1,31 +1,35 @@
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 * as thrift from 'thrift';
2
8
  export class TypeDefinedOrder {
3
- constructor() {}
4
- write(output) {
5
- output.writeStructBegin('TypeDefinedOrder');
6
- output.writeFieldStop();
7
- output.writeStructEnd();
8
- return;
9
- }
10
- static read(input) {
11
- input.readStructBegin();
12
- while (true) {
13
- const ret = input.readFieldBegin();
14
- const fieldType = ret.ftype;
15
- const fieldId = ret.fid;
16
- if (fieldType === thrift.Thrift.Type.STOP) {
17
- break;
18
- }
19
- switch (fieldId) {
20
- default:
21
- {
22
- input.skip(fieldType);
23
- }
24
- }
25
- input.readFieldEnd();
9
+ constructor() { }
10
+ write(output) {
11
+ output.writeStructBegin('TypeDefinedOrder');
12
+ output.writeFieldStop();
13
+ output.writeStructEnd();
14
+ return;
15
+ }
16
+ static read(input) {
17
+ input.readStructBegin();
18
+ while (true) {
19
+ const ret = input.readFieldBegin();
20
+ const fieldType = ret.ftype;
21
+ const fieldId = ret.fid;
22
+ if (fieldType === thrift.Thrift.Type.STOP) {
23
+ break;
24
+ }
25
+ switch (fieldId) {
26
+ default: {
27
+ input.skip(fieldType);
28
+ }
29
+ }
30
+ input.readFieldEnd();
31
+ }
32
+ input.readStructEnd();
33
+ return new TypeDefinedOrder();
26
34
  }
27
- input.readStructEnd();
28
- return new TypeDefinedOrder();
29
- }
30
35
  }
31
- //# sourceMappingURL=TypeDefinedOrder.js.map
@@ -1,31 +1,35 @@
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 * as thrift from 'thrift';
2
8
  export class UUIDType {
3
- constructor() {}
4
- write(output) {
5
- output.writeStructBegin('UUIDType');
6
- output.writeFieldStop();
7
- output.writeStructEnd();
8
- return;
9
- }
10
- static read(input) {
11
- input.readStructBegin();
12
- while (true) {
13
- const ret = input.readFieldBegin();
14
- const fieldType = ret.ftype;
15
- const fieldId = ret.fid;
16
- if (fieldType === thrift.Thrift.Type.STOP) {
17
- break;
18
- }
19
- switch (fieldId) {
20
- default:
21
- {
22
- input.skip(fieldType);
23
- }
24
- }
25
- input.readFieldEnd();
9
+ constructor() { }
10
+ write(output) {
11
+ output.writeStructBegin('UUIDType');
12
+ output.writeFieldStop();
13
+ output.writeStructEnd();
14
+ return;
15
+ }
16
+ static read(input) {
17
+ input.readStructBegin();
18
+ while (true) {
19
+ const ret = input.readFieldBegin();
20
+ const fieldType = ret.ftype;
21
+ const fieldId = ret.fid;
22
+ if (fieldType === thrift.Thrift.Type.STOP) {
23
+ break;
24
+ }
25
+ switch (fieldId) {
26
+ default: {
27
+ input.skip(fieldType);
28
+ }
29
+ }
30
+ input.readFieldEnd();
31
+ }
32
+ input.readStructEnd();
33
+ return new UUIDType();
26
34
  }
27
- input.readStructEnd();
28
- return new UUIDType();
29
- }
30
35
  }
31
- //# sourceMappingURL=UUIDType.js.map
@@ -1,46 +1,46 @@
1
- export { Buffer } from '../../polyfills/buffer/install-buffer-polyfill';
1
+ export { Buffer } from "../../polyfills/buffer/install-buffer-polyfill.js";
2
2
  export { TBufferedTransport, TCompactProtocol, TFramedTransport } from 'thrift';
3
- export * from './Type';
4
- export * from './ConvertedType';
5
- export * from './FieldRepetitionType';
6
- export * from './Encoding';
7
- export * from './CompressionCodec';
8
- export * from './PageType';
9
- export * from './BoundaryOrder';
10
- export * from './Statistics';
11
- export * from './StringType';
12
- export * from './UUIDType';
13
- export * from './MapType';
14
- export * from './ListType';
15
- export * from './EnumType';
16
- export * from './DateType';
17
- export * from './NullType';
18
- export * from './DecimalType';
19
- export * from './MilliSeconds';
20
- export * from './MicroSeconds';
21
- export * from './TimestampType';
22
- export * from './TimeType';
23
- export * from './IntType';
24
- export * from './JsonType';
25
- export * from './BsonType';
26
- export * from './SchemaElement';
27
- export * from './DataPageHeader';
28
- export * from './IndexPageHeader';
29
- export * from './DictionaryPageHeader';
30
- export * from './DataPageHeaderV2';
31
- export * from './PageHeader';
32
- export * from './KeyValue';
33
- export * from './SortingColumn';
34
- export * from './PageEncodingStats';
35
- export * from './ColumnMetaData';
36
- export * from './ColumnChunk';
37
- export * from './RowGroup';
38
- export * from './TypeDefinedOrder';
39
- export * from './PageLocation';
40
- export * from './OffsetIndex';
41
- export * from './ColumnIndex';
42
- export * from './FileMetaData';
43
- export * from './TimeUnit';
44
- export * from './LogicalType';
45
- export * from './ColumnOrder';
3
+ export * from "./Type.js";
4
+ export * from "./ConvertedType.js";
5
+ export * from "./FieldRepetitionType.js";
6
+ export * from "./Encoding.js";
7
+ export * from "./CompressionCodec.js";
8
+ export * from "./PageType.js";
9
+ export * from "./BoundaryOrder.js";
10
+ export * from "./Statistics.js";
11
+ export * from "./StringType.js";
12
+ export * from "./UUIDType.js";
13
+ export * from "./MapType.js";
14
+ export * from "./ListType.js";
15
+ export * from "./EnumType.js";
16
+ export * from "./DateType.js";
17
+ export * from "./NullType.js";
18
+ export * from "./DecimalType.js";
19
+ export * from "./MilliSeconds.js";
20
+ export * from "./MicroSeconds.js";
21
+ export * from "./TimestampType.js";
22
+ export * from "./TimeType.js";
23
+ export * from "./IntType.js";
24
+ export * from "./JsonType.js";
25
+ export * from "./BsonType.js";
26
+ export * from "./SchemaElement.js";
27
+ export * from "./DataPageHeader.js";
28
+ export * from "./IndexPageHeader.js";
29
+ export * from "./DictionaryPageHeader.js";
30
+ export * from "./DataPageHeaderV2.js";
31
+ export * from "./PageHeader.js";
32
+ export * from "./KeyValue.js";
33
+ export * from "./SortingColumn.js";
34
+ export * from "./PageEncodingStats.js";
35
+ export * from "./ColumnMetaData.js";
36
+ export * from "./ColumnChunk.js";
37
+ export * from "./RowGroup.js";
38
+ export * from "./TypeDefinedOrder.js";
39
+ export * from "./PageLocation.js";
40
+ export * from "./OffsetIndex.js";
41
+ export * from "./ColumnIndex.js";
42
+ export * from "./FileMetaData.js";
43
+ export * from "./TimeUnit.js";
44
+ export * from "./LogicalType.js";
45
+ export * from "./ColumnOrder.js";
46
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,MAAM,gDAAgD,CAAC;AAEtE,OAAO,EAAC,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,QAAQ,CAAC;AAE9E,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parquet-thrift/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,MAAM,EAAC,0DAAuD;AAEtE,OAAO,EAAC,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,QAAQ,CAAC;AAE9E,0BAAuB;AACvB,mCAAgC;AAChC,yCAAsC;AACtC,8BAA2B;AAC3B,sCAAmC;AACnC,8BAA2B;AAC3B,mCAAgC;AAChC,gCAA6B;AAC7B,gCAA6B;AAC7B,8BAA2B;AAC3B,6BAA0B;AAC1B,8BAA2B;AAC3B,8BAA2B;AAC3B,8BAA2B;AAC3B,8BAA2B;AAC3B,iCAA8B;AAC9B,kCAA+B;AAC/B,kCAA+B;AAC/B,mCAAgC;AAChC,8BAA2B;AAC3B,6BAA0B;AAC1B,8BAA2B;AAC3B,8BAA2B;AAC3B,mCAAgC;AAChC,oCAAiC;AACjC,qCAAkC;AAClC,0CAAuC;AACvC,sCAAmC;AACnC,gCAA6B;AAC7B,8BAA2B;AAC3B,mCAAgC;AAChC,uCAAoC;AACpC,oCAAiC;AACjC,iCAA8B;AAC9B,8BAA2B;AAC3B,sCAAmC;AACnC,kCAA+B;AAC/B,iCAA8B;AAC9B,iCAA8B;AAC9B,kCAA+B;AAC/B,8BAA2B;AAC3B,iCAA8B;AAC9B,iCAA8B"}
@@ -1,3 +1,9 @@
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
  export { Buffer } from "../../polyfills/buffer/install-buffer-polyfill.js";
2
8
  export { TBufferedTransport, TCompactProtocol, TFramedTransport } from 'thrift';
3
9
  export * from "./Type.js";
@@ -43,4 +49,3 @@ export * from "./FileMetaData.js";
43
49
  export * from "./TimeUnit.js";
44
50
  export * from "./LogicalType.js";
45
51
  export * from "./ColumnOrder.js";
46
- //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
- import { ParquetColumnChunk, ParquetReaderContext, ParquetPageData, SchemaDefinition } from '../schema/declare';
3
- import { CursorBuffer } from '../codecs';
4
- import { SchemaElement } from '../parquet-thrift';
2
+ import { ParquetColumnChunk, ParquetReaderContext, ParquetPageData, SchemaDefinition } from "../schema/declare.js";
3
+ import { CursorBuffer } from "../codecs/index.js";
4
+ import { SchemaElement } from "../parquet-thrift/index.js";
5
5
  /**
6
6
  * Decode data pages
7
7
  * @param buffer - input data