@loaders.gl/core 5.0.0-beta.8 → 5.0.0-rc.1

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 (763) hide show
  1. package/GEOARROW-README.md +6 -0
  2. package/SCAN-README.md +2 -2
  3. package/SCHEMA-UTILS-README.md +1 -1
  4. package/dist/arrow-geometry/binary-features.cjs +4 -1
  5. package/dist/arrow-geometry/binary-features.cjs.map +2 -2
  6. package/dist/arrow-geometry/binary-features.d.ts.map +1 -1
  7. package/dist/arrow-geometry/binary-features.js +1 -1
  8. package/dist/arrow-geometry/binary-features.js.map +1 -1
  9. package/dist/arrow-geometry/binary-geometry-to-wkb.cjs +2 -2
  10. package/dist/arrow-geometry/binary-geometry-to-wkb.cjs.map +2 -2
  11. package/dist/arrow-geometry/binary-geometry-to-wkb.js +1 -1
  12. package/dist/arrow-geometry/binary-geometry-to-wkb.js.map +1 -1
  13. package/dist/arrow-geometry/feature-collection-to-arrow.cjs.map +2 -2
  14. package/dist/arrow-geometry/feature-collection-to-arrow.d.ts +4 -3
  15. package/dist/arrow-geometry/feature-collection-to-arrow.d.ts.map +1 -1
  16. package/dist/arrow-geometry/feature-collection-to-arrow.js +1 -1
  17. package/dist/arrow-geometry/feature-collection-to-arrow.js.map +1 -1
  18. package/dist/arrow-geometry/feature-table.cjs +2 -6
  19. package/dist/arrow-geometry/feature-table.cjs.map +2 -2
  20. package/dist/arrow-geometry/feature-table.d.ts +6 -5
  21. package/dist/arrow-geometry/feature-table.d.ts.map +1 -1
  22. package/dist/arrow-geometry/feature-table.js +5 -9
  23. package/dist/arrow-geometry/feature-table.js.map +1 -1
  24. package/dist/arrow-geometry/geojson-table.cjs +270 -4
  25. package/dist/arrow-geometry/geojson-table.cjs.map +4 -4
  26. package/dist/arrow-geometry/geojson-table.d.ts +3 -3
  27. package/dist/arrow-geometry/geojson-table.d.ts.map +1 -1
  28. package/dist/arrow-geometry/geojson-table.js +5 -4
  29. package/dist/arrow-geometry/geojson-table.js.map +1 -1
  30. package/dist/arrow-geometry/geometry-codecs.cjs +6 -6
  31. package/dist/arrow-geometry/geometry-codecs.cjs.map +2 -2
  32. package/dist/arrow-geometry/geometry-codecs.js +1 -1
  33. package/dist/arrow-geometry/geometry-codecs.js.map +1 -1
  34. package/dist/arrow-geometry/geometry-to-wkt.cjs +2 -2
  35. package/dist/arrow-geometry/geometry-to-wkt.cjs.map +2 -2
  36. package/dist/arrow-geometry/geometry-to-wkt.js +1 -1
  37. package/dist/arrow-geometry/geometry-to-wkt.js.map +1 -1
  38. package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.cjs +3 -1
  39. package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.cjs.map +2 -2
  40. package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.js +3 -1
  41. package/dist/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.js.map +1 -1
  42. package/dist/arrow-geometry/wkb-arrow-utils.cjs +1 -5
  43. package/dist/arrow-geometry/wkb-arrow-utils.cjs.map +2 -2
  44. package/dist/arrow-geometry/wkb-arrow-utils.d.ts +7 -7
  45. package/dist/arrow-geometry/wkb-arrow-utils.d.ts.map +1 -1
  46. package/dist/arrow-geometry/wkb-arrow-utils.js +4 -8
  47. package/dist/arrow-geometry/wkb-arrow-utils.js.map +1 -1
  48. package/dist/arrow-geometry/wkb-builder.cjs +3 -3
  49. package/dist/arrow-geometry/wkb-builder.cjs.map +2 -2
  50. package/dist/arrow-geometry/wkb-builder.d.ts +1 -1
  51. package/dist/arrow-geometry/wkb-builder.d.ts.map +1 -1
  52. package/dist/arrow-geometry/wkb-builder.js +1 -1
  53. package/dist/arrow-geometry/wkb-builder.js.map +1 -1
  54. package/dist/arrow-geometry/wkb-statistics.cjs +2 -2
  55. package/dist/arrow-geometry/wkb-statistics.cjs.map +2 -2
  56. package/dist/arrow-geometry/wkb-statistics.js +1 -1
  57. package/dist/arrow-geometry/wkb-statistics.js.map +1 -1
  58. package/dist/arrow-worker-transport.cjs +59 -35
  59. package/dist/arrow-worker-transport.cjs.map +1 -1
  60. package/dist/arrow-worker-transport.d.ts +9 -7
  61. package/dist/arrow-worker-transport.d.ts.map +1 -1
  62. package/dist/arrow-worker-transport.js +59 -42
  63. package/dist/arrow-worker-transport.js.map +1 -1
  64. package/dist/cluster-source.cjs +198 -503
  65. package/dist/cluster-source.cjs.map +3 -3
  66. package/dist/dist.dev.js +211 -218
  67. package/dist/dist.min.js +3 -3
  68. package/dist/federated-table-scan-source.cjs +166 -531
  69. package/dist/federated-table-scan-source.cjs.map +3 -3
  70. package/dist/geoarrow/binary-polygon-to-geoarrow.cjs +2 -2
  71. package/dist/geoarrow/binary-polygon-to-geoarrow.cjs.map +2 -2
  72. package/dist/geoarrow/binary-polygon-to-geoarrow.d.ts +1 -1
  73. package/dist/geoarrow/binary-polygon-to-geoarrow.d.ts.map +1 -1
  74. package/dist/geoarrow/binary-polygon-to-geoarrow.js +1 -1
  75. package/dist/geoarrow/binary-polygon-to-geoarrow.js.map +1 -1
  76. package/dist/geoarrow/clustering/cluster-source.cjs +16 -19
  77. package/dist/geoarrow/clustering/cluster-source.cjs.map +2 -2
  78. package/dist/geoarrow/clustering/cluster-source.d.ts +3 -2
  79. package/dist/geoarrow/clustering/cluster-source.d.ts.map +1 -1
  80. package/dist/geoarrow/clustering/cluster-source.js +13 -18
  81. package/dist/geoarrow/clustering/cluster-source.js.map +1 -1
  82. package/dist/geoarrow/convert-table-to-geoarrow.cjs +5 -12
  83. package/dist/geoarrow/convert-table-to-geoarrow.cjs.map +2 -2
  84. package/dist/geoarrow/convert-table-to-geoarrow.d.ts +6 -6
  85. package/dist/geoarrow/convert-table-to-geoarrow.d.ts.map +1 -1
  86. package/dist/geoarrow/convert-table-to-geoarrow.js +8 -14
  87. package/dist/geoarrow/convert-table-to-geoarrow.js.map +1 -1
  88. package/dist/geoarrow/geo-column/geo-column.cjs.map +1 -1
  89. package/dist/geoarrow/geo-column/geo-column.d.ts +1 -1
  90. package/dist/geoarrow/geo-column/geo-column.d.ts.map +1 -1
  91. package/dist/geoarrow/geoarrow-bounds.cjs +7 -7
  92. package/dist/geoarrow/geoarrow-bounds.cjs.map +3 -3
  93. package/dist/geoarrow/geoarrow-bounds.js +3 -3
  94. package/dist/geoarrow/geoarrow-bounds.js.map +1 -1
  95. package/dist/geoarrow/geoarrow-capabilities.cjs +2 -2
  96. package/dist/geoarrow/geoarrow-capabilities.cjs.map +2 -2
  97. package/dist/geoarrow/geoarrow-capabilities.js +1 -1
  98. package/dist/geoarrow/geoarrow-capabilities.js.map +1 -1
  99. package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.cjs +13 -15
  100. package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.cjs.map +3 -3
  101. package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.d.ts.map +1 -1
  102. package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.js +8 -11
  103. package/dist/geoarrow/geoarrow-converter/convert-geoarrow-geometry.js.map +1 -1
  104. package/dist/geoarrow/geoarrow-converter/convert-geoarrow.cjs +6 -4
  105. package/dist/geoarrow/geoarrow-converter/convert-geoarrow.cjs.map +2 -2
  106. package/dist/geoarrow/geoarrow-converter/convert-geoarrow.d.ts +3 -3
  107. package/dist/geoarrow/geoarrow-converter/convert-geoarrow.d.ts.map +1 -1
  108. package/dist/geoarrow/geoarrow-converter/convert-geoarrow.js +9 -4
  109. package/dist/geoarrow/geoarrow-converter/convert-geoarrow.js.map +1 -1
  110. package/dist/geoarrow/geoarrow-converter/geoarrow-converter.cjs +5 -4
  111. package/dist/geoarrow/geoarrow-converter/geoarrow-converter.cjs.map +2 -2
  112. package/dist/geoarrow/geoarrow-converter/geoarrow-converter.d.ts +3 -3
  113. package/dist/geoarrow/geoarrow-converter/geoarrow-converter.d.ts.map +1 -1
  114. package/dist/geoarrow/geoarrow-converter/geoarrow-converter.js +5 -4
  115. package/dist/geoarrow/geoarrow-converter/geoarrow-converter.js.map +1 -1
  116. package/dist/geoarrow/geoarrow-inspection.cjs +2 -2
  117. package/dist/geoarrow/geoarrow-inspection.cjs.map +2 -2
  118. package/dist/geoarrow/geoarrow-inspection.js +1 -1
  119. package/dist/geoarrow/geoarrow-inspection.js.map +1 -1
  120. package/dist/geoarrow/geoarrow-stream.cjs +10 -11
  121. package/dist/geoarrow/geoarrow-stream.cjs.map +2 -2
  122. package/dist/geoarrow/geoarrow-stream.d.ts +2 -2
  123. package/dist/geoarrow/geoarrow-stream.d.ts.map +1 -1
  124. package/dist/geoarrow/geoarrow-stream.js +9 -12
  125. package/dist/geoarrow/geoarrow-stream.js.map +1 -1
  126. package/dist/geoarrow/get-geoarrow-vertex-count.cjs +2 -2
  127. package/dist/geoarrow/get-geoarrow-vertex-count.cjs.map +2 -2
  128. package/dist/geoarrow/get-geoarrow-vertex-count.js +1 -1
  129. package/dist/geoarrow/get-geoarrow-vertex-count.js.map +1 -1
  130. package/dist/geoarrow/index.cjs +0 -3
  131. package/dist/geoarrow/index.cjs.map +2 -2
  132. package/dist/geoarrow/index.d.ts +0 -2
  133. package/dist/geoarrow/index.d.ts.map +1 -1
  134. package/dist/geoarrow/index.js +0 -1
  135. package/dist/geoarrow/index.js.map +1 -1
  136. package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.cjs.map +1 -1
  137. package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.js +3 -3
  138. package/dist/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.js.map +1 -1
  139. package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.cjs +5 -2
  140. package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.cjs.map +2 -2
  141. package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.js +2 -2
  142. package/dist/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.js.map +1 -1
  143. package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.cjs +2 -2
  144. package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.cjs.map +2 -2
  145. package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.d.ts +1 -1
  146. package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.d.ts.map +1 -1
  147. package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.js +1 -1
  148. package/dist/geoarrow/lib/geoarrow/geoarrow-union-kind.js.map +1 -1
  149. package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.cjs +4 -4
  150. package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.cjs.map +2 -2
  151. package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.js +1 -1
  152. package/dist/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.js.map +1 -1
  153. package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.cjs +3 -3
  154. package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.cjs.map +2 -2
  155. package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.js +1 -1
  156. package/dist/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.js.map +1 -1
  157. package/dist/geoarrow/lib/kernels/encode-geoarrow-box.cjs +3 -3
  158. package/dist/geoarrow/lib/kernels/encode-geoarrow-box.cjs.map +2 -2
  159. package/dist/geoarrow/lib/kernels/encode-geoarrow-box.js +1 -1
  160. package/dist/geoarrow/lib/kernels/encode-geoarrow-box.js.map +1 -1
  161. package/dist/geoarrow/lib/kernels/geoarrow-union.cjs +2 -2
  162. package/dist/geoarrow/lib/kernels/geoarrow-union.cjs.map +2 -2
  163. package/dist/geoarrow/lib/kernels/geoarrow-union.d.ts +1 -1
  164. package/dist/geoarrow/lib/kernels/geoarrow-union.d.ts.map +1 -1
  165. package/dist/geoarrow/lib/kernels/geoarrow-union.js +1 -1
  166. package/dist/geoarrow/lib/kernels/geoarrow-union.js.map +1 -1
  167. package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.cjs +0 -6
  168. package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.cjs.map +2 -2
  169. package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.d.ts +5 -3
  170. package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.d.ts.map +1 -1
  171. package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.js +0 -6
  172. package/dist/geoarrow/lib/table-converters/convert-geoarrow-table.js.map +1 -1
  173. package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.cjs +1 -1
  174. package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.cjs.map +1 -1
  175. package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.d.ts +1 -1
  176. package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.d.ts.map +1 -1
  177. package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.js +1 -1
  178. package/dist/geoarrow/mesharrow/arrow-fixed-size-list-utils.js.map +1 -1
  179. package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.cjs.map +1 -1
  180. package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.d.ts +1 -1
  181. package/dist/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -1
  182. package/dist/geoarrow/mesharrow/get-deck-binary-data.cjs.map +1 -1
  183. package/dist/geoarrow/mesharrow/get-deck-binary-data.d.ts +1 -1
  184. package/dist/geoarrow/mesharrow/get-deck-binary-data.d.ts.map +1 -1
  185. package/dist/geoarrow/mesharrow/mesh-accessors.cjs.map +1 -1
  186. package/dist/geoarrow/mesharrow/mesh-accessors.d.ts +1 -1
  187. package/dist/geoarrow/mesharrow/mesh-accessors.d.ts.map +1 -1
  188. package/dist/geoarrow/metadata/geoarrow-metadata.cjs.map +1 -1
  189. package/dist/index.cjs +203 -197
  190. package/dist/index.cjs.map +3 -3
  191. package/dist/index.d.ts +1 -3
  192. package/dist/index.d.ts.map +1 -1
  193. package/dist/index.js +1 -4
  194. package/dist/index.js.map +1 -1
  195. package/dist/lib/api/create-data-source.d.ts +7 -1
  196. package/dist/lib/api/create-data-source.d.ts.map +1 -1
  197. package/dist/lib/api/create-data-source.js +2 -2
  198. package/dist/lib/api/create-data-source.js.map +1 -1
  199. package/dist/lib/api/load-loader.js +1 -1
  200. package/dist/lib/api/load-loader.js.map +1 -1
  201. package/dist/lib/api/load.d.ts.map +1 -1
  202. package/dist/lib/api/load.js +13 -12
  203. package/dist/lib/api/load.js.map +1 -1
  204. package/dist/lib/api/loader-options.d.ts +6 -0
  205. package/dist/lib/api/loader-options.d.ts.map +1 -1
  206. package/dist/lib/api/loader-options.js +48 -0
  207. package/dist/lib/api/loader-options.js.map +1 -1
  208. package/dist/lib/api/parse-file.d.ts.map +1 -1
  209. package/dist/lib/api/parse-file.js +2 -5
  210. package/dist/lib/api/parse-file.js.map +1 -1
  211. package/dist/lib/api/parse-in-batches.d.ts.map +1 -1
  212. package/dist/lib/api/parse-in-batches.js +55 -15
  213. package/dist/lib/api/parse-in-batches.js.map +1 -1
  214. package/dist/lib/api/parse-sync.d.ts.map +1 -1
  215. package/dist/lib/api/parse-sync.js +2 -5
  216. package/dist/lib/api/parse-sync.js.map +1 -1
  217. package/dist/lib/api/parse.d.ts.map +1 -1
  218. package/dist/lib/api/parse.js +2 -5
  219. package/dist/lib/api/parse.js.map +1 -1
  220. package/dist/lib/api/select-loader.d.ts.map +1 -1
  221. package/dist/lib/api/select-loader.js +15 -24
  222. package/dist/lib/api/select-loader.js.map +1 -1
  223. package/dist/lib/init.js +1 -1
  224. package/dist/lib/init.js.map +1 -1
  225. package/dist/lib/loader-utils/get-fetch-function.js +2 -2
  226. package/dist/lib/loader-utils/get-fetch-function.js.map +1 -1
  227. package/dist/lib/loader-utils/native-arrow.d.ts +7 -5
  228. package/dist/lib/loader-utils/native-arrow.d.ts.map +1 -1
  229. package/dist/lib/loader-utils/native-arrow.js +34 -20
  230. package/dist/lib/loader-utils/native-arrow.js.map +1 -1
  231. package/dist/lib/loader-utils/option-defaults.d.ts +3 -2
  232. package/dist/lib/loader-utils/option-defaults.d.ts.map +1 -1
  233. package/dist/lib/loader-utils/option-defaults.js +7 -8
  234. package/dist/lib/loader-utils/option-defaults.js.map +1 -1
  235. package/dist/lib/loader-utils/option-utils.d.ts +0 -6
  236. package/dist/lib/loader-utils/option-utils.d.ts.map +1 -1
  237. package/dist/lib/loader-utils/option-utils.js +11 -105
  238. package/dist/lib/loader-utils/option-utils.js.map +1 -1
  239. package/dist/loader-utils/format-types.d.ts +3 -0
  240. package/dist/loader-utils/format-types.d.ts.map +1 -1
  241. package/dist/loader-utils/index.cjs +126 -58
  242. package/dist/loader-utils/index.cjs.map +3 -3
  243. package/dist/loader-utils/index.d.ts +7 -2
  244. package/dist/loader-utils/index.d.ts.map +1 -1
  245. package/dist/loader-utils/index.js +4 -2
  246. package/dist/loader-utils/index.js.map +1 -1
  247. package/dist/loader-utils/json-loader.js +1 -1
  248. package/dist/loader-utils/json-loader.js.map +1 -1
  249. package/dist/loader-utils/lib/log-utils/log.d.ts +0 -1
  250. package/dist/loader-utils/lib/log-utils/log.d.ts.map +1 -1
  251. package/dist/loader-utils/lib/log-utils/log.js +2 -2
  252. package/dist/loader-utils/lib/log-utils/log.js.map +1 -1
  253. package/dist/loader-utils/lib/pace-batch-iterator.d.ts +14 -0
  254. package/dist/loader-utils/lib/pace-batch-iterator.d.ts.map +1 -0
  255. package/dist/loader-utils/lib/pace-batch-iterator.js +51 -0
  256. package/dist/loader-utils/lib/pace-batch-iterator.js.map +1 -0
  257. package/dist/loader-utils/lib/request-utils/request-credentials.js +1 -1
  258. package/dist/loader-utils/lib/request-utils/request-credentials.js.map +1 -1
  259. package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts +48 -3
  260. package/dist/loader-utils/lib/scan-utils/scan-query-metadata.d.ts.map +1 -1
  261. package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js +12 -1
  262. package/dist/loader-utils/lib/scan-utils/scan-query-metadata.js.map +1 -1
  263. package/dist/loader-utils/lib/scan-utils/table-query.d.ts +17 -0
  264. package/dist/loader-utils/lib/scan-utils/table-query.d.ts.map +1 -1
  265. package/dist/loader-utils/lib/scan-utils/table-query.js.map +1 -1
  266. package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts +15 -14
  267. package/dist/loader-utils/lib/scan-utils/table-scan-batch.d.ts.map +1 -1
  268. package/dist/loader-utils/lib/scan-utils/table-scan-batch.js +36 -22
  269. package/dist/loader-utils/lib/scan-utils/table-scan-batch.js.map +1 -1
  270. package/dist/loader-utils/lib/sources/data-source.d.ts.map +1 -1
  271. package/dist/loader-utils/lib/sources/data-source.js +0 -10
  272. package/dist/loader-utils/lib/sources/data-source.js.map +1 -1
  273. package/dist/loader-utils/lib/sources/image-source.d.ts +1 -1
  274. package/dist/loader-utils/lib/sources/table-source-collection.d.ts +2 -1
  275. package/dist/loader-utils/lib/sources/table-source-collection.d.ts.map +1 -1
  276. package/dist/loader-utils/lib/sources/tile-grid.d.ts +6 -1
  277. package/dist/loader-utils/lib/sources/tile-grid.d.ts.map +1 -1
  278. package/dist/loader-utils/lib/sources/tile-grid.js +32 -14
  279. package/dist/loader-utils/lib/sources/tile-grid.js.map +1 -1
  280. package/dist/loader-utils/lib/sources/utils/utils.js +1 -1
  281. package/dist/loader-utils/lib/sources/utils/utils.js.map +1 -1
  282. package/dist/loader-utils/lib/sources/vector-source.d.ts +4 -3
  283. package/dist/loader-utils/lib/sources/vector-source.d.ts.map +1 -1
  284. package/dist/loader-utils/lib/sources/vector-tile-source.d.ts +4 -3
  285. package/dist/loader-utils/lib/sources/vector-tile-source.d.ts.map +1 -1
  286. package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.d.ts.map +1 -1
  287. package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js +12 -15
  288. package/dist/loader-utils/lib/worker-loader-utils/parse-with-worker.js.map +1 -1
  289. package/dist/loader-utils/loader-types.d.ts +19 -67
  290. package/dist/loader-utils/loader-types.d.ts.map +1 -1
  291. package/dist/loader-utils/loader-types.js.map +1 -1
  292. package/dist/loader-utils/source-types.d.ts +2 -0
  293. package/dist/loader-utils/source-types.d.ts.map +1 -1
  294. package/dist/loader-utils/source-types.js +4 -0
  295. package/dist/loader-utils/source-types.js.map +1 -1
  296. package/dist/loader-utils/tile-grid.cjs +21 -9
  297. package/dist/loader-utils/tile-grid.cjs.map +1 -1
  298. package/dist/null-loader.d.ts +0 -18
  299. package/dist/null-loader.d.ts.map +1 -1
  300. package/dist/null-loader.js +1 -19
  301. package/dist/null-loader.js.map +1 -1
  302. package/dist/null-worker-node.js +1 -1
  303. package/dist/null-worker.js +1 -1
  304. package/dist/scan/arrow-execution/expressions.cjs +32 -8
  305. package/dist/scan/arrow-execution/expressions.cjs.map +2 -2
  306. package/dist/scan/arrow-execution/expressions.d.ts +7 -4
  307. package/dist/scan/arrow-execution/expressions.d.ts.map +1 -1
  308. package/dist/scan/arrow-execution/expressions.js +32 -6
  309. package/dist/scan/arrow-execution/expressions.js.map +1 -1
  310. package/dist/scan/arrow-execution/filter-arrow-table.cjs +3 -18
  311. package/dist/scan/arrow-execution/filter-arrow-table.cjs.map +2 -2
  312. package/dist/scan/arrow-execution/filter-arrow-table.d.ts.map +1 -1
  313. package/dist/scan/arrow-execution/filter-arrow-table.js +3 -9
  314. package/dist/scan/arrow-execution/filter-arrow-table.js.map +1 -1
  315. package/dist/scan/arrow-execution/portable-predicate-compatibility.cjs +41 -0
  316. package/dist/scan/arrow-execution/portable-predicate-compatibility.cjs.map +7 -0
  317. package/dist/scan/arrow-execution/portable-predicate-compatibility.d.ts +5 -0
  318. package/dist/scan/arrow-execution/portable-predicate-compatibility.d.ts.map +1 -0
  319. package/dist/scan/arrow-execution/portable-predicate-compatibility.js +23 -0
  320. package/dist/scan/arrow-execution/portable-predicate-compatibility.js.map +1 -0
  321. package/dist/scan/arrow-query-worker-entry.cjs +121 -0
  322. package/dist/scan/arrow-query-worker-entry.cjs.map +7 -0
  323. package/dist/scan/arrow-query-worker-entry.d.ts +2 -0
  324. package/dist/scan/arrow-query-worker-entry.d.ts.map +1 -0
  325. package/dist/scan/arrow-query-worker-entry.js +7 -0
  326. package/dist/scan/arrow-query-worker-entry.js.map +1 -0
  327. package/dist/scan/arrow-query-worker.cjs +197 -0
  328. package/dist/scan/arrow-query-worker.cjs.map +7 -0
  329. package/dist/scan/arrow-query-worker.d.ts +47 -0
  330. package/dist/scan/arrow-query-worker.d.ts.map +1 -0
  331. package/dist/scan/arrow-query-worker.js +101 -0
  332. package/dist/scan/arrow-query-worker.js.map +1 -0
  333. package/dist/scan/arrow-query.cjs +6 -2
  334. package/dist/scan/arrow-query.cjs.map +2 -2
  335. package/dist/scan/arrow-query.d.ts +3 -1
  336. package/dist/scan/arrow-query.d.ts.map +1 -1
  337. package/dist/scan/arrow-query.js +3 -1
  338. package/dist/scan/arrow-query.js.map +1 -1
  339. package/dist/scan/federated-table-scan-source.cjs +38 -39
  340. package/dist/scan/federated-table-scan-source.cjs.map +2 -2
  341. package/dist/scan/federated-table-scan-source.d.ts +5 -9
  342. package/dist/scan/federated-table-scan-source.d.ts.map +1 -1
  343. package/dist/scan/federated-table-scan-source.js +35 -36
  344. package/dist/scan/federated-table-scan-source.js.map +1 -1
  345. package/dist/scan/index.cjs +15 -6
  346. package/dist/scan/index.cjs.map +3 -3
  347. package/dist/scan/index.d.ts +9 -5
  348. package/dist/scan/index.d.ts.map +1 -1
  349. package/dist/scan/index.js +7 -4
  350. package/dist/scan/index.js.map +1 -1
  351. package/dist/scan/parse-sql-predicate.cjs +2 -2
  352. package/dist/scan/parse-sql-predicate.cjs.map +2 -2
  353. package/dist/scan/parse-sql-predicate.js +1 -1
  354. package/dist/scan/parse-sql-predicate.js.map +1 -1
  355. package/dist/scan/query-arrow-table-in-batches.cjs +60 -26
  356. package/dist/scan/query-arrow-table-in-batches.cjs.map +3 -3
  357. package/dist/scan/query-arrow-table-in-batches.d.ts +3 -3
  358. package/dist/scan/query-arrow-table-in-batches.d.ts.map +1 -1
  359. package/dist/scan/query-arrow-table-in-batches.js +52 -24
  360. package/dist/scan/query-arrow-table-in-batches.js.map +1 -1
  361. package/dist/{geoarrow/get-geoarrow-native-geometry.cjs → scan/query-arrow-table-math.cjs} +18 -8
  362. package/dist/scan/query-arrow-table-math.cjs.map +7 -0
  363. package/dist/scan/query-arrow-table-math.d.ts +5 -0
  364. package/dist/scan/query-arrow-table-math.d.ts.map +1 -0
  365. package/dist/scan/query-arrow-table-math.js +14 -0
  366. package/dist/scan/query-arrow-table-math.js.map +1 -0
  367. package/dist/scan/query-arrow-table.cjs +32 -62
  368. package/dist/scan/query-arrow-table.cjs.map +2 -2
  369. package/dist/scan/query-arrow-table.d.ts +13 -8
  370. package/dist/scan/query-arrow-table.d.ts.map +1 -1
  371. package/dist/scan/query-arrow-table.js +35 -67
  372. package/dist/scan/query-arrow-table.js.map +1 -1
  373. package/dist/scan/query-grouped-sql.cjs +66 -0
  374. package/dist/scan/query-grouped-sql.cjs.map +7 -0
  375. package/dist/scan/query-grouped-sql.d.ts +5 -0
  376. package/dist/scan/query-grouped-sql.d.ts.map +1 -0
  377. package/dist/scan/query-grouped-sql.js +58 -0
  378. package/dist/scan/query-grouped-sql.js.map +1 -0
  379. package/dist/scan/query-open-source.cjs +52 -0
  380. package/dist/scan/query-open-source.cjs.map +7 -0
  381. package/dist/scan/query-open-source.d.ts +4 -0
  382. package/dist/scan/query-open-source.d.ts.map +1 -0
  383. package/dist/scan/query-open-source.js +26 -0
  384. package/dist/scan/query-open-source.js.map +1 -0
  385. package/dist/scan/query-progressive.cjs +7 -8
  386. package/dist/scan/query-progressive.cjs.map +2 -2
  387. package/dist/scan/query-progressive.d.ts +5 -3
  388. package/dist/scan/query-progressive.d.ts.map +1 -1
  389. package/dist/scan/query-progressive.js +7 -8
  390. package/dist/scan/query-progressive.js.map +1 -1
  391. package/dist/scan/query-pushdown.cjs +140 -0
  392. package/dist/scan/query-pushdown.cjs.map +7 -0
  393. package/dist/scan/query-pushdown.d.ts +14 -0
  394. package/dist/scan/query-pushdown.d.ts.map +1 -0
  395. package/dist/scan/query-pushdown.js +133 -0
  396. package/dist/scan/query-pushdown.js.map +1 -0
  397. package/dist/scan/query-scales.cjs +195 -0
  398. package/dist/scan/query-scales.cjs.map +7 -0
  399. package/dist/scan/query-scales.d.ts +47 -0
  400. package/dist/scan/query-scales.d.ts.map +1 -0
  401. package/dist/scan/query-scales.js +201 -0
  402. package/dist/scan/query-scales.js.map +1 -0
  403. package/dist/scan/query.cjs +118 -103
  404. package/dist/scan/query.cjs.map +2 -2
  405. package/dist/scan/query.d.ts +29 -22
  406. package/dist/scan/query.d.ts.map +1 -1
  407. package/dist/scan/query.js +111 -111
  408. package/dist/scan/query.js.map +1 -1
  409. package/dist/scan/rows-to-arrow.cjs +1 -28
  410. package/dist/scan/rows-to-arrow.cjs.map +2 -2
  411. package/dist/scan/rows-to-arrow.d.ts +3 -3
  412. package/dist/scan/rows-to-arrow.d.ts.map +1 -1
  413. package/dist/scan/rows-to-arrow.js +2 -32
  414. package/dist/scan/rows-to-arrow.js.map +1 -1
  415. package/dist/scan/scan-engine.cjs +1 -1
  416. package/dist/scan/scan-engine.cjs.map +2 -2
  417. package/dist/scan/scan-engine.d.ts +5 -5
  418. package/dist/scan/scan-engine.d.ts.map +1 -1
  419. package/dist/scan/scan-engine.js +1 -1
  420. package/dist/scan/scan-engine.js.map +1 -1
  421. package/dist/scan/vector-table-scan-source.cjs +24 -17
  422. package/dist/scan/vector-table-scan-source.cjs.map +4 -4
  423. package/dist/scan/vector-table-scan-source.d.ts +8 -8
  424. package/dist/scan/vector-table-scan-source.d.ts.map +1 -1
  425. package/dist/scan/vector-table-scan-source.js +19 -17
  426. package/dist/scan/vector-table-scan-source.js.map +1 -1
  427. package/dist/schema/categories/category-mesh.d.ts +3 -10
  428. package/dist/schema/categories/category-mesh.d.ts.map +1 -1
  429. package/dist/schema/categories/category-mesh.js.map +1 -1
  430. package/dist/schema/categories/category-table.d.ts +2 -19
  431. package/dist/schema/categories/category-table.d.ts.map +1 -1
  432. package/dist/schema/float16.js +1 -1
  433. package/dist/schema/float16.js.map +1 -1
  434. package/dist/schema/geometry/arrow-binary-features.d.ts +1 -1
  435. package/dist/schema/geometry/arrow-binary-features.d.ts.map +1 -1
  436. package/dist/schema/geometry/geoarrow.d.ts +2 -2
  437. package/dist/schema/geometry/geoarrow.d.ts.map +1 -1
  438. package/dist/schema/index.cjs +14 -10
  439. package/dist/schema/index.cjs.map +2 -2
  440. package/dist/schema/index.d.ts +4 -4
  441. package/dist/schema/index.d.ts.map +1 -1
  442. package/dist/schema/index.js +2 -2
  443. package/dist/schema/index.js.map +1 -1
  444. package/dist/schema/types/batch.d.ts +0 -4
  445. package/dist/schema/types/batch.d.ts.map +1 -1
  446. package/dist/schema-utils/index.cjs +623 -860
  447. package/dist/schema-utils/index.cjs.map +3 -3
  448. package/dist/schema-utils/index.d.ts +6 -7
  449. package/dist/schema-utils/index.d.ts.map +1 -1
  450. package/dist/schema-utils/index.js +6 -6
  451. package/dist/schema-utils/index.js.map +1 -1
  452. package/dist/schema-utils/lib/arrow/arrow-metadata.d.ts +16 -0
  453. package/dist/schema-utils/lib/arrow/arrow-metadata.d.ts.map +1 -0
  454. package/dist/schema-utils/lib/arrow/arrow-metadata.js +109 -0
  455. package/dist/schema-utils/lib/arrow/arrow-metadata.js.map +1 -0
  456. package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts +1 -1
  457. package/dist/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.d.ts.map +1 -1
  458. package/dist/schema-utils/lib/converters/convert.js +9 -2
  459. package/dist/schema-utils/lib/converters/convert.js.map +1 -1
  460. package/dist/schema-utils/lib/converters/types.d.ts +2 -0
  461. package/dist/schema-utils/lib/converters/types.d.ts.map +1 -1
  462. package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts +8 -12
  463. package/dist/schema-utils/lib/mesh/convert-mesh-to-table.d.ts.map +1 -1
  464. package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js +8 -21
  465. package/dist/schema-utils/lib/mesh/convert-mesh-to-table.js.map +1 -1
  466. package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts +5 -4
  467. package/dist/schema-utils/lib/mesh/convert-table-to-mesh.d.ts.map +1 -1
  468. package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js +18 -13
  469. package/dist/schema-utils/lib/mesh/convert-table-to-mesh.js.map +1 -1
  470. package/dist/schema-utils/lib/mesh/get-mesh-bounding-box.d.ts +14 -0
  471. package/dist/schema-utils/lib/mesh/get-mesh-bounding-box.d.ts.map +1 -0
  472. package/dist/schema-utils/lib/mesh/get-mesh-bounding-box.js +39 -0
  473. package/dist/schema-utils/lib/mesh/get-mesh-bounding-box.js.map +1 -0
  474. package/dist/schema-utils/lib/mesh/mesh-utils.d.ts +2 -14
  475. package/dist/schema-utils/lib/mesh/mesh-utils.d.ts.map +1 -1
  476. package/dist/schema-utils/lib/mesh/mesh-utils.js +1 -35
  477. package/dist/schema-utils/lib/mesh/mesh-utils.js.map +1 -1
  478. package/dist/schema-utils/lib/mesh/point-cloud-tiler.d.ts.map +1 -1
  479. package/dist/schema-utils/lib/mesh/point-cloud-tiler.js +6 -5
  480. package/dist/schema-utils/lib/mesh/point-cloud-tiler.js.map +1 -1
  481. package/dist/schema-utils/lib/schema/data-type.js +1 -1
  482. package/dist/schema-utils/lib/schema/data-type.js.map +1 -1
  483. package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts +2 -1
  484. package/dist/schema-utils/lib/schema/deduce-table-schema.d.ts.map +1 -1
  485. package/dist/schema-utils/lib/schema/deduce-table-schema.js +3 -1
  486. package/dist/schema-utils/lib/schema/deduce-table-schema.js.map +1 -1
  487. package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts +6 -5
  488. package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.d.ts.map +1 -1
  489. package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js +6 -5
  490. package/dist/schema-utils/lib/table/arrow-api/arrow-like-table.js.map +1 -1
  491. package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts +9 -9
  492. package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.d.ts.map +1 -1
  493. package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js +13 -46
  494. package/dist/schema-utils/lib/table/batch-builder/arrow-table-builder.js.map +1 -1
  495. package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts +9 -20
  496. package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.d.ts.map +1 -1
  497. package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js +61 -73
  498. package/dist/schema-utils/lib/table/batch-builder/table-batch-builder.js.map +1 -1
  499. package/dist/schema-utils/lib/table/batches/convert-batches.d.ts +4 -3
  500. package/dist/schema-utils/lib/table/batches/convert-batches.d.ts.map +1 -1
  501. package/dist/schema-utils/lib/table/batches/convert-batches.js +27 -9
  502. package/dist/schema-utils/lib/table/batches/convert-batches.js.map +1 -1
  503. package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts +6 -9
  504. package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.d.ts.map +1 -1
  505. package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js +22 -15
  506. package/dist/schema-utils/lib/table/batches/make-arrow-batch-iterator.js.map +1 -1
  507. package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts +4 -1
  508. package/dist/schema-utils/lib/table/batches/make-table-from-batches.d.ts.map +1 -1
  509. package/dist/schema-utils/lib/table/batches/make-table-from-batches.js +13 -9
  510. package/dist/schema-utils/lib/table/batches/make-table-from-batches.js.map +1 -1
  511. package/dist/schema-utils/lib/table/query-arrow-table.d.ts +3 -3
  512. package/dist/schema-utils/lib/table/query-arrow-table.d.ts.map +1 -1
  513. package/dist/schema-utils/lib/table/query-arrow-table.js +9 -23
  514. package/dist/schema-utils/lib/table/query-arrow-table.js.map +1 -1
  515. package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts +9 -10
  516. package/dist/schema-utils/lib/table/tables/convert-arrow-table.d.ts.map +1 -1
  517. package/dist/schema-utils/lib/table/tables/convert-arrow-table.js +15 -76
  518. package/dist/schema-utils/lib/table/tables/convert-arrow-table.js.map +1 -1
  519. package/dist/schema-utils/lib/table/tables/convert-table.d.ts +6 -36
  520. package/dist/schema-utils/lib/table/tables/convert-table.d.ts.map +1 -1
  521. package/dist/schema-utils/lib/table/tables/convert-table.js +5 -42
  522. package/dist/schema-utils/lib/table/tables/convert-table.js.map +1 -1
  523. package/dist/schema-utils/lib/table/tables/make-table.d.ts +3 -55
  524. package/dist/schema-utils/lib/table/tables/make-table.d.ts.map +1 -1
  525. package/dist/schema-utils/lib/table/tables/make-table.js +3 -59
  526. package/dist/schema-utils/lib/table/tables/make-table.js.map +1 -1
  527. package/dist/schema-utils/lib/table/tables/table-accessors.d.ts +18 -16
  528. package/dist/schema-utils/lib/table/tables/table-accessors.d.ts.map +1 -1
  529. package/dist/schema-utils/lib/table/tables/table-accessors.js +36 -39
  530. package/dist/schema-utils/lib/table/tables/table-accessors.js.map +1 -1
  531. package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts +6 -5
  532. package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.d.ts.map +1 -1
  533. package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js +2 -2
  534. package/dist/schema-utils/lib/table/tables/table-converter/convert-tables.js.map +1 -1
  535. package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts +1 -1
  536. package/dist/schema-utils/lib/table/tables/table-converter/table-converter.d.ts.map +1 -1
  537. package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js +8 -5
  538. package/dist/schema-utils/lib/table/tables/table-converter/table-converter.js.map +1 -1
  539. package/dist/schema-utils/lib/table/tables/table-types.d.ts +1 -3
  540. package/dist/schema-utils/lib/table/tables/table-types.d.ts.map +1 -1
  541. package/dist/schema-utils/lib/table/tables/table-types.js +0 -4
  542. package/dist/schema-utils/lib/table/tables/table-types.js.map +1 -1
  543. package/dist/vector-table-scan-source.cjs +241 -292
  544. package/dist/vector-table-scan-source.cjs.map +2 -2
  545. package/dist/wkt/index.cjs.map +1 -1
  546. package/dist/wkt/index.d.ts.map +1 -1
  547. package/dist/wkt/index.js.map +1 -1
  548. package/dist/worker-utils/index.cjs +4 -4
  549. package/dist/worker-utils/index.cjs.map +1 -1
  550. package/dist/worker-utils/lib/env-utils/version.js +1 -1
  551. package/dist/worker-utils/lib/env-utils/version.js.map +1 -1
  552. package/dist/worker-utils/lib/npm-tag.d.ts.map +1 -1
  553. package/dist/worker-utils/lib/npm-tag.js.map +1 -1
  554. package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts +4 -1
  555. package/dist/worker-utils/lib/worker-api/process-on-worker.d.ts.map +1 -1
  556. package/dist/worker-utils/lib/worker-api/process-on-worker.js +2 -2
  557. package/dist/worker-utils/lib/worker-api/process-on-worker.js.map +1 -1
  558. package/dist/worker-utils/null-worker-node.js.map +1 -1
  559. package/dist/worker-utils/null-worker.js.map +1 -1
  560. package/package.json +102 -13
  561. package/src/arrow-geometry/binary-features.ts +4 -1
  562. package/src/arrow-geometry/binary-geometry-to-wkb.ts +1 -1
  563. package/src/arrow-geometry/feature-collection-to-arrow.ts +4 -3
  564. package/src/arrow-geometry/feature-table.ts +8 -17
  565. package/src/arrow-geometry/geojson-table.ts +5 -4
  566. package/src/arrow-geometry/geometry-codecs.ts +2 -2
  567. package/src/arrow-geometry/geometry-to-wkt.ts +2 -2
  568. package/src/arrow-geometry/legacy-binary/convert-flat-geojson-to-binary-features.ts +3 -1
  569. package/src/arrow-geometry/wkb-arrow-utils.ts +8 -12
  570. package/src/arrow-geometry/wkb-builder.ts +2 -2
  571. package/src/arrow-geometry/wkb-statistics.ts +2 -2
  572. package/src/arrow-worker-transport.ts +89 -50
  573. package/src/geoarrow/binary-polygon-to-geoarrow.ts +2 -2
  574. package/src/geoarrow/clustering/cluster-source.ts +20 -30
  575. package/src/geoarrow/convert-table-to-geoarrow.ts +14 -24
  576. package/src/geoarrow/geo-column/geo-column.ts +1 -1
  577. package/src/geoarrow/geoarrow-bounds.ts +3 -3
  578. package/src/geoarrow/geoarrow-capabilities.ts +1 -1
  579. package/src/geoarrow/geoarrow-converter/convert-geoarrow-geometry.ts +12 -15
  580. package/src/geoarrow/geoarrow-converter/convert-geoarrow.ts +14 -9
  581. package/src/geoarrow/geoarrow-converter/geoarrow-converter.ts +7 -6
  582. package/src/geoarrow/geoarrow-inspection.ts +2 -2
  583. package/src/geoarrow/geoarrow-stream.ts +15 -15
  584. package/src/geoarrow/get-geoarrow-vertex-count.ts +1 -1
  585. package/src/geoarrow/index.ts +0 -2
  586. package/src/geoarrow/lib/feature-collection-converters/convert-arrow-binary-feature-collection.ts +3 -3
  587. package/src/geoarrow/lib/feature-collection-converters/convert-geometry-column-to-binary-feature-collection.ts +5 -2
  588. package/src/geoarrow/lib/geoarrow/geoarrow-union-kind.ts +1 -1
  589. package/src/geoarrow/lib/geometry-converters/wkb/convert-wkb-to-binary-geometry.ts +1 -1
  590. package/src/geoarrow/lib/geometry-converters/wkb/helpers/parse-wkb-header.ts +2 -2
  591. package/src/geoarrow/lib/kernels/encode-geoarrow-box.ts +1 -1
  592. package/src/geoarrow/lib/kernels/geoarrow-union.ts +1 -1
  593. package/src/geoarrow/lib/table-converters/convert-geoarrow-table.ts +11 -11
  594. package/src/geoarrow/mesharrow/arrow-fixed-size-list-utils.ts +2 -2
  595. package/src/geoarrow/mesharrow/arrow-list-of-fixed-size-list-utils.ts +1 -1
  596. package/src/geoarrow/mesharrow/get-deck-binary-data.ts +1 -1
  597. package/src/geoarrow/mesharrow/mesh-accessors.ts +1 -1
  598. package/src/index.ts +1 -5
  599. package/src/lib/api/create-data-source.ts +15 -3
  600. package/src/lib/api/load-loader.ts +1 -1
  601. package/src/lib/api/load.ts +21 -25
  602. package/src/lib/api/loader-options.ts +69 -0
  603. package/src/lib/api/parse-file.ts +2 -11
  604. package/src/lib/api/parse-in-batches.ts +81 -17
  605. package/src/lib/api/parse-sync.ts +3 -7
  606. package/src/lib/api/parse.ts +2 -6
  607. package/src/lib/api/select-loader.ts +15 -33
  608. package/src/lib/loader-utils/get-fetch-function.ts +2 -2
  609. package/src/lib/loader-utils/native-arrow.ts +38 -25
  610. package/src/lib/loader-utils/option-defaults.ts +7 -8
  611. package/src/lib/loader-utils/option-utils.ts +12 -112
  612. package/src/loader-utils/format-types.ts +4 -0
  613. package/src/loader-utils/index.ts +17 -2
  614. package/src/loader-utils/lib/log-utils/log.ts +2 -5
  615. package/src/loader-utils/lib/pace-batch-iterator.ts +66 -0
  616. package/src/loader-utils/lib/request-utils/request-credentials.ts +1 -1
  617. package/src/loader-utils/lib/scan-utils/scan-query-metadata.ts +68 -6
  618. package/src/loader-utils/lib/scan-utils/table-query.ts +18 -0
  619. package/src/loader-utils/lib/scan-utils/table-scan-batch.ts +64 -43
  620. package/src/loader-utils/lib/sources/data-source.ts +0 -12
  621. package/src/loader-utils/lib/sources/image-source.ts +1 -1
  622. package/src/loader-utils/lib/sources/table-source-collection.ts +2 -1
  623. package/src/loader-utils/lib/sources/tile-grid.ts +34 -18
  624. package/src/loader-utils/lib/sources/utils/utils.ts +1 -1
  625. package/src/loader-utils/lib/sources/vector-source.ts +3 -3
  626. package/src/loader-utils/lib/sources/vector-tile-source.ts +4 -9
  627. package/src/loader-utils/lib/worker-loader-utils/parse-with-worker.ts +12 -18
  628. package/src/loader-utils/loader-types.ts +23 -69
  629. package/src/loader-utils/source-types.ts +5 -0
  630. package/src/null-loader.ts +1 -20
  631. package/src/scan/arrow-execution/expressions.ts +42 -7
  632. package/src/scan/arrow-execution/filter-arrow-table.ts +3 -18
  633. package/src/scan/arrow-execution/portable-predicate-compatibility.ts +27 -0
  634. package/src/scan/arrow-query-worker-entry.ts +8 -0
  635. package/src/scan/arrow-query-worker.ts +158 -0
  636. package/src/scan/arrow-query.ts +3 -1
  637. package/src/scan/federated-table-scan-source.ts +48 -59
  638. package/src/scan/index.ts +34 -10
  639. package/src/scan/parse-sql-predicate.ts +1 -1
  640. package/src/scan/query-arrow-table-in-batches.ts +62 -33
  641. package/src/scan/query-arrow-table-math.ts +23 -0
  642. package/src/scan/query-arrow-table.ts +62 -97
  643. package/src/scan/query-grouped-sql.ts +69 -0
  644. package/src/scan/query-open-source.ts +39 -0
  645. package/src/scan/query-progressive.ts +12 -13
  646. package/src/scan/query-pushdown.ts +184 -0
  647. package/src/scan/query-scales.ts +299 -0
  648. package/src/scan/query.ts +210 -165
  649. package/src/scan/rows-to-arrow.ts +3 -39
  650. package/src/scan/scan-engine.ts +7 -7
  651. package/src/scan/vector-table-scan-source.ts +25 -26
  652. package/src/schema/categories/category-mesh.ts +3 -11
  653. package/src/schema/categories/category-table.ts +2 -28
  654. package/src/schema/float16.ts +1 -1
  655. package/src/schema/geometry/arrow-binary-features.ts +1 -1
  656. package/src/schema/geometry/geoarrow.ts +2 -2
  657. package/src/schema/index.ts +4 -5
  658. package/src/schema/types/batch.ts +0 -5
  659. package/src/schema-utils/index.ts +20 -16
  660. package/src/schema-utils/lib/arrow/arrow-metadata.ts +139 -0
  661. package/src/schema-utils/lib/arrow-utils/arrow-list-of-fixed-size-list-utils.ts +1 -1
  662. package/src/schema-utils/lib/converters/convert.ts +7 -2
  663. package/src/schema-utils/lib/converters/types.ts +2 -0
  664. package/src/schema-utils/lib/mesh/convert-mesh-to-table.ts +15 -43
  665. package/src/schema-utils/lib/mesh/convert-table-to-mesh.ts +19 -16
  666. package/src/schema-utils/lib/mesh/get-mesh-bounding-box.ts +52 -0
  667. package/src/schema-utils/lib/mesh/mesh-utils.ts +3 -49
  668. package/src/schema-utils/lib/mesh/point-cloud-tiler.ts +6 -5
  669. package/src/schema-utils/lib/schema/data-type.ts +1 -1
  670. package/src/schema-utils/lib/schema/deduce-table-schema.ts +4 -2
  671. package/src/schema-utils/lib/table/arrow-api/arrow-like-table.ts +10 -9
  672. package/src/schema-utils/lib/table/batch-builder/arrow-table-builder.ts +21 -51
  673. package/src/schema-utils/lib/table/batch-builder/table-batch-builder.ts +68 -83
  674. package/src/schema-utils/lib/table/batches/convert-batches.ts +38 -21
  675. package/src/schema-utils/lib/table/batches/make-arrow-batch-iterator.ts +29 -19
  676. package/src/schema-utils/lib/table/batches/make-table-from-batches.ts +26 -7
  677. package/src/schema-utils/lib/table/query-arrow-table.ts +14 -32
  678. package/src/schema-utils/lib/table/tables/convert-arrow-table.ts +29 -96
  679. package/src/schema-utils/lib/table/tables/convert-table.ts +11 -57
  680. package/src/schema-utils/lib/table/tables/make-table.ts +6 -70
  681. package/src/schema-utils/lib/table/tables/table-accessors.ts +60 -63
  682. package/src/schema-utils/lib/table/tables/table-converter/convert-tables.ts +12 -14
  683. package/src/schema-utils/lib/table/tables/table-converter/table-converter.ts +12 -9
  684. package/src/schema-utils/lib/table/tables/table-types.ts +1 -7
  685. package/src/wkt/index.ts +1 -1
  686. package/src/worker-utils/lib/npm-tag.ts +1 -1
  687. package/src/worker-utils/lib/worker-api/process-on-worker.ts +7 -4
  688. package/dist/arrow-geometry/native-geometry.cjs +0 -215
  689. package/dist/arrow-geometry/native-geometry.cjs.map +0 -7
  690. package/dist/arrow-geometry/native-geometry.d.ts +0 -41
  691. package/dist/arrow-geometry/native-geometry.d.ts.map +0 -1
  692. package/dist/arrow-geometry/native-geometry.js +0 -224
  693. package/dist/arrow-geometry/native-geometry.js.map +0 -1
  694. package/dist/geoarrow/get-geoarrow-native-geometry.cjs.map +0 -7
  695. package/dist/geoarrow/get-geoarrow-native-geometry.d.ts +0 -2
  696. package/dist/geoarrow/get-geoarrow-native-geometry.d.ts.map +0 -1
  697. package/dist/geoarrow/get-geoarrow-native-geometry.js +0 -5
  698. package/dist/geoarrow/get-geoarrow-native-geometry.js.map +0 -1
  699. package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.cjs +0 -290
  700. package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.cjs.map +0 -7
  701. package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.d.ts +0 -16
  702. package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.d.ts.map +0 -1
  703. package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.js +0 -334
  704. package/dist/geoarrow/lib/kernels/encode-geoarrow-wkt.js.map +0 -1
  705. package/dist/loader-utils/lib/file-provider/data-view-file.d.ts +0 -40
  706. package/dist/loader-utils/lib/file-provider/data-view-file.d.ts.map +0 -1
  707. package/dist/loader-utils/lib/file-provider/data-view-file.js +0 -68
  708. package/dist/loader-utils/lib/file-provider/data-view-file.js.map +0 -1
  709. package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts +0 -54
  710. package/dist/loader-utils/lib/file-provider/file-handle-file.d.ts.map +0 -1
  711. package/dist/loader-utils/lib/file-provider/file-handle-file.js +0 -102
  712. package/dist/loader-utils/lib/file-provider/file-handle-file.js.map +0 -1
  713. package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts +0 -45
  714. package/dist/loader-utils/lib/file-provider/file-provider-interface.d.ts.map +0 -1
  715. package/dist/loader-utils/lib/file-provider/file-provider-interface.js +0 -13
  716. package/dist/loader-utils/lib/file-provider/file-provider-interface.js.map +0 -1
  717. package/dist/loader-utils/lib/file-provider/file-provider.d.ts +0 -57
  718. package/dist/loader-utils/lib/file-provider/file-provider.d.ts.map +0 -1
  719. package/dist/loader-utils/lib/file-provider/file-provider.js +0 -114
  720. package/dist/loader-utils/lib/file-provider/file-provider.js.map +0 -1
  721. package/dist/schema/deprecated/mesh-utils.d.ts +0 -12
  722. package/dist/schema/deprecated/mesh-utils.d.ts.map +0 -1
  723. package/dist/schema/deprecated/mesh-utils.js +0 -37
  724. package/dist/schema/deprecated/mesh-utils.js.map +0 -1
  725. package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts +0 -10
  726. package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.d.ts.map +0 -1
  727. package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js +0 -71
  728. package/dist/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.js.map +0 -1
  729. package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts +0 -19
  730. package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.d.ts.map +0 -1
  731. package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js +0 -64
  732. package/dist/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.js.map +0 -1
  733. package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts +0 -20
  734. package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.d.ts.map +0 -1
  735. package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js +0 -83
  736. package/dist/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.js.map +0 -1
  737. package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts +0 -21
  738. package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.d.ts.map +0 -1
  739. package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js +0 -86
  740. package/dist/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.js.map +0 -1
  741. package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts +0 -24
  742. package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.d.ts.map +0 -1
  743. package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js +0 -5
  744. package/dist/schema-utils/lib/table/batch-builder/table-batch-aggregator.js.map +0 -1
  745. package/dist/schema-utils/lib/table/tables/convert-arrow-table-wrapper.d.ts +0 -28
  746. package/dist/schema-utils/lib/table/tables/convert-arrow-table-wrapper.d.ts.map +0 -1
  747. package/dist/schema-utils/lib/table/tables/convert-arrow-table-wrapper.js +0 -26
  748. package/dist/schema-utils/lib/table/tables/convert-arrow-table-wrapper.js.map +0 -1
  749. package/src/arrow-geometry/native-geometry.ts +0 -278
  750. package/src/geoarrow/get-geoarrow-native-geometry.ts +0 -8
  751. package/src/geoarrow/lib/kernels/encode-geoarrow-wkt.ts +0 -373
  752. package/src/loader-utils/lib/file-provider/data-view-file.ts +0 -83
  753. package/src/loader-utils/lib/file-provider/file-handle-file.ts +0 -114
  754. package/src/loader-utils/lib/file-provider/file-provider-interface.ts +0 -60
  755. package/src/loader-utils/lib/file-provider/file-provider.ts +0 -130
  756. package/src/schema/deprecated/mesh-utils.ts +0 -46
  757. package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator-builders.ts.disabled +0 -190
  758. package/src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.ts +0 -85
  759. package/src/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.ts +0 -82
  760. package/src/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.ts +0 -103
  761. package/src/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.ts +0 -108
  762. package/src/schema-utils/lib/table/batch-builder/table-batch-aggregator.ts +0 -28
  763. package/src/schema-utils/lib/table/tables/convert-arrow-table-wrapper.ts +0 -58
@@ -1,45 +0,0 @@
1
- /**
2
- * Interface for providing file data
3
- */
4
- export interface FileProviderInterface {
5
- /**
6
- * Cleanup class data
7
- */
8
- destroy(): Promise<void>;
9
- /**
10
- * Gets an unsigned 8-bit integer at the specified byte offset from the start of the file.
11
- * @param offset The offset, in bytes, from the start of the file where to read the data.
12
- */
13
- getUint8(offset: bigint): Promise<number>;
14
- /**
15
- * Gets an unsigned 16-bit integer at the specified byte offset from the start of the file.
16
- * @param offset The offset, in bytes, from the start of the file where to read the data.
17
- */
18
- getUint16(offset: bigint): Promise<number>;
19
- /**
20
- * Gets an unsigned 32-bit integer at the specified byte offset from the start of the file.
21
- * @param offset The offset, in bytes, from the file of the view where to read the data.
22
- */
23
- getUint32(offset: bigint): Promise<number>;
24
- /**
25
- * Gets an unsigned 32-bit integer at the specified byte offset from the start of the file.
26
- * @param offset The offset, in byte, from the file of the view where to read the data.
27
- */
28
- getBigUint64(offset: bigint): Promise<bigint>;
29
- /**
30
- * returns an ArrayBuffer whose contents are a copy of this file bytes from startOffset, inclusive, up to endOffset, exclusive.
31
- * @param startOffset The offset, in bytes, from the start of the file where to start reading the data.
32
- * @param endOffset The offset, in bytes, from the start of the file where to end reading the data.
33
- */
34
- slice(startOffset: bigint, endOffset: bigint): Promise<ArrayBuffer>;
35
- /**
36
- * the length (in bytes) of the data.
37
- */
38
- length: bigint;
39
- }
40
- /**
41
- * Check is the object has FileProvider members
42
- * @param fileProvider - tested object
43
- */
44
- export declare const isFileProvider: (fileProvider: unknown) => bigint;
45
- //# sourceMappingURL=file-provider-interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-provider-interface.d.ts","sourceRoot":"","sources":["../../../../src/loader-utils/lib/file-provider/file-provider-interface.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE1C;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE3C;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE3C;;;OAGG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9C;;;;OAIG;IACH,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEpE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,cAAc,OAAO,WAMnD,CAAC"}
@@ -1,13 +0,0 @@
1
- // loaders.gl
2
- // SPDX-License-Identifier: MIT
3
- // Copyright (c) vis.gl contributors
4
- /**
5
- * Check is the object has FileProvider members
6
- * @param fileProvider - tested object
7
- */
8
- export const isFileProvider = (fileProvider) => {
9
- return (fileProvider?.getUint8 &&
10
- fileProvider?.slice &&
11
- fileProvider?.length);
12
- };
13
- //# sourceMappingURL=file-provider-interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-provider-interface.js","sourceRoot":"","sources":["../../../../src/loader-utils/lib/file-provider/file-provider-interface.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AA+CpC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,YAAqB,EAAE,EAAE;IACtD,OAAO,CACJ,YAAsC,EAAE,QAAQ;QAChD,YAAsC,EAAE,KAAK;QAC7C,YAAsC,EAAE,MAAM,CAChD,CAAC;AACJ,CAAC,CAAC"}
@@ -1,57 +0,0 @@
1
- import { ReadableFile } from "../files/file.js";
2
- import { FileProviderInterface } from "./file-provider-interface.js";
3
- /**
4
- * Provides file data using range requests to the server
5
- * @deprecated - will be replaced with ReadableFile
6
- */
7
- export declare class FileProvider implements FileProviderInterface {
8
- /** The File object from which data is provided */
9
- private file;
10
- private size;
11
- /** Create a new BrowserFile */
12
- private constructor();
13
- static create(file: ReadableFile): Promise<FileProvider>;
14
- /**
15
- * Truncates the file descriptor.
16
- * @param length desired file lenght
17
- */
18
- truncate(length: number): Promise<void>;
19
- /**
20
- * Append data to a file.
21
- * @param buffer data to append
22
- */
23
- append(buffer: Uint8Array): Promise<void>;
24
- /** Close file */
25
- destroy(): Promise<void>;
26
- /**
27
- * Gets an unsigned 8-bit integer at the specified byte offset from the start of the file.
28
- * @param offset The offset, in bytes, from the start of the file where to read the data.
29
- */
30
- getUint8(offset: number | bigint): Promise<number>;
31
- /**
32
- * Gets an unsigned 16-bit integer at the specified byte offset from the start of the file.
33
- * @param offset The offset, in bytes, from the start of the file where to read the data.
34
- */
35
- getUint16(offset: number | bigint): Promise<number>;
36
- /**
37
- * Gets an unsigned 32-bit integer at the specified byte offset from the start of the file.
38
- * @param offset The offset, in bytes, from the start of the file where to read the data.
39
- */
40
- getUint32(offset: number | bigint): Promise<number>;
41
- /**
42
- * Gets an unsigned 32-bit integer at the specified byte offset from the start of the file.
43
- * @param offset The offset, in bytes, from the start of the file where to read the data.
44
- */
45
- getBigUint64(offset: number | bigint): Promise<bigint>;
46
- /**
47
- * returns an ArrayBuffer whose contents are a copy of this file bytes from startOffset, inclusive, up to endOffset, exclusive.
48
- * @param startOffset The offset, in byte, from the start of the file where to start reading the data.
49
- * @param endOffset The offset, in bytes, from the start of the file where to end reading the data.
50
- */
51
- slice(startOffset: bigint | number, endOffset: bigint | number): Promise<ArrayBuffer>;
52
- /**
53
- * the length (in bytes) of the data.
54
- */
55
- get length(): bigint;
56
- }
57
- //# sourceMappingURL=file-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-provider.d.ts","sourceRoot":"","sources":["../../../../src/loader-utils/lib/file-provider/file-provider.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAC,yBAAsB;AAC3C,OAAO,EAAC,qBAAqB,EAAC,qCAAkC;AAEhE;;;GAGG;AACH,qBAAa,YAAa,YAAW,qBAAqB;IACxD,kDAAkD;IAClD,OAAO,CAAC,IAAI,CAAe;IAC3B,OAAO,CAAC,IAAI,CAAS;IAErB,+BAA+B;IAC/B,OAAO;WAKM,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAc9D;;;OAGG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7C;;;OAGG;IACG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/C,iBAAiB;IACX,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B;;;OAGG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IASxD;;;OAGG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IASzD;;;OAGG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IASzD;;;OAGG;IACG,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAS5D;;;;OAIG;IACG,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAU3F;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;CACF"}
@@ -1,114 +0,0 @@
1
- /**
2
- * Provides file data using range requests to the server
3
- * @deprecated - will be replaced with ReadableFile
4
- */
5
- export class FileProvider {
6
- /** The File object from which data is provided */
7
- file;
8
- size;
9
- /** Create a new BrowserFile */
10
- constructor(file, size) {
11
- this.file = file;
12
- this.size = BigInt(size);
13
- }
14
- static async create(file) {
15
- let size = 0n;
16
- if (file.bigsize > 0n) {
17
- size = file.bigsize;
18
- }
19
- else if (file.size > 0) {
20
- size = file.size;
21
- }
22
- else {
23
- const stats = await file.stat?.();
24
- size = stats?.bigsize ?? 0n;
25
- }
26
- return new FileProvider(file, size);
27
- }
28
- /**
29
- * Truncates the file descriptor.
30
- * @param length desired file lenght
31
- */
32
- async truncate(length) {
33
- throw new Error('file loaded via range requests cannot be changed');
34
- }
35
- /**
36
- * Append data to a file.
37
- * @param buffer data to append
38
- */
39
- async append(buffer) {
40
- throw new Error('file loaded via range requests cannot be changed');
41
- }
42
- /** Close file */
43
- async destroy() {
44
- throw new Error('file loaded via range requests cannot be changed');
45
- }
46
- /**
47
- * Gets an unsigned 8-bit integer at the specified byte offset from the start of the file.
48
- * @param offset The offset, in bytes, from the start of the file where to read the data.
49
- */
50
- async getUint8(offset) {
51
- const arrayBuffer = await this.file.read(offset, 1);
52
- const val = new Uint8Array(arrayBuffer).at(0);
53
- if (val === undefined) {
54
- throw new Error('something went wrong');
55
- }
56
- return val;
57
- }
58
- /**
59
- * Gets an unsigned 16-bit integer at the specified byte offset from the start of the file.
60
- * @param offset The offset, in bytes, from the start of the file where to read the data.
61
- */
62
- async getUint16(offset) {
63
- const arrayBuffer = await this.file.read(offset, 2);
64
- const val = new Uint16Array(arrayBuffer).at(0);
65
- if (val === undefined) {
66
- throw new Error('something went wrong');
67
- }
68
- return val;
69
- }
70
- /**
71
- * Gets an unsigned 32-bit integer at the specified byte offset from the start of the file.
72
- * @param offset The offset, in bytes, from the start of the file where to read the data.
73
- */
74
- async getUint32(offset) {
75
- const arrayBuffer = await this.file.read(offset, 4);
76
- const val = new Uint32Array(arrayBuffer).at(0);
77
- if (val === undefined) {
78
- throw new Error('something went wrong');
79
- }
80
- return val;
81
- }
82
- /**
83
- * Gets an unsigned 32-bit integer at the specified byte offset from the start of the file.
84
- * @param offset The offset, in bytes, from the start of the file where to read the data.
85
- */
86
- async getBigUint64(offset) {
87
- const arrayBuffer = await this.file.read(offset, 8);
88
- const val = new BigInt64Array(arrayBuffer).at(0);
89
- if (val === undefined) {
90
- throw new Error('something went wrong');
91
- }
92
- return val;
93
- }
94
- /**
95
- * returns an ArrayBuffer whose contents are a copy of this file bytes from startOffset, inclusive, up to endOffset, exclusive.
96
- * @param startOffset The offset, in byte, from the start of the file where to start reading the data.
97
- * @param endOffset The offset, in bytes, from the start of the file where to end reading the data.
98
- */
99
- async slice(startOffset, endOffset) {
100
- const bigLength = BigInt(endOffset) - BigInt(startOffset);
101
- if (bigLength > Number.MAX_SAFE_INTEGER) {
102
- throw new Error('too big slice');
103
- }
104
- const length = Number(bigLength);
105
- return await this.file.read(startOffset, length);
106
- }
107
- /**
108
- * the length (in bytes) of the data.
109
- */
110
- get length() {
111
- return this.size;
112
- }
113
- }
114
- //# sourceMappingURL=file-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-provider.js","sourceRoot":"","sources":["../../../../src/loader-utils/lib/file-provider/file-provider.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,OAAO,YAAY;IACvB,kDAAkD;IAC1C,IAAI,CAAe;IACnB,IAAI,CAAS;IAErB,+BAA+B;IAC/B,YAAoB,IAAkB,EAAE,IAAqB;QAC3D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAkB;QACpC,IAAI,IAAI,GAAoB,EAAE,CAAC;QAC/B,IAAI,IAAI,CAAC,OAAO,GAAG,EAAE,EAAE,CAAC;YACtB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC;QACtB,CAAC;aAAM,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YACzB,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;aAAM,CAAC;YACN,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;YAClC,IAAI,GAAG,KAAK,EAAE,OAAO,IAAI,EAAE,CAAC;QAC9B,CAAC;QAED,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,MAAc;QAC3B,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,CAAC;IAED;;;O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AAC;YACtB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,MAAuB;QACxC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACpD,MAAM,GAAG,GAAG,IAAI,aAAa,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACjD,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,KAAK,CAAC,WAA4B,EAAE,SAA0B;QAClE,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;QAC1D,IAAI,SAAS,GAAG,MAAM,CAAC,gBAAgB,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACnC,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAEjC,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
@@ -1,12 +0,0 @@
1
- import { MeshAttributes } from "../categories/category-mesh.js";
2
- type BoundingBox = [[number, number, number], [number, number, number]];
3
- /**
4
- * Get the (axis aligned) bounding box of a mesh.
5
- * @param attributes Mesh attributes.
6
- * @returns The axis aligned bounding box as minimum and maximum vectors.
7
- * @deprecated Import `getMeshBoundingBox` from `@loaders.gl/core/schema-utils` instead. This root
8
- * export remains temporarily for deck.gl 9.4 compatibility.
9
- */
10
- export declare function getMeshBoundingBox(attributes: MeshAttributes): BoundingBox;
11
- export {};
12
- //# sourceMappingURL=mesh-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mesh-utils.d.ts","sourceRoot":"","sources":["../../../src/schema/deprecated/mesh-utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,cAAc,EAAC,uCAAoC;AAE3D,KAAK,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE;;;;;;GAMG;AAEH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,cAAc,GAAG,WAAW,CA6B1E"}
@@ -1,37 +0,0 @@
1
- // loaders.gl
2
- // SPDX-License-Identifier: MIT
3
- // Copyright (c) vis.gl contributors
4
- /**
5
- * Get the (axis aligned) bounding box of a mesh.
6
- * @param attributes Mesh attributes.
7
- * @returns The axis aligned bounding box as minimum and maximum vectors.
8
- * @deprecated Import `getMeshBoundingBox` from `@loaders.gl/core/schema-utils` instead. This root
9
- * export remains temporarily for deck.gl 9.4 compatibility.
10
- */
11
- // eslint-disable-next-line complexity
12
- export function getMeshBoundingBox(attributes) {
13
- let minX = Infinity;
14
- let minY = Infinity;
15
- let minZ = Infinity;
16
- let maxX = -Infinity;
17
- let maxY = -Infinity;
18
- let maxZ = -Infinity;
19
- const positions = attributes.POSITION ? attributes.POSITION.value : [];
20
- const length = positions && positions.length;
21
- for (let index = 0; index < length; index += 3) {
22
- const x = positions[index];
23
- const y = positions[index + 1];
24
- const z = positions[index + 2];
25
- minX = x < minX ? x : minX;
26
- minY = y < minY ? y : minY;
27
- minZ = z < minZ ? z : minZ;
28
- maxX = x > maxX ? x : maxX;
29
- maxY = y > maxY ? y : maxY;
30
- maxZ = z > maxZ ? z : maxZ;
31
- }
32
- return [
33
- [minX, minY, minZ],
34
- [maxX, maxY, maxZ]
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,IAAI,CAAC;QAE3B,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC3B,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC3B,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7B,CAAC;IAED,OAAO;QACL,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QAClB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;KACnB,CAAC;AACJ,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { ArrowTableBatch } from '@loaders.gl/core/schema';
2
- import { ColumnarTableBatchAggregator } from "./columnar-table-batch-aggregator.js";
3
- import * as arrow from 'apache-arrow';
4
- /** @note Should be part of @loaders.gl/core/schema - kept separate to avoid hard arrow dependency */
5
- export declare class ArrowTableBatchAggregator extends ColumnarTableBatchAggregator {
6
- arrowSchema: arrow.Schema | null;
7
- constructor(schema: any, options: any);
8
- getBatch(): ArrowTableBatch | null;
9
- }
10
- //# sourceMappingURL=arrow-table-batch-aggregator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrow-table-batch-aggregator.d.ts","sourceRoot":"","sources":["../../../../../src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAC,4BAA4B,EAAC,6CAA0C;AAC/E,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,qGAAqG;AACrG,qBAAa,yBAA0B,SAAQ,4BAA4B;IACzE,WAAW,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;gBAErB,MAAM,KAAA,EAAE,OAAO,KAAA;IAK3B,QAAQ,IAAI,eAAe,GAAG,IAAI;CA4BnC"}
@@ -1,71 +0,0 @@
1
- // loaders.gl
2
- // SPDX-License-Identifier: MIT
3
- // Copyright (c) vis.gl contributors
4
- import { ColumnarTableBatchAggregator } from "./columnar-table-batch-aggregator.js";
5
- import * as arrow from 'apache-arrow';
6
- /** @note Should be part of @loaders.gl/core/schema - kept separate to avoid hard arrow dependency */
7
- export class ArrowTableBatchAggregator extends ColumnarTableBatchAggregator {
8
- arrowSchema;
9
- constructor(schema, options) {
10
- super(schema, options);
11
- this.arrowSchema = null;
12
- }
13
- getBatch() {
14
- const batch = super.getBatch();
15
- if (batch) {
16
- // Get the arrow schema
17
- this.arrowSchema = this.arrowSchema || getArrowSchema(batch.schema);
18
- // Get arrow format vectors
19
- const arrowVectors = getArrowVectors(this.arrowSchema, batch.data);
20
- // Create the record batch
21
- const recordBatch = new arrow.RecordBatch(this.arrowSchema, arrow.makeData({
22
- type: new arrow.Struct(this.arrowSchema.fields),
23
- children: arrowVectors.map(({ data }) => data[0])
24
- }));
25
- return {
26
- shape: 'arrow-table',
27
- batchType: 'data',
28
- data: new arrow.Table([recordBatch]),
29
- length: batch.length
30
- };
31
- }
32
- return null;
33
- }
34
- }
35
- // Convert from a simple loaders.gl schema to an Arrow schema
36
- function getArrowSchema(schema) {
37
- const arrowFields = [];
38
- const fields = Array.isArray(schema.fields) ? schema.fields : Object.values(schema);
39
- for (const field of fields) {
40
- if (field.type === 'float32' || field.type === Float32Array) {
41
- // TODO - just store the original field as metadata?
42
- const metadata = new Map(); // field;
43
- // arrow: new arrow.Field(name, nullable, metadata)
44
- const arrowField = new arrow.Field(field.name, new arrow.Float32(), field.nullable, metadata);
45
- arrowFields.push(arrowField);
46
- }
47
- }
48
- if (arrowFields.length === 0) {
49
- throw new Error('No arrow convertible fields');
50
- }
51
- if (arrowFields.length !== fields.length) {
52
- throw new Error('Some schema fields are not arrow convertible');
53
- }
54
- return new arrow.Schema(arrowFields);
55
- }
56
- // Convert from simple loaders.gl arrays to arrow vectors
57
- function getArrowVectors(arrowSchema, data) {
58
- const arrowVectors = [];
59
- for (const field of arrowSchema.fields) {
60
- const vector = data[field.name];
61
- if (vector instanceof Float32Array) {
62
- const arrowVector = arrow.makeVector(vector);
63
- arrowVectors.push(arrowVector);
64
- }
65
- }
66
- if (arrowSchema.fields.length !== arrowVectors.length) {
67
- throw new Error('Some columns not arrow convertible');
68
- }
69
- return arrowVectors;
70
- }
71
- //# sourceMappingURL=arrow-table-batch-aggregator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrow-table-batch-aggregator.js","sourceRoot":"","sources":["../../../../../src/schema-utils/lib/table/batch-builder/arrow-table-batch-aggregator.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAGpC,OAAO,EAAC,4BAA4B,EAAC,6CAA0C;AAC/E,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,qGAAqG;AACrG,MAAM,OAAO,yBAA0B,SAAQ,4BAA4B;IACzE,WAAW,CAAsB;IAEjC,YAAY,MAAM,EAAE,OAAO;QACzB,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;IAED,QAAQ;QACN,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC/B,IAAI,KAAK,EAAE,CAAC;YACV,uBAAuB;YACvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAEpE,2BAA2B;YAC3B,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAEnE,0BAA0B;YAC1B,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,WAAW,CACvC,IAAI,CAAC,WAAW,EAChB,KAAK,CAAC,QAAQ,CAAC;gBACb,IAAI,EAAE,IAAI,KAAK,CA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,CAAC,CAAC;IACjD,CAAC;IACD,IAAI,WAAW,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AACvC,CAAC;AAED,yDAAyD;AACzD,SAAS,eAAe,CAAC,WAAW,EAAE,IAAI;IACxC,MAAM,YAAY,GAAU,EAAE,CAAC;IAC/B,KAAK,MAAM,KAAK,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,MAAM,YAAY,YAAY,EAAE,CAAC;YACnC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,MAAa,CAAC,CAAC;YACpD,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IACD,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,KAAK,YAAY,CAAC,MAAM,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { Schema, TableBatch } from '@loaders.gl/core/schema';
2
- import { TableBatchAggregator, TableBatchOptions } from "./table-batch-aggregator.js";
3
- export declare class BaseTableBatchAggregator implements TableBatchAggregator {
4
- schema: Schema;
5
- options: TableBatchOptions;
6
- shape?: 'array-row-table' | 'object-row-table';
7
- length: number;
8
- rows: any[] | null;
9
- cursor: number;
10
- private _headers;
11
- constructor(schema: Schema, options: TableBatchOptions);
12
- rowCount(): number;
13
- addArrayRow(row: any[], cursor?: number): void;
14
- addObjectRow(row: {
15
- [columnName: string]: any;
16
- }, cursor?: number): void;
17
- getBatch(): TableBatch | null;
18
- }
19
- //# sourceMappingURL=base-table-batch-aggregator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-table-batch-aggregator.d.ts","sourceRoot":"","sources":["../../../../../src/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,oBAAoB,EAAE,iBAAiB,EAAC,oCAAiC;AAIjF,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,iBAAiB,CAAC;IAE3B,KAAK,CAAC,EAAE,iBAAiB,GAAG,kBAAkB,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAK;IACnB,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAQ;IAC1B,MAAM,EAAE,MAAM,CAAK;IACnB,OAAO,CAAC,QAAQ,CAAgB;gBAEpB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB;IActD,QAAQ,IAAI,MAAM;IAIlB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAY9C,YAAY,CAAC,GAAG,EAAE;QAAC,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAYrE,QAAQ,IAAI,UAAU,GAAG,IAAI;CAoB9B"}
@@ -1,64 +0,0 @@
1
- // loaders.gl
2
- // SPDX-License-Identifier: MIT
3
- // Copyright (c) vis.gl contributors
4
- const DEFAULT_ROW_COUNT = 100;
5
- export class BaseTableBatchAggregator {
6
- schema;
7
- options;
8
- shape;
9
- length = 0;
10
- rows = null;
11
- cursor = 0;
12
- _headers = [];
13
- constructor(schema, options) {
14
- this.options = options;
15
- this.schema = schema;
16
- // schema is an array if there're no headers
17
- // object if there are headers
18
- if (!Array.isArray(schema)) {
19
- this._headers = [];
20
- for (const key in schema) {
21
- this._headers[schema[key].index] = schema[key].name;
22
- }
23
- }
24
- }
25
- rowCount() {
26
- return this.length;
27
- }
28
- addArrayRow(row, cursor) {
29
- if (Number.isFinite(cursor)) {
30
- this.cursor = cursor;
31
- }
32
- this.shape = 'array-row-table';
33
- this.rows = this.rows || new Array(DEFAULT_ROW_COUNT);
34
- this.rows[this.length] = row;
35
- this.length++;
36
- }
37
- addObjectRow(row, cursor) {
38
- if (Number.isFinite(cursor)) {
39
- this.cursor = cursor;
40
- }
41
- this.shape = 'object-row-table';
42
- this.rows = this.rows || new Array(DEFAULT_ROW_COUNT);
43
- this.rows[this.length] = row;
44
- this.length++;
45
- }
46
- getBatch() {
47
- let rows = this.rows;
48
- if (!rows) {
49
- return null;
50
- }
51
- rows = rows.slice(0, this.length);
52
- this.rows = null;
53
- const batch = {
54
- shape: this.shape || 'array-row-table',
55
- batchType: 'data',
56
- data: rows,
57
- length: this.length,
58
- schema: this.schema,
59
- cursor: this.cursor
60
- };
61
- return batch;
62
- }
63
- }
64
- //# sourceMappingURL=base-table-batch-aggregator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-table-batch-aggregator.js","sourceRoot":"","sources":["../../../../../src/schema-utils/lib/table/batch-builder/base-table-batch-aggregator.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAKpC,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B,MAAM,OAAO,wBAAwB;IACnC,MAAM,CAAS;IACf,OAAO,CAAoB;IAE3B,KAAK,CAA0C;IAC/C,MAAM,GAAW,CAAC,CAAC;IACnB,IAAI,GAAiB,IAAI,CAAC;IAC1B,MAAM,GAAW,CAAC,CAAC;IACX,QAAQ,GAAa,EAAE,CAAC;IAEhC,YAAY,MAAc,EAAE,OAA0B;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,4CAA4C;QAC5C,8BAA8B;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AG,IAAI,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,MAAM,KAAK,GAAe;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,iBAAiB;YACtC,SAAS,EAAE,MAAM;YACjB,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;QAEF,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
@@ -1,20 +0,0 @@
1
- import type { Schema, ColumnarTableBatch, ArrowTableBatch, TypedArray } from '@loaders.gl/core/schema';
2
- import { TableBatchAggregator } from "./table-batch-aggregator.js";
3
- type ColumnarTableBatchOptions = {};
4
- export declare class ColumnarTableBatchAggregator implements TableBatchAggregator {
5
- schema: Schema;
6
- length: number;
7
- allocated: number;
8
- columns: Record<string, TypedArray | Array<any>>;
9
- constructor(schema: Schema, options: ColumnarTableBatchOptions);
10
- rowCount(): number;
11
- addArrayRow(row: any[]): void;
12
- addObjectRow(row: {
13
- [columnName: string]: any;
14
- }): void;
15
- getBatch(): ColumnarTableBatch | ArrowTableBatch | null;
16
- _reallocateColumns(): void;
17
- _pruneColumns(): void;
18
- }
19
- export {};
20
- //# sourceMappingURL=columnar-table-batch-aggregator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"columnar-table-batch-aggregator.d.ts","sourceRoot":"","sources":["../../../../../src/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,MAAM,EACN,kBAAkB,EAClB,eAAe,EACf,UAAU,EACX,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAC,oBAAoB,EAAC,oCAAiC;AAC9D,KAAK,yBAAyB,GAAG,EAAE,CAAC;AAIpC,qBAAa,4BAA6B,YAAW,oBAAoB;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAK;IACnB,SAAS,EAAE,MAAM,CAAK;IACtB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAM;gBAE1C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,yBAAyB;IAK9D,QAAQ,IAAI,MAAM;IAIlB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;IAWtB,YAAY,CAAC,GAAG,EAAE;QAAC,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAAG,IAAI;IASpD,QAAQ,IAAI,kBAAkB,GAAG,eAAe,GAAG,IAAI;IAgBvD,kBAAkB;IA8BlB,aAAa;CAKd"}
@@ -1,83 +0,0 @@
1
- // loaders.gl
2
- // SPDX-License-Identifier: MIT
3
- // Copyright (c) vis.gl contributors
4
- import { getArrayTypeFromDataType } from "../../schema/data-type.js";
5
- const DEFAULT_ROW_COUNT = 100;
6
- export class ColumnarTableBatchAggregator {
7
- schema;
8
- length = 0;
9
- allocated = 0;
10
- columns = {};
11
- constructor(schema, options) {
12
- this.schema = schema;
13
- this._reallocateColumns();
14
- }
15
- rowCount() {
16
- return this.length;
17
- }
18
- addArrayRow(row) {
19
- // If user keeps pushing rows beyond batch size, reallocate
20
- this._reallocateColumns();
21
- let i = 0;
22
- // TODO what if no csv header, columns not populated?
23
- for (const fieldName in this.columns) {
24
- this.columns[fieldName][this.length] = row[i++];
25
- }
26
- this.length++;
27
- }
28
- addObjectRow(row) {
29
- // If user keeps pushing rows beyond batch size, reallocate
30
- this._reallocateColumns();
31
- for (const fieldName in row) {
32
- this.columns[fieldName][this.length] = row[fieldName];
33
- }
34
- this.length++;
35
- }
36
- getBatch() {
37
- this._pruneColumns();
38
- const batch = {
39
- shape: 'columnar-table',
40
- batchType: 'data',
41
- data: this.columns,
42
- schema: this.schema,
43
- length: this.length
44
- };
45
- return batch;
46
- }
47
- // HELPERS
48
- _reallocateColumns() {
49
- if (this.length < this.allocated) {
50
- return;
51
- }
52
- // @ts-ignore TODO
53
- this.allocated = this.allocated > 0 ? this.allocated * 2 : DEFAULT_ROW_COUNT;
54
- this.columns = {};
55
- for (const field of this.schema.fields) {
56
- const ArrayType = getArrayTypeFromDataType(field.type, field.nullable);
57
- const oldColumn = this.columns[field.name];
58
- if (!oldColumn) {
59
- // Create new
60
- this.columns[field.name] = new ArrayType(this.allocated);
61
- }
62
- else if (Array.isArray(oldColumn)) {
63
- // Plain array, just increase its size
64
- oldColumn.length = this.allocated;
65
- }
66
- else if (ArrayBuffer.isView(oldColumn) && !(oldColumn instanceof DataView)) {
67
- const typedArray = new ArrayType(this.allocated);
68
- // Copy the old data to the new array
69
- typedArray.set(oldColumn);
70
- this.columns[field.name] = typedArray;
71
- }
72
- else {
73
- throw new Error('Invalid column type');
74
- }
75
- }
76
- }
77
- _pruneColumns() {
78
- for (const [columnName, column] of Object.entries(this.columns)) {
79
- this.columns[columnName] = column.slice(0, this.length);
80
- }
81
- }
82
- }
83
- //# sourceMappingURL=columnar-table-batch-aggregator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"columnar-table-batch-aggregator.js","sourceRoot":"","sources":["../../../../../src/schema-utils/lib/table/batch-builder/columnar-table-batch-aggregator.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,+BAA+B;AAC/B,oCAAoC;AAQpC,OAAO,EAAC,wBAAwB,EAAC,kCAA+B;AAIhE,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B,MAAM,OAAO,4BAA4B;IACvC,MAAM,CAAS;IACf,MAAM,GAAW,CAAC,CAAC;IACnB,SAAS,GAAW,CAAC,CAAC;IACtB,OAAO,GAA4C,EAAE,CAAC;IAEtD,YAAY,M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C,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAChE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;CACF"}
@@ -1,21 +0,0 @@
1
- import type { Schema, TableBatch } from '@loaders.gl/core/schema';
2
- import { TableBatchAggregator, TableBatchOptions } from "./table-batch-aggregator.js";
3
- export declare class RowTableBatchAggregator implements TableBatchAggregator {
4
- schema: Schema | null;
5
- options: TableBatchOptions;
6
- length: number;
7
- objectRows: {
8
- [columnName: string]: unknown;
9
- }[] | null;
10
- arrayRows: unknown[][] | null;
11
- cursor: number;
12
- private _headers;
13
- constructor(schema: Schema | null, options: TableBatchOptions);
14
- rowCount(): number;
15
- addArrayRow(row: any[], cursor?: number): void;
16
- addObjectRow(row: {
17
- [columnName: string]: any;
18
- }, cursor?: number): void;
19
- getBatch(): TableBatch | null;
20
- }
21
- //# sourceMappingURL=row-table-batch-aggregator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"row-table-batch-aggregator.d.ts","sourceRoot":"","sources":["../../../../../src/schema-utils/lib/table/batch-builder/row-table-batch-aggregator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,oBAAoB,EAAE,iBAAiB,EAAC,oCAAiC;AAUjF,qBAAa,uBAAwB,YAAW,oBAAoB;IAClE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,iBAAiB,CAAC;IAE3B,MAAM,EAAE,MAAM,CAAK;IACnB,UAAU,EAAE;QAAC,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,EAAE,GAAG,IAAI,CAAQ;IAC5D,SAAS,EAAE,OAAO,EAAE,EAAE,GAAG,IAAI,CAAQ;IACrC,MAAM,EAAE,MAAM,CAAK;IACnB,OAAO,CAAC,QAAQ,CAAyB;gBAE7B,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,iBAAiB;IAc7D,QAAQ,IAAI,MAAM;IAIlB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAsB9C,YAAY,CAAC,GAAG,EAAE;QAAC,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAsBrE,QAAQ,IAAI,UAAU,GAAG,IAAI;CAoB9B"}