jasonfan commited on
Commit
5ca66ad
·
verified ·
1 Parent(s): c1b3497

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/INSTALLER +1 -0
  2. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/METADATA +79 -0
  3. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/RECORD +857 -0
  4. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/REQUESTED +0 -0
  5. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/WHEEL +5 -0
  6. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/licenses/LICENSE.txt +0 -0
  7. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/licenses/NOTICE.txt +81 -0
  8. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/top_level.txt +2 -0
  9. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/dataset/visibility.h +50 -0
  10. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/api.h +22 -0
  11. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/api.h +26 -0
  12. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/extension_set.h +481 -0
  13. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/extension_types.h +90 -0
  14. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/options.h +135 -0
  15. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/relation.h +71 -0
  16. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/serde.h +331 -0
  17. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/test_plan_builder.h +76 -0
  18. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/test_util.h +45 -0
  19. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/type_fwd.h +32 -0
  20. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/util.h +83 -0
  21. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/visibility.h +52 -0
  22. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/bool8.h +60 -0
  23. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/fixed_shape_tensor.h +130 -0
  24. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/json.h +57 -0
  25. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/opaque.h +71 -0
  26. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/uuid.h +63 -0
  27. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/api.h +34 -0
  28. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/azurefs.h +373 -0
  29. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/filesystem.h +723 -0
  30. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/filesystem_library.h +41 -0
  31. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/gcsfs.h +242 -0
  32. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/hdfs.h +117 -0
  33. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/localfs.h +132 -0
  34. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/mockfs.h +134 -0
  35. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/path_util.h +178 -0
  36. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/s3_test_util.h +108 -0
  37. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/s3fs.h +467 -0
  38. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/test_util.h +264 -0
  39. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/type_fwd.h +53 -0
  40. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/api.h +30 -0
  41. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client.h +434 -0
  42. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client_auth.h +62 -0
  43. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client_cookie_middleware.h +33 -0
  44. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client_middleware.h +78 -0
  45. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client_tracing_middleware.h +34 -0
  46. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/middleware.h +75 -0
  47. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/otel_logging.h +33 -0
  48. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/platform.h +31 -0
  49. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/server.h +327 -0
  50. miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/server_auth.h +107 -0
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/METADATA ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: pyarrow
3
+ Version: 23.0.1
4
+ Summary: Python library for Apache Arrow
5
+ Maintainer-email: Apache Arrow Developers <dev@arrow.apache.org>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://arrow.apache.org/
8
+ Project-URL: Documentation, https://arrow.apache.org/docs/python
9
+ Project-URL: Repository, https://github.com/apache/arrow
10
+ Project-URL: Issues, https://github.com/apache/arrow/issues
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE.txt
20
+ License-File: NOTICE.txt
21
+ Dynamic: license-file
22
+
23
+ <!---
24
+ Licensed to the Apache Software Foundation (ASF) under one
25
+ or more contributor license agreements. See the NOTICE file
26
+ distributed with this work for additional information
27
+ regarding copyright ownership. The ASF licenses this file
28
+ to you under the Apache License, Version 2.0 (the
29
+ "License"); you may not use this file except in compliance
30
+ with the License. You may obtain a copy of the License at
31
+
32
+ http://www.apache.org/licenses/LICENSE-2.0
33
+
34
+ Unless required by applicable law or agreed to in writing,
35
+ software distributed under the License is distributed on an
36
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
37
+ KIND, either express or implied. See the License for the
38
+ specific language governing permissions and limitations
39
+ under the License.
40
+ -->
41
+
42
+ ## Python library for Apache Arrow
43
+
44
+ [![pypi](https://img.shields.io/pypi/v/pyarrow.svg)](https://pypi.org/project/pyarrow/) [![conda-forge](https://anaconda.org/conda-forge/pyarrow/badges/version.svg)](https://anaconda.org/conda-forge/pyarrow)
45
+
46
+ This library provides a Python API for functionality provided by the Arrow C++
47
+ libraries, along with tools for Arrow integration and interoperability with
48
+ pandas, NumPy, and other software in the Python ecosystem.
49
+
50
+ ## Installing
51
+
52
+ Across platforms, you can install a recent version of pyarrow with the conda
53
+ package manager:
54
+
55
+ ```shell
56
+ conda install pyarrow -c conda-forge
57
+ ```
58
+
59
+ On Linux, macOS, and Windows, you can also install binary wheels from PyPI with
60
+ pip:
61
+
62
+ ```shell
63
+ pip install pyarrow
64
+ ```
65
+
66
+ If you encounter any issues importing the pip wheels on Windows, you may need
67
+ to install the latest [Visual C++ Redistributable for Visual Studio][3].
68
+
69
+ ## Development
70
+
71
+ See [Python Development][2] in the documentation subproject.
72
+
73
+ ### Building the documentation
74
+
75
+ See [documentation build instructions][1] in the documentation subproject.
76
+
77
+ [1]: https://github.com/apache/arrow/blob/main/docs/source/developers/documentation.rst
78
+ [2]: https://arrow.apache.org/docs/developers/python/index.html
79
+ [3]: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/RECORD ADDED
@@ -0,0 +1,857 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pyarrow-23.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ pyarrow-23.0.1.dist-info/METADATA,sha256=85PGLmy5cV6C3G58pQNpUXRyFyv2jhWE4pSUlJas290,3053
3
+ pyarrow-23.0.1.dist-info/RECORD,,
4
+ pyarrow-23.0.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ pyarrow-23.0.1.dist-info/WHEEL,sha256=yzF9ixp0XVYLhnovZSdud9vspTPdVe52BzwI7Tv3jTM,113
6
+ pyarrow-23.0.1.dist-info/licenses/LICENSE.txt,sha256=I_xF3OF2nZ3fSqxNbNrz9_DRT8xNkw3Q1K---i6jMio,113501
7
+ pyarrow-23.0.1.dist-info/licenses/NOTICE.txt,sha256=r9iV1hoAEB9tWkHPUYyDhl2BXoEJ6Vb1EqDOTqlzjAY,2916
8
+ pyarrow-23.0.1.dist-info/top_level.txt,sha256=Zuk_c1WeinXdMz20fXlEtGC67zfKOWuwU8adpEEU_nI,18
9
+ pyarrow/__init__.pxd,sha256=Wnar1phFqM_ZHnZmtbuqm6wJHsXlBoYKhV7Qmo2jUHA,2195
10
+ pyarrow/__init__.py,sha256=k2XINbsRZlOTmT0dYr7otJbKtGUJM5kFYKNYDk1f-30,18592
11
+ pyarrow/__pycache__/__init__.cpython-310.pyc,,
12
+ pyarrow/__pycache__/_compute_docstrings.cpython-310.pyc,,
13
+ pyarrow/__pycache__/_generated_version.cpython-310.pyc,,
14
+ pyarrow/__pycache__/acero.cpython-310.pyc,,
15
+ pyarrow/__pycache__/benchmark.cpython-310.pyc,,
16
+ pyarrow/__pycache__/cffi.cpython-310.pyc,,
17
+ pyarrow/__pycache__/compute.cpython-310.pyc,,
18
+ pyarrow/__pycache__/conftest.cpython-310.pyc,,
19
+ pyarrow/__pycache__/csv.cpython-310.pyc,,
20
+ pyarrow/__pycache__/cuda.cpython-310.pyc,,
21
+ pyarrow/__pycache__/dataset.cpython-310.pyc,,
22
+ pyarrow/__pycache__/feather.cpython-310.pyc,,
23
+ pyarrow/__pycache__/flight.cpython-310.pyc,,
24
+ pyarrow/__pycache__/fs.cpython-310.pyc,,
25
+ pyarrow/__pycache__/ipc.cpython-310.pyc,,
26
+ pyarrow/__pycache__/json.cpython-310.pyc,,
27
+ pyarrow/__pycache__/jvm.cpython-310.pyc,,
28
+ pyarrow/__pycache__/orc.cpython-310.pyc,,
29
+ pyarrow/__pycache__/pandas_compat.cpython-310.pyc,,
30
+ pyarrow/__pycache__/substrait.cpython-310.pyc,,
31
+ pyarrow/__pycache__/types.cpython-310.pyc,,
32
+ pyarrow/__pycache__/util.cpython-310.pyc,,
33
+ pyarrow/_acero.cpython-310-x86_64-linux-gnu.so,sha256=xdMgalbyoZVu-x1MFgBO3yv1OqACASvzaJ9AyxQKd3o,282872
34
+ pyarrow/_acero.pxd,sha256=5ish_GgGWvit4ebhzoZil7b-m0r2RuG5JwYoxsH34FI,1440
35
+ pyarrow/_acero.pyx,sha256=7Qo0ePiMF2tsytAj4t334f-32KA9XdJKU6LKye87usw,21586
36
+ pyarrow/_azurefs.cpython-310-x86_64-linux-gnu.so,sha256=V4kMp1cWfTunMtDnAGS2kmEBxOLGfBvZyQKYPU5-P1g,144928
37
+ pyarrow/_azurefs.pyx,sha256=mlieD3Ze2LeiQFAaq4ykjLAW7jCUiEtK_brgX5dvGCo,9148
38
+ pyarrow/_compute.cpython-310-x86_64-linux-gnu.so,sha256=RwQ03PEi4xv0GHgECquSs2VWf0UJTWii-QVI2jYA9kU,1288712
39
+ pyarrow/_compute.pxd,sha256=fhi87jkN6x4qG8JbAtRksx-4YTn3sFIw2zZxuK1flpM,2022
40
+ pyarrow/_compute.pyx,sha256=27FWJcYyU2xY6tKhWljYQlzIz5o0TJyPlJfM1LQq8vk,114180
41
+ pyarrow/_compute_docstrings.py,sha256=7_S5bqdASMSrndaEKSbr--ofVW4sbhT2iM24bGvvOYw,4936
42
+ pyarrow/_csv.cpython-310-x86_64-linux-gnu.so,sha256=dejRTRhDCRpqGVLvtMA7CICV0q3h6m23-BBXAfMG5CQ,353720
43
+ pyarrow/_csv.pxd,sha256=1Zk3Zpvvhy-Tb7c79Aqd4e7bBM21kc1JxWJkl02Y4DE,1638
44
+ pyarrow/_csv.pyx,sha256=MQ_b87VV18O9MifhdUm7TbBIdmnwhARfG4unidu1EYg,55449
45
+ pyarrow/_cuda.pxd,sha256=VzhM6j9dpNgrABlvFJKoMpRC0As55im-M3tgPTOuwEk,1922
46
+ pyarrow/_cuda.pyx,sha256=XPM0q9Cy-I0bcB5j9dpSkLfkxYvdfLv2UTJym9YAM8Q,35328
47
+ pyarrow/_dataset.cpython-310-x86_64-linux-gnu.so,sha256=_zArNF_dalTnUejSNjf5IXblJbLpiiFa9_rimL8sQSU,1007192
48
+ pyarrow/_dataset.pxd,sha256=Ag9rUhoBySU6ba3wFLeuZyWMJnz9VkAf9TQEzWG4hUU,4944
49
+ pyarrow/_dataset.pyx,sha256=tW56kG-2kD3jTTxwXjDGwfJ9wxpPhL7fWtsxnMBzueA,164256
50
+ pyarrow/_dataset_orc.cpython-310-x86_64-linux-gnu.so,sha256=BbBTJoGXShi4fPgdfKWIRpNwAF0ls77QnAEx1oB9Jdg,79544
51
+ pyarrow/_dataset_orc.pyx,sha256=JSFoRI0pfHtL2jeIuPg5TJHodcfuCNYmj_iEZ4xY87w,1499
52
+ pyarrow/_dataset_parquet.cpython-310-x86_64-linux-gnu.so,sha256=ACOpBFx6-88rqMwj-LS0kqwyIEv5w2fRjZo7W22ALig,354880
53
+ pyarrow/_dataset_parquet.pxd,sha256=y-3iKehyB_eB_oeqjtt4aQRbUpVGVN1oUMFGIY13brE,1572
54
+ pyarrow/_dataset_parquet.pyx,sha256=wdcEST6sLbbfKTrqjJpZEXpSZK0RA0h9sxkgsscNuHo,41608
55
+ pyarrow/_dataset_parquet_encryption.cpython-310-x86_64-linux-gnu.so,sha256=q3xqb-FoinZPpI-OGOXrufFQ8Z6N8Jh31SZG5UGLwkY,120336
56
+ pyarrow/_dataset_parquet_encryption.pyx,sha256=p7LDNUsp3jMVcWDcbOFp8a3CYJjASVPI_tfATpY-ePg,7229
57
+ pyarrow/_dlpack.pxi,sha256=clw0FkGoyZMEtUU8zPpO_DMtl2X-27kb2UtyhQuIc1s,1832
58
+ pyarrow/_feather.cpython-310-x86_64-linux-gnu.so,sha256=W0UcIxSe3qMd3PVicOI0lLq_fJE3xGDX9QUzzZOKg8M,108600
59
+ pyarrow/_feather.pyx,sha256=DWQI4U0uAWE1ZYUwPreBPJg1TGLEGmF3wPEIRL-PhPw,3773
60
+ pyarrow/_flight.cpython-310-x86_64-linux-gnu.so,sha256=Cjv2ENTUnUVS3t2ScK4IXFZ33G7OwS3dx0rvRrThAyI,1210952
61
+ pyarrow/_flight.pyx,sha256=DjaT1iEGJyX543tYv5MpgZ4rEGUhkAhQ9-exrgbjcnQ,114770
62
+ pyarrow/_fs.cpython-310-x86_64-linux-gnu.so,sha256=cWez-p27EbxkFyILN_RknjW7vI9BRGMe-i3takFqFc8,433528
63
+ pyarrow/_fs.pxd,sha256=SmHS31eyYU7VUZlVuP613HKgpd7bENnQGApvX_g2Lfw,2439
64
+ pyarrow/_fs.pyx,sha256=kLqIoSXeovlPrWe8EShzzPC3z3EgSCaeq8cSNH_ZWm4,53271
65
+ pyarrow/_gcsfs.cpython-310-x86_64-linux-gnu.so,sha256=Tb5ptGO9pXrPCOC2oP20X-ahAHUKJP2o1IpIz7dVwGo,136080
66
+ pyarrow/_gcsfs.pyx,sha256=sooI3ztzEQXVVKcahgin0UGm_6Sgy-uwfcMrACP690w,9046
67
+ pyarrow/_generated_version.py,sha256=0Mp6jhnPtGCgtUSwlvLLlUXsE-uaoh2ar69PMiRCvNA,706
68
+ pyarrow/_hdfs.cpython-310-x86_64-linux-gnu.so,sha256=nnbYNQ6FfroBvNNQ0mcwDw-STxUsD0hvIb-0YXirBxo,138128
69
+ pyarrow/_hdfs.pyx,sha256=QVkMqzz2iGoipaNufk0GPZRzjy1JKJzuuqqk88MdYA4,5802
70
+ pyarrow/_json.cpython-310-x86_64-linux-gnu.so,sha256=6am50l5d844DLPI-4BLemO9Qw8pUEfRICp8JQnrpAVI,128720
71
+ pyarrow/_json.pxd,sha256=tECTP14M12-b_ja5QI3snQbd0uWPWmmC9FwkWq23Vg0,1206
72
+ pyarrow/_json.pyx,sha256=VCdkaxuO0Q0SzAp7zxqoG2e5GImXp1ZERYMM6jG_5EI,12532
73
+ pyarrow/_orc.cpython-310-x86_64-linux-gnu.so,sha256=G-RXK0gONsEsDzyIF9JqcM27hja5crk_EBN-4BvzbGI,213848
74
+ pyarrow/_orc.pxd,sha256=6hL0cq1RufqQD-B_bV3ne1rhu2g-h4rDOFNQsSb6qps,5689
75
+ pyarrow/_orc.pyx,sha256=Pn7r4dzagWaqMf8rymbXBIWisxonBaStZgXCi7pfrZI,15556
76
+ pyarrow/_parquet.cpython-310-x86_64-linux-gnu.so,sha256=jnPQZzt4QHwJv27kYof4IsUd_jknw9i0Sg4CBZLN0H8,612480
77
+ pyarrow/_parquet.pxd,sha256=pCqIo5UzwVmo2qe6Uo4zQwnRp8nRBjA8NJNxhhompQI,4947
78
+ pyarrow/_parquet.pyx,sha256=q0OcpBOR4WzcQqKxb3u-MiLxvBLcPK6h_eOSJUVOosg,80049
79
+ pyarrow/_parquet_encryption.cpython-310-x86_64-linux-gnu.so,sha256=ViAN_4O7WBsHjuaGVpmecgqJFvUeqG5S6nEjdTrBSf0,342392
80
+ pyarrow/_parquet_encryption.pxd,sha256=WUPm2Kj50f06y5IYzb9lVF64XREzqIZwqJSWPs-1VSE,2871
81
+ pyarrow/_parquet_encryption.pyx,sha256=Am9cy5u732B5KmcNLVb_ARy6cxiq2MIXUut6JU3e6X8,26983
82
+ pyarrow/_pyarrow_cpp_tests.cpython-310-x86_64-linux-gnu.so,sha256=iPoGRnYBNqqmoSN3ocnV7DhjiFYqWXtgVQECbKVZ3vA,88160
83
+ pyarrow/_pyarrow_cpp_tests.pxd,sha256=nPyRmNtFbOUvSXCwegAApQFfh8UI_K9Hq5dN4oPAxdo,1199
84
+ pyarrow/_pyarrow_cpp_tests.pyx,sha256=gLeMzB9RWodZgXEpipX65_0aqWu12SjMld0JZmZVRP0,1753
85
+ pyarrow/_s3fs.cpython-310-x86_64-linux-gnu.so,sha256=dE0bV0GML01TUd4_w6ZUtsnAbM106xaie4CLgi5rNMo,228512
86
+ pyarrow/_s3fs.pyx,sha256=I5MF6knp3tYnS0VlWK0enMavJ9r54RcjgHJMoi2t6EQ,20584
87
+ pyarrow/_substrait.cpython-310-x86_64-linux-gnu.so,sha256=WFwJGuH5OCjbZHRwMmo3nyu_aeny3HF-C_UFfAwm8HE,205216
88
+ pyarrow/_substrait.pyx,sha256=fZT496mzp1ssSKIzqtmPeGBKeYq5f0vm8cWlWqaC408,15666
89
+ pyarrow/acero.py,sha256=yus6kVAtfYVoSenfPZPHgmeEmnaySb5UCM1lVMkzF1M,15743
90
+ pyarrow/array.pxi,sha256=RqssOhLS8qkLpny_KpE98KTPNIF-QJ23p0dGPxYCPwo,159297
91
+ pyarrow/benchmark.pxi,sha256=DYXdu-jMSH7XcTohbc8x8NiKRLtpX9IULfY20ohkffA,869
92
+ pyarrow/benchmark.py,sha256=k9Z3yQyoojpYz4lTA6DkCfqT6fPG3N2fJtsHKjpbYFo,856
93
+ pyarrow/builder.pxi,sha256=9QE4KAiA4JpA7-2JLgX3xo32jRtuWZ3YqC-T9GzUVDc,4634
94
+ pyarrow/cffi.py,sha256=hEcrPH9KeG6NES3ZCpSbOVYhOgDOuBB_2LgMMucgw-8,2396
95
+ pyarrow/compat.pxi,sha256=Sq5c3CKq0uj5aDyOoHHkPEO_VsSpZ90JRaL2rAKHk5I,1920
96
+ pyarrow/compute.py,sha256=EweboAC1SgLDPyrY7zgMV6YThGp2pqhqT-C-w7QxhwQ,24379
97
+ pyarrow/config.pxi,sha256=59eukT2QdWZSHuOMJhXEUsXGqVcN9g68ZFPZXCMb-dw,3926
98
+ pyarrow/conftest.py,sha256=54Oim0WylDduwtVx7l7fTKSQsJyPUbP_duPSYicHXs8,9891
99
+ pyarrow/csv.py,sha256=S6tm31Bra9HPf9IsYwBLltZBLMvNzypWfeCLySsjmds,974
100
+ pyarrow/cuda.py,sha256=j--8HcBAm5Ib-kbhK4d2M6SVQmDWkr7Mt5fnwU2LzdQ,1087
101
+ pyarrow/dataset.py,sha256=S3g4O9G9IhjWByr7tZ5q8HwMC35InoBmgKsiX2aGCYc,40507
102
+ pyarrow/device.pxi,sha256=kx9WnmI2bAKgt9txyGVQWackkRj9NPZLsE5q5H1RFgU,5563
103
+ pyarrow/error.pxi,sha256=Wj7-NGUfdvlEwAwd8Ta_JqRC8IUOUpm_PmpvizCFvfY,8909
104
+ pyarrow/feather.py,sha256=fOJRqGWBWrVchVSwruTcbNqN_KHDpueQ4xdoaTaEVm8,9943
105
+ pyarrow/flight.py,sha256=HLB04A0SZ35MZJumPIuBu5I2dpetjEc-CGMEdjQeQRQ,2177
106
+ pyarrow/fs.py,sha256=qL7lXu2QSbD3JbOwJEQwf642Y5Nne56tpW5nQ8O9t5A,14972
107
+ pyarrow/gandiva.pyx,sha256=sNXorsDoKVbr7iI7fwXmQZxorZA77WyCRiJtSdF_Ev8,24280
108
+ pyarrow/include/arrow/acero/accumulation_queue.h,sha256=fz0okH6sZqcSpBl2w3vOU9wSa9QlOIAXzikmb3mINPE,5985
109
+ pyarrow/include/arrow/acero/aggregate_node.h,sha256=9fhmBQGUphsqLd7bNmiOJaEg5NJxVyWA5RGs9UaTxR0,2201
110
+ pyarrow/include/arrow/acero/api.h,sha256=fRuKEHbKDYWRCwSHLc7vSD-6mQavyOsztluCR7evFCk,1151
111
+ pyarrow/include/arrow/acero/asof_join_node.h,sha256=Ko6r1wDjxg01FE9-xKkttx7WzCAzf43GxbpvGHgKZp8,1490
112
+ pyarrow/include/arrow/acero/backpressure_handler.h,sha256=mbJYVYeFMQlg40j_k7f0jFXZ8kRjo5lrE2dndC54Z7s,2395
113
+ pyarrow/include/arrow/acero/benchmark_util.h,sha256=T5bNabF1TDAp28S7V_vt_VIDn6l5Be0zOVCHhcTcFf8,1943
114
+ pyarrow/include/arrow/acero/bloom_filter.h,sha256=bFzzAzQrs9ePp2tCPQIuk1Oa9gG_Nyp72M_HM0dhakM,11978
115
+ pyarrow/include/arrow/acero/exec_plan.h,sha256=U0KA3tnNvVb75G0XQFLVbGzXCGdddGyRhW3zMa8oWJc,35909
116
+ pyarrow/include/arrow/acero/hash_join.h,sha256=zjljUjH2AQlI54Vz2_7hvJIAjTgaT0BPC_LVD7xNd2k,3022
117
+ pyarrow/include/arrow/acero/hash_join_dict.h,sha256=_BKJmK3Z_KdJuYHh4KQCuT_1rXlUohrtEgGLtEJ4fgQ,15360
118
+ pyarrow/include/arrow/acero/hash_join_node.h,sha256=FXT-aeXL7nNTuV75f9oXgdGyqMK_72GnqGUm9cmBnko,4378
119
+ pyarrow/include/arrow/acero/map_node.h,sha256=Bd1HcW0N5azoIVth2ATeHxgTKd9XmmEkz42YBNw5eK0,2628
120
+ pyarrow/include/arrow/acero/options.h,sha256=sLrKayGLs0MVJKcopQrO3pAOrqmvd1j3EfloUCMKECI,37654
121
+ pyarrow/include/arrow/acero/order_by_impl.h,sha256=dQqplP-AZWPZRKio8LmTjYWlCYz9VmW-usUrtaLpd_w,1691
122
+ pyarrow/include/arrow/acero/partition_util.h,sha256=xS8hayuTRimyrOHzf1xRm1IVjkyIeVCGXY78B2rJaJc,7437
123
+ pyarrow/include/arrow/acero/query_context.h,sha256=D364aGRS3uWe8lgYqCNRjVvs5sKetLOOXzACdp5GZeg,6212
124
+ pyarrow/include/arrow/acero/schema_util.h,sha256=KA_hV2xy2TRccMyksSzQrdH9_rdGo3tQyHOIvrWWYBQ,7961
125
+ pyarrow/include/arrow/acero/task_util.h,sha256=6pqILuYfcVwt9HqVhRfXFVJoOC-Q_dtk8mQ5SxjgwbY,3706
126
+ pyarrow/include/arrow/acero/test_nodes.h,sha256=xKeLWZZC8iokveVXPjseO1MOvWMcby-0xiMISy0qw8E,2877
127
+ pyarrow/include/arrow/acero/time_series_util.h,sha256=W9yzoaTGkB2jtYm8w2CYknSw1EjMbsdTfmEuuL2zMtk,1210
128
+ pyarrow/include/arrow/acero/tpch_node.h,sha256=l3zocxHTfGmXTjywJxwoXCIk9tjzURgWdYKSgSk8DAQ,2671
129
+ pyarrow/include/arrow/acero/type_fwd.h,sha256=4zLhtLJf_7MSXgrhQIZVGeLxjT7JrEDAn9yW75DTFlc,1103
130
+ pyarrow/include/arrow/acero/util.h,sha256=byhMEj5XoAUy-93AjLrx_p9_iUZdYn5uJ_cDkCJQt5Q,6121
131
+ pyarrow/include/arrow/acero/visibility.h,sha256=E-4G2O4F2YabXnFNJYnsI2VbVoKBtO7AXqh_SPuJi6k,1616
132
+ pyarrow/include/arrow/adapters/orc/adapter.h,sha256=G5SSGGYMSREILC43kqL5fqo94c4tKgukitO15m217tY,11031
133
+ pyarrow/include/arrow/adapters/orc/options.h,sha256=FMxda5YSskRrB6h9FvcAuMxl5qdavWrNYHPlanjtk48,3696
134
+ pyarrow/include/arrow/adapters/tensorflow/convert.h,sha256=ZGFAodnwTJK0ZoXfgYJdjgi_F4vfEhI9E87zejxVb6E,3465
135
+ pyarrow/include/arrow/api.h,sha256=Gs6HiRBYU5N7-a79hjTl9WMSda551XdUKpWthFY2v1s,2491
136
+ pyarrow/include/arrow/array.h,sha256=P5oW6hvD2j97bLaSTE4_UHuV6Y38DTwJVww3Eb3xdTQ,1981
137
+ pyarrow/include/arrow/array/array_base.h,sha256=kq08hubpDlrIVgDRhL4MEqPyaEftgmoznQ91ZVrLnAQ,12371
138
+ pyarrow/include/arrow/array/array_binary.h,sha256=JvtB8DoR0_tqfSFS_9nMRrJ39lt1cTm5yXh-DLkhqjU,11247
139
+ pyarrow/include/arrow/array/array_decimal.h,sha256=xRfrZ1IFO09EmkHEolCwrJ4lsXjLo5DXdfH5_v2gSyw,3105
140
+ pyarrow/include/arrow/array/array_dict.h,sha256=6AMbSnZoMj-nhQhZhG4RNnxy9VVPk2DvZjVblwIUhgY,7611
141
+ pyarrow/include/arrow/array/array_nested.h,sha256=MRFllX_LO6AQXNkyAujEdax2gEYrnQALySwB9tuP85U,37717
142
+ pyarrow/include/arrow/array/array_primitive.h,sha256=_U8_pTHg-aHY5jaSFjHZ4hqRPXdYiyKTpr2y3OcJcdg,8184
143
+ pyarrow/include/arrow/array/array_run_end.h,sha256=4zs3tcUrIgDOhSEOywJ1vGY2lsH-5QuEBn87mxnDbi8,5101
144
+ pyarrow/include/arrow/array/builder_adaptive.h,sha256=92DpiIZDXSI_yOrMftj7P60zlCLjNmwfGM5ubdbXWM4,6861
145
+ pyarrow/include/arrow/array/builder_base.h,sha256=CP9kS8pDFd4XyJQdgIlBp3pTIX9mND1Lvh85re4IC8w,13723
146
+ pyarrow/include/arrow/array/builder_binary.h,sha256=cfrm-LnXOZ73pQpn_kXSXw0Bh252DpsfP4KGHlPNy3g,33744
147
+ pyarrow/include/arrow/array/builder_decimal.h,sha256=DFxyFlpzWRZS9zdBhsjII5fFUOMY9bXHn3EIrIvmOMo,5051
148
+ pyarrow/include/arrow/array/builder_dict.h,sha256=FZjvCRIDmVuwmzx_HCcDK6ZjNoZKCEsSV-fGI0K974Y,27899
149
+ pyarrow/include/arrow/array/builder_nested.h,sha256=_VB9EUamHQcxQtJM0FiSy8Rs4vhzpOuqFMRfKa4qE5U,31231
150
+ pyarrow/include/arrow/array/builder_primitive.h,sha256=WX_3Y-FeCvTtoE2kHJ9L2cew_IN5W4uyQFfjsJ2lMLk,26031
151
+ pyarrow/include/arrow/array/builder_run_end.h,sha256=SZIdsUKK1qAc9pdonPGf0A_aikZHcxxzicezRGR5hLs,11416
152
+ pyarrow/include/arrow/array/builder_time.h,sha256=eLhc7UP9ttNJDbTeDdsf-ihMFORksmh7A0ScA5hLROI,2503
153
+ pyarrow/include/arrow/array/builder_union.h,sha256=8BF532sAMc7JxWIbSN-yX6Z9fqY9jmmsIa054DPvbWE,10144
154
+ pyarrow/include/arrow/array/concatenate.h,sha256=wBy-CBTz9MeRCmcnfXGvkXnvSRApvPOcfCf64A42ys8,2059
155
+ pyarrow/include/arrow/array/data.h,sha256=65s-2w9lskJAzQYio59NBAa9TH78JU95mcTX3_XRCoc,28949
156
+ pyarrow/include/arrow/array/diff.h,sha256=bYNKy2oLAxtt6VYDWvCfq2bnJTVNjG5KMTsGl-gT_kM,3344
157
+ pyarrow/include/arrow/array/statistics.h,sha256=f0_4nJyk9Su-7u4B-HR6lfyKLe7e5E9J1HNqhgnRU28,6914
158
+ pyarrow/include/arrow/array/util.h,sha256=qVHvCaVlALz8WJwAjyMwsBm5J2iN89CSgj7NpmmqlkI,3652
159
+ pyarrow/include/arrow/array/validate.h,sha256=JdDb3XJg4TmAfpv_zgu2ITfL2H9no10TQit-HPj9Myw,1710
160
+ pyarrow/include/arrow/buffer.h,sha256=aDZgA8fFnizg61OPvgpWxftsGRAGNd-EW2BMjE233ZA,23226
161
+ pyarrow/include/arrow/buffer_builder.h,sha256=qaMgLKbycOSsn5e5_nlOj3tdPHu0i45if78ZrFN2Lmc,17468
162
+ pyarrow/include/arrow/builder.h,sha256=mBxMko271lJ7Xbku0hCixj943Yx-d2i4Q5Hm2WfwiGM,1546
163
+ pyarrow/include/arrow/c/abi.h,sha256=GCjxzmA2jNWQ0ZWVkQ-hnbCbMHKPikO1-JkzYj96cnY,20318
164
+ pyarrow/include/arrow/c/bridge.h,sha256=6e6ZoIsG-pE8FQ5aU4nRJ71vVL3U9k697g7PYKDsVz4,21789
165
+ pyarrow/include/arrow/c/dlpack.h,sha256=IXIuMdfqbHJ_AdT_25tzp0z48mWC65w4xZMjTP3yl7Q,1983
166
+ pyarrow/include/arrow/c/dlpack_abi.h,sha256=mjp9WWq8qv6gkGirT4y0o3BL_ZI9VyHQpJ5aEpPFetI,9920
167
+ pyarrow/include/arrow/c/helpers.h,sha256=f0Q519PwoliFHpxsHp-QvbP6fpVMN2Ha35Tk-RBK6Ws,6279
168
+ pyarrow/include/arrow/chunk_resolver.h,sha256=oVm7DpbWRmjJhexj_h6BtispCBxFZPIHK1kl9goBGG8,12841
169
+ pyarrow/include/arrow/chunked_array.h,sha256=z6LA9OB3uhtmn7ZZe5wfi3Am3icVQ-L_e8s3KEMuq18,10647
170
+ pyarrow/include/arrow/compare.h,sha256=yp4ganiaR6xXokExmFAauUyfSPwOM8DuBmmAtyK0NJg,8059
171
+ pyarrow/include/arrow/compute/api.h,sha256=6z6HdNH6S0Amop2GUfrsifxOvgupfTqFDZf76YREt-4,2139
172
+ pyarrow/include/arrow/compute/api_aggregate.h,sha256=GCPpIA6qz6XL2UI4SyxXjyjPeC68OoT1tttpiue8eMY,21945
173
+ pyarrow/include/arrow/compute/api_scalar.h,sha256=qR-K4zRkfJmINCF0vTp3rMWf7hdi4PU4haD59wGO9Xg,70099
174
+ pyarrow/include/arrow/compute/api_vector.h,sha256=axkl_2Kz-VqeZkQgAsGCy9spxV62PkgJKhTklQyWWWs,34507
175
+ pyarrow/include/arrow/compute/cast.h,sha256=y8v-EYs-1zJ5NhulMGNzagKc9CkU14ld36VIbYdV94g,4245
176
+ pyarrow/include/arrow/compute/exec.h,sha256=2baXvq1FWwyfQfTV4r6qhF818LEYOxyn_DiTqE5AMCk,17975
177
+ pyarrow/include/arrow/compute/expression.h,sha256=LBwjf1LTtfCfTT3RGUq_3PI_V0LRf2HxtZ-Ovqslw-c,11164
178
+ pyarrow/include/arrow/compute/function.h,sha256=rtEKbrMURIqOWo3JgdOxHsDMk1F-Kk5_Jz_xcpXavxg,16419
179
+ pyarrow/include/arrow/compute/function_options.h,sha256=Q9rjkXPrU9-Xi64_fMLPbBbW_byhjJFsvHppP1CumdA,3088
180
+ pyarrow/include/arrow/compute/initialize.h,sha256=ms8mtCSHTaStTrWdapbNyNSpM0PO4ox32O9colbBR7k,1193
181
+ pyarrow/include/arrow/compute/kernel.h,sha256=d3BIi5NtSBqPsh2gyCsfT03LvRmO2vM_XgoXip_HuKA,32283
182
+ pyarrow/include/arrow/compute/ordering.h,sha256=8Vw3VzDi1mGgVwKGQZakz9TVj0A40wxcL13EvuqNVjU,4129
183
+ pyarrow/include/arrow/compute/registry.h,sha256=x7LHiaNEVvZ0VUssZFsasB52Z1AxRflkdI5tR1hhzqc,4837
184
+ pyarrow/include/arrow/compute/row/grouper.h,sha256=ID9sFjFawulQC5T_f-TQttvohhsSAmNkHIj1iXzDY-0,7520
185
+ pyarrow/include/arrow/compute/type_fwd.h,sha256=tiG7MrLEfXAPF53JKlnFdJ7kzjhNP9a_xCb2Ept3ozc,1555
186
+ pyarrow/include/arrow/compute/util.h,sha256=l1y6P1hHsI-mQ7lB6KNn_8AzYCxCxuhaSBOOG_wqjcs,9376
187
+ pyarrow/include/arrow/compute/visibility.h,sha256=_h6gB6GG5YSF3aak6oAerylqtJvjhTN9Tq8MZccpO0M,1597
188
+ pyarrow/include/arrow/config.h,sha256=8liyKI0CJO0G-Fz5I--QjIAwh0m4hosfyAOwvVVs0sU,3044
189
+ pyarrow/include/arrow/csv/api.h,sha256=LbwWhPyIsi_73hvsSr77RNR9uUxrVyXM__hp7QcSom0,907
190
+ pyarrow/include/arrow/csv/chunker.h,sha256=nTs8hdy4D3Nz3oZWm2JMuA02noY_0pWRYWq_RptqzHY,1171
191
+ pyarrow/include/arrow/csv/column_builder.h,sha256=5t3842eXFsAHtrLGJ4LQkH2epUAr06PbnF7POwlgQQw,2889
192
+ pyarrow/include/arrow/csv/column_decoder.h,sha256=10idcPJE2V_TbvgjzPqmFy1dd_qSGWvu9eDkenTuCz0,2358
193
+ pyarrow/include/arrow/csv/converter.h,sha256=cjtnz_hZFxm_dWjAMjr1iqqk1egXI2Yb8Bd0xC8md5E,2789
194
+ pyarrow/include/arrow/csv/invalid_row.h,sha256=gTHjEbjkpee6syLGA8hFY7spx1ROMJmtMcwhXv21x5Q,1889
195
+ pyarrow/include/arrow/csv/options.h,sha256=0ShMt1PduP3K-n20HjxhWRQMORKP_q4rsIRYeWzoDR0,8202
196
+ pyarrow/include/arrow/csv/parser.h,sha256=8PplRh3Qxckk8VPyM70P_f1MBb4WMGnNVpoeJ9kOdHU,8616
197
+ pyarrow/include/arrow/csv/reader.h,sha256=416pt3yNQsgn4RhIyRMsmSJmvv1sw3ouQotubXG91gQ,4606
198
+ pyarrow/include/arrow/csv/test_common.h,sha256=uEYzw8EROvd1QMBQ98d4MaZ7BqMlw2e0flAyz-du0Z4,1972
199
+ pyarrow/include/arrow/csv/type_fwd.h,sha256=ptVbengmY_a7Yz1w0SKmKL16yyw9yEeym0Q0cnRCSV4,984
200
+ pyarrow/include/arrow/csv/writer.h,sha256=Y1zErZ5H1r2QzjAta3TXpFrdl2btoardCF8USCAGtGg,3549
201
+ pyarrow/include/arrow/dataset/api.h,sha256=p7i-bncJLhmfBkfjJWS7684vD9Lke1m6tb7HQq7Tpn4,1322
202
+ pyarrow/include/arrow/dataset/dataset.h,sha256=NsXdSFYrO4BpJSEV2e4yJRrN-hdLxMJepwAyyqFWt-0,20327
203
+ pyarrow/include/arrow/dataset/dataset_writer.h,sha256=TQV75b_UigfGjIpBnPk8teOncM5WroKfKV15oicBRRY,4589
204
+ pyarrow/include/arrow/dataset/discovery.h,sha256=x7-5NBAyEeQWGlWanJDLZAoWksKiMwM96tlDx_M6n5c,11236
205
+ pyarrow/include/arrow/dataset/file_base.h,sha256=nUMWLbhh7lt5c3iOw5edAtcy4jrCzpBUX5JZ29FW0Tk,20385
206
+ pyarrow/include/arrow/dataset/file_csv.h,sha256=7PlvQW_2FJ5RRN-VH4-OBw5cZ6nkd0KE0sj1TQvCZeo,5016
207
+ pyarrow/include/arrow/dataset/file_ipc.h,sha256=6-btvXhflZsAH90T3wMkwzZkte6T4ixzeCEUn_5uYW8,4083
208
+ pyarrow/include/arrow/dataset/file_json.h,sha256=sPjOeMOtbZZbvOivnOdb4MvYKHltpTnY8fONkhB9PZs,3523
209
+ pyarrow/include/arrow/dataset/file_orc.h,sha256=P7nAD9nacVngDEjH8ChQRt0AQmDg4Z1wBx360LDOoSg,2452
210
+ pyarrow/include/arrow/dataset/file_parquet.h,sha256=_mhpCrrLGn9XPKSt9lsdbG4wosPOkMiqkjXDz-2D_So,16935
211
+ pyarrow/include/arrow/dataset/parquet_encryption_config.h,sha256=Upo0k5MijZaMaRZjPp5Xg8TRt1p8Zwh2c2tdimjVe1A,3425
212
+ pyarrow/include/arrow/dataset/partition.h,sha256=3wrNekD_-fPO1YW91Za-T4muCfQeAX7SZRIcsCN_czI,16815
213
+ pyarrow/include/arrow/dataset/plan.h,sha256=IjuR9K2sWD85_2HpVVoJ-3YUCq--UPblHU46exX5qRg,1181
214
+ pyarrow/include/arrow/dataset/projector.h,sha256=KfZijq09Ht0Z2cJHsrjg-sE3SiZ4TKainflReK-39cg,1135
215
+ pyarrow/include/arrow/dataset/scanner.h,sha256=fWeW3NZF5zQYAjSIDU6wJsitzaVrSRbOmrMUnNQE1RA,26176
216
+ pyarrow/include/arrow/dataset/type_fwd.h,sha256=YOUSRwdNAlXJ7meFLolpAFQ_mSlObs2F81zcOy0DoI4,3170
217
+ pyarrow/include/arrow/dataset/visibility.h,sha256=ckmf_sEI0WBo4W7DIgH1QrOq82skOHtoksl9B3yYvzU,1586
218
+ pyarrow/include/arrow/datum.h,sha256=XYaZ_URrAtVqHMq-_2YtXk_ETeQ4yZWLVAnsi-k2Mac,11511
219
+ pyarrow/include/arrow/device.h,sha256=mLz99tb74VdjxXtKt6RZCYKJQ8TYz93uaCFJ1ZiItMw,15344
220
+ pyarrow/include/arrow/device_allocation_type_set.h,sha256=ynoZ-XyFlOAjh01PU-R11mE_EOxuw3xzc94v5OXa0u4,3306
221
+ pyarrow/include/arrow/engine/api.h,sha256=ORM0M5KQeurjEG8Eoa5IeV_ZgKBRPlWyicyv3ORWkAY,886
222
+ pyarrow/include/arrow/engine/substrait/api.h,sha256=W9NB1RAm0ZVxztRXYA-GD7H8XLQNXFoYT7TdGFHoNTE,1079
223
+ pyarrow/include/arrow/engine/substrait/extension_set.h,sha256=z1IIQVd4bat5kRngg91IyoE5UYTv7bar1JQ5ck63YbY,21552
224
+ pyarrow/include/arrow/engine/substrait/extension_types.h,sha256=x5ZIuynNh6WFt3wRjW--zUsuC3SeDLk1qRg9_xhswWM,3075
225
+ pyarrow/include/arrow/engine/substrait/options.h,sha256=dtvUty_zoDmcFwVflppiDzelYkeOhCO74uRF6izQSzk,5820
226
+ pyarrow/include/arrow/engine/substrait/relation.h,sha256=V3VKFlDdE61e1OS8LbJiwvm5w0uq5bzBLhKqmgmKaws,2385
227
+ pyarrow/include/arrow/engine/substrait/serde.h,sha256=mjxfuFo4aPhCiwefpKAJMIlknF4UOHSr6gWU__1SwCc,16528
228
+ pyarrow/include/arrow/engine/substrait/test_plan_builder.h,sha256=REFa79D1AOIIjp2Iez73iw5gEnzG9Rac9t8WwiGLsuI,3003
229
+ pyarrow/include/arrow/engine/substrait/test_util.h,sha256=IHZeYrk50Sx9anJfC25DWP6XesItKEywDWUqvUJcjEQ,1517
230
+ pyarrow/include/arrow/engine/substrait/type_fwd.h,sha256=P9YRjAQpSgoIjDC0siYyxoQzcPVo3r9y85qjiMtudBs,1028
231
+ pyarrow/include/arrow/engine/substrait/util.h,sha256=_dRiQBaIMWNbsYG7kuXhs3dMk4dI63-pM0uSxYPOvgE,3570
232
+ pyarrow/include/arrow/engine/substrait/visibility.h,sha256=GRzH6U-UCPT8d60cywOkFfcanPSgiZKCDP6X2rIpbMs,1740
233
+ pyarrow/include/arrow/extension/bool8.h,sha256=VsHTtVyrqk6UKgvifad7LouuieoAZuZs_uVvegdGq4Q,2145
234
+ pyarrow/include/arrow/extension/fixed_shape_tensor.h,sha256=VOqvTSnwDIvnhbstYX5nnqWfhtZ7MaD-lSF89BEqlhE,5610
235
+ pyarrow/include/arrow/extension/json.h,sha256=bNh6R9aP3MK-rbTON8IzVn7FIt9RGMmUHGpQkFGfOMw,2026
236
+ pyarrow/include/arrow/extension/opaque.h,sha256=uMVqSScey_13Ho6V86vfkuoByZni9ufh5BGKgX4bTZk,2920
237
+ pyarrow/include/arrow/extension/uuid.h,sha256=DBzTD83Mh3oacfZzfU6fQuGC87gvtnGGaDue8s9M0Ws,2364
238
+ pyarrow/include/arrow/extension_type.h,sha256=YUvUzPz-0QiG-jOjs__TfyPEpsHWGkGO5PMVG1vMjkY,6639
239
+ pyarrow/include/arrow/filesystem/api.h,sha256=Xgy2GOZtBVwDjTaXPDyPPlS9Bwt9gjWXm5I_QbyRbFo,1383
240
+ pyarrow/include/arrow/filesystem/azurefs.h,sha256=M-7jR8AqyPu8uTXbw4INLb9RsZKrPmZlPO7T7MskQ_8,15299
241
+ pyarrow/include/arrow/filesystem/filesystem.h,sha256=tjRP-ZEWzES6bMfmDQ2MwnYr_3OGV5ZyfbZr3JqWZXM,29604
242
+ pyarrow/include/arrow/filesystem/filesystem_library.h,sha256=f2_p4Odzvq7zrMePwNcWFFet8oolnDI8SF0t55Z6T_Y,1765
243
+ pyarrow/include/arrow/filesystem/gcsfs.h,sha256=5HSHqA9a1T2zVnZO1rNZKnXjLVyq1aAm6DRmQmg_v5w,10372
244
+ pyarrow/include/arrow/filesystem/hdfs.h,sha256=Jn91pjfk6RMx-MuAWsEAKLTyKQ7bDPNA5jMEVzafSgc,4133
245
+ pyarrow/include/arrow/filesystem/localfs.h,sha256=eIhPrpABheQz21WE845ULleTk83e4EtJnES4jALW6mM,4972
246
+ pyarrow/include/arrow/filesystem/mockfs.h,sha256=kohu7s9s9xtd75sGTE2K_rsHW89swDOtSSSFxBixMcc,4768
247
+ pyarrow/include/arrow/filesystem/path_util.h,sha256=hrDVHk4F9M7oGABB4x2wKfQMjSlSAIS0IaLVv2jHrl4,5698
248
+ pyarrow/include/arrow/filesystem/s3_test_util.h,sha256=22B600fr84Gq4rGALdidIP0IzDs9G3aOqkLN4y-6xrI,2962
249
+ pyarrow/include/arrow/filesystem/s3fs.h,sha256=q79pFbxFmsfA30LE78bOh6hj5Iszh01Vtw8LUpIa6T8,18221
250
+ pyarrow/include/arrow/filesystem/test_util.h,sha256=IcdXbz8kXaZDvUPN6Oc77UpWI2Psv1f_CKZxB3UGg-I,11738
251
+ pyarrow/include/arrow/filesystem/type_fwd.h,sha256=zztDER55Wbt4rVnkd-ReeDO-YnrpemftFeFtZ7ZGidY,1462
252
+ pyarrow/include/arrow/flight/api.h,sha256=YotLTQn-KCl6y5BIg8coEFZ9n7PMtJ02ly7Pc5gmX7U,1257
253
+ pyarrow/include/arrow/flight/client.h,sha256=MdHgubO7ExcWgp8S-CP9B4UfJ_aRLgLat0yz0pXQEdg,17936
254
+ pyarrow/include/arrow/flight/client_auth.h,sha256=a3Dkm_jPOuqzNsDA4eejuMUwCEBMavM8uS7w81ihbRY,2216
255
+ pyarrow/include/arrow/flight/client_cookie_middleware.h,sha256=5zkCP2SxMFQuTX8N9NHxOve5J_ef2rFO6-xY4Tfnygk,1204
256
+ pyarrow/include/arrow/flight/client_middleware.h,sha256=aAZwCahuiBhP85iMPe7xNWvidBR9KeHGto2YAqJioI4,2948
257
+ pyarrow/include/arrow/flight/client_tracing_middleware.h,sha256=d0sTmUOfq5M9FMliIKK-flJkR6-7r69NjU2TpxhfqWo,1217
258
+ pyarrow/include/arrow/flight/middleware.h,sha256=JPQd8JnIVcwjTH6yOBck4BWR-WV95fpnAdhHyEYvfKE,2254
259
+ pyarrow/include/arrow/flight/otel_logging.h,sha256=riS9sZM2C3mH6VMbESizJ6lGmudqdJhfdCY9_cJJqMA,1139
260
+ pyarrow/include/arrow/flight/platform.h,sha256=1ZfzVaollAZosGyH_1JvzEA8iNR0hi9cUGz5eyLT1zc,1209
261
+ pyarrow/include/arrow/flight/server.h,sha256=GAcV0-THuBuj-bXfwqYrZ1P2bwZgKQSJLbu8ToltRvU,13185
262
+ pyarrow/include/arrow/flight/server_auth.h,sha256=xXkot_fmnEZ0yXHEBmiezAQCxM7vQem1Vo1V0vEwcW4,4457
263
+ pyarrow/include/arrow/flight/server_middleware.h,sha256=kRXm15c1mjPduoS7N61m0TG8nGIhN_ielsjK9yFlsgs,3155
264
+ pyarrow/include/arrow/flight/server_tracing_middleware.h,sha256=NzyufqTwzcTZ32FNuY-rwse4KmH8zoyoc1RhZxUMwFs,2186
265
+ pyarrow/include/arrow/flight/test_auth_handlers.h,sha256=XkvMWucv9GQjlt2ttvYxshym4kUubUdMh-timlQIt1I,3315
266
+ pyarrow/include/arrow/flight/test_definitions.h,sha256=U_HhBnNdNZmojraYzICBmBvuef0bTT5eYzFXp8iGFzc,13110
267
+ pyarrow/include/arrow/flight/test_flight_server.h,sha256=SbRhZP0U4ILnbg7lYQvGeXmvPM_B6bai12FTM_HD4RQ,3930
268
+ pyarrow/include/arrow/flight/test_util.h,sha256=1Tv0Yl5lth2j3fIZT7iI8n_kexzGgJHGxplV4xeu7TE,6668
269
+ pyarrow/include/arrow/flight/transport.h,sha256=ZDXc-f8o00TFWESwsGU1My7rR9OfM3X7OZjDcGXTwIA,12181
270
+ pyarrow/include/arrow/flight/transport_server.h,sha256=iVdXmrb2pemh4o6BxwvB7OZAV4UeoWrbhe4ePZ5Pi4s,5268
271
+ pyarrow/include/arrow/flight/type_fwd.h,sha256=tQFAM3QNKPdzB4VqUGdEUFjNPYXVZLApwGnSus2GQx8,1797
272
+ pyarrow/include/arrow/flight/types.h,sha256=BwMWMwRPSxdyYPcR1ocdi2KXpJvAXRepkz6vUfZVCmc,47383
273
+ pyarrow/include/arrow/flight/types_async.h,sha256=3nIQqwCYO4Ir3Mt2bG7BNntXxuNHYQNNpz-Yl3EaFTQ,2599
274
+ pyarrow/include/arrow/flight/visibility.h,sha256=N1k74cwyRvOaYFa_tCjdgUjiSdPBhmy20UuVGu0wTg0,1596
275
+ pyarrow/include/arrow/io/api.h,sha256=Pn4jZSTsLW8MAlMyXUokmJdupX54u154GYI5AvD5ByA,996
276
+ pyarrow/include/arrow/io/buffered.h,sha256=PHaMwCMaXu3vAjhDpZMC2xt5hKooJXVeMffhoDzTxNc,5912
277
+ pyarrow/include/arrow/io/caching.h,sha256=AAjoyKwQ06m2XiglFS6Ch_cdg2p4-wkA7GakGI_eX1E,6708
278
+ pyarrow/include/arrow/io/compressed.h,sha256=3JxIOo1q8VhjIErfwVM5ZLVkwwQKXd-FT5517j58etA,3774
279
+ pyarrow/include/arrow/io/concurrency.h,sha256=SmIr0OWCgMUR3j9ngVbjMJhWOUrU15jQf_jz2rUw7r4,7934
280
+ pyarrow/include/arrow/io/file.h,sha256=-ZEklW1Q0sj3pYCQLQ1ebirKd3s2GI3vUEIszFr8mVU,7625
281
+ pyarrow/include/arrow/io/hdfs.h,sha256=2s3f49ggAYgSCsX5SoqnomwsXd24_IZhW-VSBJclqTg,8559
282
+ pyarrow/include/arrow/io/interfaces.h,sha256=QIBHTJUobEkwcqnKMT_GEKu5ArzpeGmK-8v7z4qGHIQ,13428
283
+ pyarrow/include/arrow/io/memory.h,sha256=SY535DEFEOIXojttrsGmMtK5PClwGx5sHK8E_TlCGCQ,6321
284
+ pyarrow/include/arrow/io/mman.h,sha256=qoLBAGFcvpYTy96Ga7FNWDJKT3uhxpFAF3hbXIaDSiY,4111
285
+ pyarrow/include/arrow/io/slow.h,sha256=8-ZjQJq49EQJ4esQ6qHHjlKCeZNg4BSND7ire-ZtLYQ,3942
286
+ pyarrow/include/arrow/io/stdio.h,sha256=dqMTHoJbmiXcyNa2fN60tSWQsx0GPphZVCLdGiZNt8I,2095
287
+ pyarrow/include/arrow/io/test_common.h,sha256=SF59odb0E3rtGju5jABsQzZcUi9gl5TwHuKg4f0EQ5Y,2146
288
+ pyarrow/include/arrow/io/transform.h,sha256=W9XWonw69VymQAaQptfW7jD-6ry7VCpfPXlkB7aZzOE,1890
289
+ pyarrow/include/arrow/io/type_fwd.h,sha256=Pi7EFpFvBXsFN1xKOyZjTSP95xNDs6W5hxb5GucoVVE,2315
290
+ pyarrow/include/arrow/ipc/api.h,sha256=sbbb-uYHZtqE59AUlwNnAzUkP41h3Et9Rnu20gNKm9w,972
291
+ pyarrow/include/arrow/ipc/dictionary.h,sha256=UTjZPIG8mLZOk9IW2QnR9RZGr1npexZOp103fv-O70E,6104
292
+ pyarrow/include/arrow/ipc/feather.h,sha256=uCnxwO7eUH18kJ-lWz9IWwSj6AjfejqqLdoifJ-UBDo,4918
293
+ pyarrow/include/arrow/ipc/message.h,sha256=KtMCbIC2J4-5iyPG5Sijqu_MALxiuKWBYZhGnw0jxOQ,20011
294
+ pyarrow/include/arrow/ipc/options.h,sha256=rAnPbL2wXRg4tZpnC3FNkxWxPdhRR5xUM2tYkc1crZ4,7900
295
+ pyarrow/include/arrow/ipc/reader.h,sha256=NqdrqqAEItO1ecYUINRO7-qhKlYy-CHSJKGI2hdXlRQ,24106
296
+ pyarrow/include/arrow/ipc/test_common.h,sha256=kd6-NmmaT__0cDYIwes8lnOqbQDSqFZn8eg2N-SHfE4,6559
297
+ pyarrow/include/arrow/ipc/type_fwd.h,sha256=Ty8ET7nLI4JJeTqDMyP0pEH9QVj9xs7BpJkZrnrpaPY,1440
298
+ pyarrow/include/arrow/ipc/util.h,sha256=wTkfC9YFKZlAAjyzlmQVZcW90oOj_JatjDN4qz0IxHg,1414
299
+ pyarrow/include/arrow/ipc/writer.h,sha256=hum8E_orkG_X38vgyfyKhGbyvcLJ3AkXEykyBjAXIYg,18870
300
+ pyarrow/include/arrow/json/api.h,sha256=XRW1fP43zVqwy1yabaKctNK9MDZqnxkoHDH1fx5B3Y4,879
301
+ pyarrow/include/arrow/json/chunked_builder.h,sha256=DDuMwrImMECw6Mhfncn2xMOjkFcKUV1O1597_fSFSAs,2365
302
+ pyarrow/include/arrow/json/chunker.h,sha256=dkZOcxsF1Q3ek58P7IoA8f3lQyBQpFvGSFeynNV2Olc,1119
303
+ pyarrow/include/arrow/json/converter.h,sha256=3lXsP3BSdpLPIkFAJnYW9vP8BbX3neVYR_W0zFKClQ0,3134
304
+ pyarrow/include/arrow/json/from_string.h,sha256=y--AK08e-EivbrilSGU6xtPH1VpqBNZIYvCMUT2_V_E,4106
305
+ pyarrow/include/arrow/json/object_parser.h,sha256=Y_6Oceya06aUyeo-1k047dm2-JUMJa2_w9iyZ-goIRQ,1627
306
+ pyarrow/include/arrow/json/object_writer.h,sha256=UrIrjCkIz7Q5n_FpV5NNPD96gHHdTkvTJaekuGBHwTo,1428
307
+ pyarrow/include/arrow/json/options.h,sha256=EypQgDwLZQbrPnAh45nSPfpGGYrxvLgfp1eAG_l0p3Q,2227
308
+ pyarrow/include/arrow/json/parser.h,sha256=3oIzO5kUs2Takc7t_d5mH7bp1uIcc1M-qbuHmPoSI34,3383
309
+ pyarrow/include/arrow/json/rapidjson_defs.h,sha256=lBJlfuYWIeQQ8awPd3bk4jJc81efr_KzKwG8Klw7t1s,1474
310
+ pyarrow/include/arrow/json/reader.h,sha256=KNO9dCyc2RZs7WxUSEW7bpCYBh_h1C3U52YHYxBnP0M,5212
311
+ pyarrow/include/arrow/json/test_common.h,sha256=YiiY_jswpp7Nu6IW1Y2lBhqWSFRoNaNEy1jHd5qkYHQ,10874
312
+ pyarrow/include/arrow/json/type_fwd.h,sha256=o9aigB5losknJFFei1k25pDVYZgkC2elmRMX1C6aTjo,942
313
+ pyarrow/include/arrow/memory_pool.h,sha256=sKBdu-Aidm_X3qbPnfpur5LX7nuwlsnCraPsGR2Up70,12911
314
+ pyarrow/include/arrow/memory_pool_test.h,sha256=qv7csk6hZiO2ELFF-1yukpppjETDDX0nuBFBbPFHtMU,3350
315
+ pyarrow/include/arrow/pretty_print.h,sha256=Z36O7Rp3wp8gCG51YHh-x8ytrrENDpFZSPmSSXs9TAo,5716
316
+ pyarrow/include/arrow/python/api.h,sha256=2XyYOFAmorPGXrTVYZkiKL67nuH8w1ha6D1reU7K-Vs,1179
317
+ pyarrow/include/arrow/python/arrow_to_pandas.h,sha256=jQiSTN8IL95onwaclaWqCR5Nb2RHrBtubRyEOJR9eRE,6215
318
+ pyarrow/include/arrow/python/async.h,sha256=C0f8YYmgwBGgDau4xEFsdjukiZB4YvpylETHEZryHOo,2352
319
+ pyarrow/include/arrow/python/benchmark.h,sha256=f-kzyMOlPKDse2bcLWhyMrDEMZrG_JHAPpDJgGW0bXU,1192
320
+ pyarrow/include/arrow/python/common.h,sha256=9IQC__JUqTRXv5MfAqKM6ivMwuQ-uMZKEguGDEODkiA,14389
321
+ pyarrow/include/arrow/python/config.h,sha256=SQa6SuM3oAfQ7wEbwVJqlPfqslqlq2DXK_FK6-K08Kg,1150
322
+ pyarrow/include/arrow/python/csv.h,sha256=QxU3B-Hv_RsoEcMGS9-1434ugouL2ygC64Lq6FgviNM,1397
323
+ pyarrow/include/arrow/python/datetime.h,sha256=Bny_THGi2tyUeHxcOuw01O7hNE8B_gave5ABAZQtwTQ,7931
324
+ pyarrow/include/arrow/python/decimal.h,sha256=K9ScmzSa7XCuuwpXKnq0GPbRDTuRU5yXfWr9zGtOchc,6362
325
+ pyarrow/include/arrow/python/extension_type.h,sha256=0gzb42y_mbw4fsYs3u8cwPFLBRlG-kkHQLgbvGtrY0U,3181
326
+ pyarrow/include/arrow/python/filesystem.h,sha256=FG0AcLekqaDf9IQPqKixAfIcY_ZLgIKP5NvvXdtBVUM,5126
327
+ pyarrow/include/arrow/python/flight.h,sha256=t4ZD8gWaubbO_mBDv0XZ58TCo1VQl0hzHn1_7w4U64I,14450
328
+ pyarrow/include/arrow/python/gdb.h,sha256=H-qvM-nU8a_3Z5tk8PvppTwQtBMSZhQKQIVgRAsRfFg,972
329
+ pyarrow/include/arrow/python/helpers.h,sha256=Q3TmwyffFpVYQEp55ZoWTDDhnte7zQKiXylsfbEMCuI,5479
330
+ pyarrow/include/arrow/python/inference.h,sha256=FUFvB4Zy7V-tueXdmbDcqTeLK4xj5GZEeRW5yhiJlsU,2038
331
+ pyarrow/include/arrow/python/io.h,sha256=4jGnodpSUlnVqAVh9fWId7H4WldlLPkXyroABpdaW6w,3858
332
+ pyarrow/include/arrow/python/ipc.h,sha256=SZbw6jCCqLiLNCY3k632GmwHeD_r_xrDS0dhqV49VhY,2259
333
+ pyarrow/include/arrow/python/iterators.h,sha256=Ugfm3JvetAH0l-oAjjpZfhrUBqRimVMaw4-xusvqLSg,7327
334
+ pyarrow/include/arrow/python/lib.h,sha256=NSqX1jl5ZWssVm0SmNFHp4PckJYy8YCJxlL02MKa4Uc,4562
335
+ pyarrow/include/arrow/python/lib_api.h,sha256=rm6EBrvNbQHNzt_TJGbbdIo5T_1IC2WBAXIQnpMzsNA,20132
336
+ pyarrow/include/arrow/python/numpy_convert.h,sha256=y13eHwfe1lJKzadoTr2-GyX6xPsE6Z7FN31s7PN-2Rk,4870
337
+ pyarrow/include/arrow/python/numpy_init.h,sha256=FniVHP7W2YBlenoMYhQrODvoqqvDMSls2JANGtNPQts,999
338
+ pyarrow/include/arrow/python/numpy_interop.h,sha256=rI6ek8JTOYtjo7gEADSDBS6QuAOHa2A0YQPZ2GeypFw,3418
339
+ pyarrow/include/arrow/python/numpy_to_arrow.h,sha256=z9KapsuoOSpWILPt9bea7GR4BL6AQ28T6DUO0mSkh3k,2760
340
+ pyarrow/include/arrow/python/parquet_encryption.h,sha256=7KjqRuxbO0UxxHikTDvrLH733UVe0uvTf_bQMiI_xCA,5596
341
+ pyarrow/include/arrow/python/platform.h,sha256=AtkGgpUVqPHs9Z8Tm07yb2zN_wOtb2cvlf-5xFBkc4k,1268
342
+ pyarrow/include/arrow/python/pyarrow.h,sha256=TK3BtD9n3QKOQ9dX3LXbQc0hu9alWcufV0O93iQW7B0,2761
343
+ pyarrow/include/arrow/python/pyarrow_api.h,sha256=7l0G4-_m9yALYoifsY8Z6qh3HHD0PgkpVSgCn_JaGU4,867
344
+ pyarrow/include/arrow/python/pyarrow_lib.h,sha256=-70_Ckj3_0ImlzaXSJOE_d3w9pGM66lXiGPyln9c96Y,863
345
+ pyarrow/include/arrow/python/python_test.h,sha256=ea32mM20uHySlygi9MtVxr26O-ydTZHCUQIlxaIMjT4,1195
346
+ pyarrow/include/arrow/python/python_to_arrow.h,sha256=BoVytf6P7PBYXyznchElKZSFvEsFyimB-tLFdw0AUNo,2521
347
+ pyarrow/include/arrow/python/type_traits.h,sha256=U7dW4sajVVmjXALsP-B8ZZwI4GgIUG3t-rbp2fwrHWI,10236
348
+ pyarrow/include/arrow/python/udf.h,sha256=de3R8PhNJO5lT9oCqRxe8e2_SE3jBpHOkwbNqCrlgjQ,3104
349
+ pyarrow/include/arrow/python/util.h,sha256=sP2CEGG7NNqwjrEeNKB-VFqkKxn5P2Tsc0jPUMXQuLg,1732
350
+ pyarrow/include/arrow/python/vendored/pythoncapi_compat.h,sha256=bzMnlHTCfjk5DQRIxwytunYh5aQxU3iSElaaDyNnAY8,40900
351
+ pyarrow/include/arrow/python/visibility.h,sha256=hwJw5sGrWJckQkNaAuLe4Tf-VDjQbXknyzNOVgZI3FI,1381
352
+ pyarrow/include/arrow/record_batch.h,sha256=DZ_GZUGTEBv7uJeNnxPoY1ZnB-m7tfSYcHuNdL6iXVU,18947
353
+ pyarrow/include/arrow/result.h,sha256=sh0Yp4pFT07H-ro8CFzK-Iye_0PF-unu-vz4C0hcoHA,18357
354
+ pyarrow/include/arrow/scalar.h,sha256=rsZGG1akIQJRRTw-_dlXLjkPT6NTONiwv70L_1zPxho,37320
355
+ pyarrow/include/arrow/sparse_tensor.h,sha256=1EetIzwI_JvNITcy3LS9Ra0wFiDWLB0hXjy26VOCg2s,25205
356
+ pyarrow/include/arrow/status.h,sha256=r9B963ikSEuSQpbnuGBV-pl1Dtfi5Co0gFd7hI0AMUE,17392
357
+ pyarrow/include/arrow/stl.h,sha256=2PEb_N_ZOWrwBJnFWah96GuLmEBc5Vl4_IFws9NCF2k,19343
358
+ pyarrow/include/arrow/stl_allocator.h,sha256=TBbvjbuQIH9y88FI2SaqAL7pOIt3wZ1xMKwXqeKNiJE,4956
359
+ pyarrow/include/arrow/stl_iterator.h,sha256=RelNQrADHupKWTuFBCCkqVlyuGHXU3yB6gcsDpQpra8,9953
360
+ pyarrow/include/arrow/table.h,sha256=0RFiXqJcNfcdH9jcDcBiRunPdWcHZn4A0blWdSR-MqE,15300
361
+ pyarrow/include/arrow/table_builder.h,sha256=LRcLCL2iUrj6vF4f9AjPswVjqtqlMw7z_8VBAfUJeCo,3763
362
+ pyarrow/include/arrow/tensor.h,sha256=t5qdeufYoYG1Tl4DCiDzeZkOhyiQQPOGbMKCLa0u7WM,9089
363
+ pyarrow/include/arrow/tensor/converter.h,sha256=RZq0Try_kiZ085_d_CvhewMsd57InGb2TCeiveaf-Oo,2891
364
+ pyarrow/include/arrow/testing/async_test_util.h,sha256=IrHWfPeIyhrgeTGHUPLt92LdsofmFX6khjngWsZv3dY,2262
365
+ pyarrow/include/arrow/testing/builder.h,sha256=4x0bWOedaVomWU0m7dF99irOv3flR-_p-IMofTDZtwo,8556
366
+ pyarrow/include/arrow/testing/executor_util.h,sha256=38_rF-V_9zF1ttJMspkPiI-34VU1RDjg1ADBS8lUFHk,1885
367
+ pyarrow/include/arrow/testing/extension_type.h,sha256=2xHmtD1bnK-u8Or38keTBvDuXhgKvsVyiiO-exlWHXg,8113
368
+ pyarrow/include/arrow/testing/fixed_width_test_util.h,sha256=g6yB7RkziU7HEhNJnxOhkn2nE5HeXaFX3tbBX3q9_sE,3091
369
+ pyarrow/include/arrow/testing/future_util.h,sha256=qIhi417OGMWSMUSDHjkGTYd-ihZbqw8ZSIRwJ01vbKg,6246
370
+ pyarrow/include/arrow/testing/generator.h,sha256=zwEI_ZS-nxOIoYZUW_X9VE0wg5ILk8PzBpeo6kqXUDM,13525
371
+ pyarrow/include/arrow/testing/gtest_compat.h,sha256=0NqH39my7m1FMpsrQYnxQx4bdEE10SCXZaysN6yjQFA,1311
372
+ pyarrow/include/arrow/testing/gtest_util.h,sha256=s6hzot0wcsaVvajwRlBYmWGUjSvJ13o8AlNGLhEtPr4,24381
373
+ pyarrow/include/arrow/testing/matchers.h,sha256=Z6jJW4fGlvtpc7oWpPlx5ynLk2tnLwF-dhv5fQIcvqc,16832
374
+ pyarrow/include/arrow/testing/math.h,sha256=YLDNNqYpSHBT1jZo06pYN-TG_RtOJFOJ29YJ0hSP8g0,1424
375
+ pyarrow/include/arrow/testing/process.h,sha256=AzPW3Lh2R4sTm-RUUi4Od3aSba9zoLcS_zHBxztv4zI,1372
376
+ pyarrow/include/arrow/testing/random.h,sha256=U17nEG1fl4vAMGULYVMWUtdIv15R87EoK-SKZirujAc,38331
377
+ pyarrow/include/arrow/testing/uniform_real.h,sha256=-G_2J9cvevoCtB55vsCsWtJkMUHLIMyOwdT6G8ZW45Y,2970
378
+ pyarrow/include/arrow/testing/util.h,sha256=bvrOS5Uvcfn4Crb-bf_4_02Jb5MPQsItf9AnWC6CKmA,5662
379
+ pyarrow/include/arrow/testing/visibility.h,sha256=-wjc00QIhygXJa7tknbIL685AQ1wnyCPr-EtVzkzmq0,1606
380
+ pyarrow/include/arrow/type.h,sha256=6X9yEP8xA0EmrVo96fG0w4QsGfafqgy9333qinsS4YU,97136
381
+ pyarrow/include/arrow/type_fwd.h,sha256=04ZjJ5UYWHsFofNPN5yx94VEeFh3__906P5J1QHQaqc,23665
382
+ pyarrow/include/arrow/type_traits.h,sha256=nKDVrC4_4EBfyEbHQdVr4mgmAaSvdp6cJE2XPZfUwaA,56056
383
+ pyarrow/include/arrow/util/algorithm.h,sha256=045EVzsC9rThlRVFaCoBmmtWZmFy5y28PR9yapn9sXY,1229
384
+ pyarrow/include/arrow/util/align_util.h,sha256=DG2L24KReTiU8nFpXLigbflkKouKWTPUf6osQs6mxiY,10669
385
+ pyarrow/include/arrow/util/aligned_storage.h,sha256=e0pCTBZ9hn9VAVTnENubbEii_witF73xUeBZNIQd73I,4254
386
+ pyarrow/include/arrow/util/async_generator.h,sha256=avVH3JPaDk_vrEh8uhPLopVN3LSn-29yst23GoptZR8,78200
387
+ pyarrow/include/arrow/util/async_generator_fwd.h,sha256=Q8sueYZWwdxkaVDabuglHM3XuP--NerYgq8UxsVHgFY,1728
388
+ pyarrow/include/arrow/util/async_util.h,sha256=1nnAJZ22iK7wSzmvZDo3PMhuWqJIt2qKdlXzTyhoCK4,19759
389
+ pyarrow/include/arrow/util/base64.h,sha256=qzcBE98cg8Tx5iPJAvQ4Pdf2yc6R2r-4yGJS1_DEIeY,1095
390
+ pyarrow/include/arrow/util/basic_decimal.h,sha256=Q2zfksUdYc92TL8po81I_aQOmwHTwZGPjqXvJM7cgek,33569
391
+ pyarrow/include/arrow/util/benchmark_util.h,sha256=SG3gfwE-wGNZAwpL3TvffnSiZGM2cztV5xRBnbqy2Mw,7641
392
+ pyarrow/include/arrow/util/binary_view_util.h,sha256=-sFAQX9cnfWmmZJo8stFX5vkJki7T2UloAvDzYO0MN8,4625
393
+ pyarrow/include/arrow/util/bit_block_counter.h,sha256=iSIemzizxVokwC0Ze6SjSi-al_nrP2ViXF6JPoIVUWc,20162
394
+ pyarrow/include/arrow/util/bit_run_reader.h,sha256=1G9jN387hUCm0q9LvoSPEjY5v4fBOC8Aq_-riu-Sklw,17290
395
+ pyarrow/include/arrow/util/bit_util.h,sha256=gABDSW-EqgHu559EFfYvPkR7feICKR7YDbLx-Kh10uU,16397
396
+ pyarrow/include/arrow/util/bitmap.h,sha256=eGjGlh6s4Dubhfrk-Kp931YgR8KyaHNcxbTW1rqtqbI,17459
397
+ pyarrow/include/arrow/util/bitmap_builders.h,sha256=28rjB9AGwG-VMzuen9FARssdMul0RJx2ZmPFQL9SV1E,1596
398
+ pyarrow/include/arrow/util/bitmap_generate.h,sha256=m6ZsNwx1GhsEktQr63NxXHQkX2B7Nti011XYsPg2xfo,3661
399
+ pyarrow/include/arrow/util/bitmap_ops.h,sha256=fPPD_cvXebYLrAeQOCCYydU1AwF0faN5DwQKV8op-Es,10877
400
+ pyarrow/include/arrow/util/bitmap_reader.h,sha256=-EePBZDJyoF1GDQLHi5a9GK6rPQ-NRZS8iZZUSw6WmE,8392
401
+ pyarrow/include/arrow/util/bitmap_visit.h,sha256=myn8k66VrvZnL6R6VW6IDPTfO68VxjbJ8Up5IuSjFL4,3470
402
+ pyarrow/include/arrow/util/bitmap_writer.h,sha256=a4goXhLlY0qcfvYxbfbGD_HZ8Au1wFcbV1tVF3BPaXs,9383
403
+ pyarrow/include/arrow/util/byte_size.h,sha256=Pd2c_3a0IeSOUevhPIlXNkDmgoB06g4c9YCsuRwwSKM,3997
404
+ pyarrow/include/arrow/util/cancel.h,sha256=SgAy5S0TBISnCypp4R_OI-jPUQ997qtsLOSdXo8l5bM,3659
405
+ pyarrow/include/arrow/util/checked_cast.h,sha256=SR9Qg8NuLSBJw2w1UfgeGvCfT8k7wrbN7BzADQOZfAU,2076
406
+ pyarrow/include/arrow/util/compare.h,sha256=OLrSSyllkY4Sv00IK-37A2d68gr4OwnWJsxn1aF9xTU,1982
407
+ pyarrow/include/arrow/util/compression.h,sha256=fvlURoWJsgO8Hr6Xs_VNaqiOatmIGn9ktVUkYv7pIu4,8427
408
+ pyarrow/include/arrow/util/concurrent_map.h,sha256=wMi9WDHfRuJ_aSFgcJPpsVwGJ9vIJ5agaZ3rVUlwGe4,1775
409
+ pyarrow/include/arrow/util/config.h,sha256=WjSomLcG1dvYoc0O6r_ePvTfEEgU_a6DpbScKs_OOy4,2090
410
+ pyarrow/include/arrow/util/converter.h,sha256=PILfos6VlnLK6fOFMfLIUhiKl3o1dJo9T4HJXeR7V5E,14637
411
+ pyarrow/include/arrow/util/cpu_info.h,sha256=MqLdJabBZkzDjiScaQ7if9dmoAGvXT2QavGoGkho3lU,3964
412
+ pyarrow/include/arrow/util/crc32.h,sha256=4gN0M-SRnxaGKci2ATPbMWZG2TG3YULXjaTpadV0Udk,1337
413
+ pyarrow/include/arrow/util/debug.h,sha256=CPB_oDOuZ_u89e9wM8bGn88mGvClgfa7UDxDph6v9sY,971
414
+ pyarrow/include/arrow/util/decimal.h,sha256=cEQRH5x5kN_MAsWNOPCLjz57QjW4ErfppMHG4b-0EOA,20291
415
+ pyarrow/include/arrow/util/delimiting.h,sha256=JYe9YcWMeFT_ISuojx_VgVqOYLvZ2TiiR2sNn-WdeBQ,7317
416
+ pyarrow/include/arrow/util/endian.h,sha256=PPai9ig8DtGVouKksjTq7H_anm0BjgoTMaVTkWlMKWY,8236
417
+ pyarrow/include/arrow/util/float16.h,sha256=3RfWoQ0sIPCk2yXniIYw-g7X-EEmaos_IG9z8cnXCmQ,7454
418
+ pyarrow/include/arrow/util/formatting.h,sha256=3D0xE7sTcJR6XEUb12LKSqL-A3bX_Pyp1oVkPScjCwQ,22516
419
+ pyarrow/include/arrow/util/functional.h,sha256=4ljKXSWX3G_lBT2BfLXuG44pzZwVKeaojpLWCniqKyc,5612
420
+ pyarrow/include/arrow/util/future.h,sha256=tsSVDEH2dhXKyvIKl6R9BVBolpPdZXoRRf2-YRbtdxg,32296
421
+ pyarrow/include/arrow/util/hash_util.h,sha256=CjiNVPUJPxXvVJy7ys79aIb7YB6Bm-5nTJAR4DHsxcs,1918
422
+ pyarrow/include/arrow/util/hashing.h,sha256=2rIuTiAhMVsIt52fc9RR6vVM9NNfzeFJPsAPWCd6vX8,34224
423
+ pyarrow/include/arrow/util/int_util.h,sha256=zTOAq57M4pUe469WpnW6I5hNtxe3vGRHlZWhngA1DzM,4859
424
+ pyarrow/include/arrow/util/int_util_overflow.h,sha256=7eLu26N5xY2VYM8aSJOZyfmwqIc3IdMXsshsjmuge74,8218
425
+ pyarrow/include/arrow/util/io_util.h,sha256=2s53VCM_Rd7j7IsXzDHK6-Hwqx5bp6BlKFUybn75ebM,13762
426
+ pyarrow/include/arrow/util/iterator.h,sha256=FymwfXvx9akIj1hAvLgrFQ01BWJbvAv4xx06TNDc9dc,18345
427
+ pyarrow/include/arrow/util/key_value_metadata.h,sha256=wjU6uQGcSmy-YFqMs6rwLP7E4X-0IFBjPrWZstistzQ,3590
428
+ pyarrow/include/arrow/util/launder.h,sha256=C3rNBRh4reuUp8YuRdGQU95WPc8vl4bAY-z5LXgDiuA,1046
429
+ pyarrow/include/arrow/util/list_util.h,sha256=_OmtsDqe-mnZ_7tVWxB2yHdgCJhpiME_RP3nXHzKbdI,2028
430
+ pyarrow/include/arrow/util/logger.h,sha256=p9i4dNgne36LWpFmNSYBYgTQ4kFSao20dJ40LgRRZKQ,6693
431
+ pyarrow/include/arrow/util/logging.h,sha256=63wlnOug1zSd1ur7caDp0F0z2IG7QjHbUFGChE8f-nA,9139
432
+ pyarrow/include/arrow/util/macros.h,sha256=a5_NbnOnb2z4MYLM3mXSRk0oMH-CfkrOa7lzNJKjNy0,9884
433
+ pyarrow/include/arrow/util/math_constants.h,sha256=2sfWoVc8syHz8X26XgBmejzXStl7hmvKiOh9622oUZA,1112
434
+ pyarrow/include/arrow/util/mutex.h,sha256=n4bsrHK2Q8zbYsQEyNaFqNu__vvqgwo1AfrLLCxfkpU,2554
435
+ pyarrow/include/arrow/util/parallel.h,sha256=_43wTVSrtJwOkRt3KJcJF1DyYHwhoWbWPsrAswftP-Q,3817
436
+ pyarrow/include/arrow/util/pcg_random.h,sha256=nbXowfCJFiy4GjVfF9I8VvB6fxkyR5zNB1FKdnFsYTQ,1252
437
+ pyarrow/include/arrow/util/prefetch.h,sha256=vaE4FPdscbtO0cPbzl8F1PzB1NDO18ytYlEmZCHDjHs,1251
438
+ pyarrow/include/arrow/util/queue.h,sha256=X9vRZQX3YL_a2Lzwe-zcNNHguR7FoGYmD-Q0THqsCBM,1017
439
+ pyarrow/include/arrow/util/range.h,sha256=WJ1v4BaQ4iMLuh-fgdGyWqY88rzR6Z9rqDQj5RC84XE,8725
440
+ pyarrow/include/arrow/util/ree_util.h,sha256=NO71naM7twCfCrX52vPmWoNhL90XP4PFEdc6AI9-OCs,22397
441
+ pyarrow/include/arrow/util/regex.h,sha256=Tj92CttOh2HxS0EKQ_9-sxMBAsQrDOUKNP0ngIJFdP8,1742
442
+ pyarrow/include/arrow/util/rows_to_batches.h,sha256=PZNoLeMCfJJdeHVvUny0UHc5AtS0hctUCi7zUztJpeE,7120
443
+ pyarrow/include/arrow/util/secure_string.h,sha256=0T9JxwkqXpGszGfcrstxJyRZztV9VRsFqVcGhDcEmhM,2476
444
+ pyarrow/include/arrow/util/simd.h,sha256=PpKm-aWpZYIYP0NnyGrQceOO9m3_7JbN4uro0IhIT9w,1679
445
+ pyarrow/include/arrow/util/small_vector.h,sha256=hXkuEMONoYd7vFS_6lLPwP49SVdBpAhSlvMK-1d3PrE,14439
446
+ pyarrow/include/arrow/util/span.h,sha256=FjFcz8VzZDSF-nR-dFbyd1wzL5XQpupI0db2-r0FyP4,4298
447
+ pyarrow/include/arrow/util/string.h,sha256=UStQlZ3Fkhmwm5IcKDsbUABENDRnjV1cU5dRXnEv8IQ,5296
448
+ pyarrow/include/arrow/util/string_util.h,sha256=0IUIcjSf2zMP8rVoVx5y1satijO7cr0PvOgG32d0lFA,2364
449
+ pyarrow/include/arrow/util/task_group.h,sha256=fI330NoJT8u84AEUA6pSxWrE7UBKn2LaM4DfPFoalqA,4362
450
+ pyarrow/include/arrow/util/test_common.h,sha256=OqhWyOEVmWbzhr2JfiaMn1flC84pU6kHL5vYZV1bhUM,2981
451
+ pyarrow/include/arrow/util/thread_pool.h,sha256=Q2KzKTxcikTEgdNAouFwjwsorFa3wE9IVkKqYd8o_Lw,25530
452
+ pyarrow/include/arrow/util/time.h,sha256=_s6yyeTNkNPiLjtaWceItyD8_yGTx2GMiXj1ICVlzyU,3439
453
+ pyarrow/include/arrow/util/tracing.h,sha256=sVfC_Rj2gwkWKVSKT0l0FOO5c2EGsfYwlkZX4d9ncxA,1286
454
+ pyarrow/include/arrow/util/type_fwd.h,sha256=JeZ1muIiVKxHcAXzBikMCmk_7SxFz_IqmzuT6yY1F-A,1803
455
+ pyarrow/include/arrow/util/type_traits.h,sha256=iRrIf4YhuMOGL5DJWIJoV2bUEhZRHWuce8TXm-JMkns,2155
456
+ pyarrow/include/arrow/util/ubsan.h,sha256=dJiINEVEdpLSr5-Z_a7BxoYGvA1-pCfHia_xiF0TfYo,3228
457
+ pyarrow/include/arrow/util/union_util.h,sha256=PSssBiw-v-PDen_q75c6OkNO5PwyIPhGbf9PMJj7P2M,1211
458
+ pyarrow/include/arrow/util/unreachable.h,sha256=O1TG4ozCYT3_xvDpJouKWrlFADIEpIemQ28y4DqIwu4,1070
459
+ pyarrow/include/arrow/util/uri.h,sha256=D24zebazFcrKGt7iGpkcGQ87DuF-2AbjPKVkDlq9Nuk,3886
460
+ pyarrow/include/arrow/util/utf8.h,sha256=flGZ786kHo33Xg_zw0zVA9GAT8jYdPUHTVhIPHGjOj8,2031
461
+ pyarrow/include/arrow/util/value_parsing.h,sha256=p_7p_fUUw3jfUkiVnKADdHb3KCdJ7Xg2JQnc39uQHMI,30654
462
+ pyarrow/include/arrow/util/vector.h,sha256=OKnWECz72otbpw6UZSzZIZHJXCXGb9IsPiFI-l3wODY,5609
463
+ pyarrow/include/arrow/util/visibility.h,sha256=zuHLTwNcR34LcCtbhj1YXzfNL8NxO-3XHY_UgUJgdZY,3238
464
+ pyarrow/include/arrow/util/windows_compatibility.h,sha256=Chme9fWRqYRzfIbLw7V_yeiIWd3F4dFeG6ImHHr4Xqw,1255
465
+ pyarrow/include/arrow/util/windows_fixup.h,sha256=hjoh6zvB8u8OVUQqLtdcrmohMzoAoLy6XJFLxcfFhK0,1435
466
+ pyarrow/include/arrow/vendored/ProducerConsumerQueue.h,sha256=Bz1ks3NDgXXLfT8TMUkE38RpMOSwKRRtwU1e37Y1CUw,6101
467
+ pyarrow/include/arrow/vendored/datetime.h,sha256=tsFbz8LKBFzRzTEOAKZyWRbdFLfnCnZRCK9Tyi1PANs,1103
468
+ pyarrow/include/arrow/vendored/datetime/date.h,sha256=fa_tmkMHwmx9vZHjH5lZVhZFCYEcHi5xmueW3F1tDE4,237808
469
+ pyarrow/include/arrow/vendored/datetime/ios.h,sha256=Qnu0iuy2-ein9KkVoSL1t71_W_VFZkdjDVsOnYTnP38,1641
470
+ pyarrow/include/arrow/vendored/datetime/tz.h,sha256=m5JJv7LE7Vukp8h50r90sCfbOSAD2bMVIVQUUxNZeDQ,85347
471
+ pyarrow/include/arrow/vendored/datetime/tz_private.h,sha256=pDkKXYdzfzQ5uh-jcUhURBLqHo00t0UnlimUdiM53Cs,10706
472
+ pyarrow/include/arrow/vendored/datetime/visibility.h,sha256=VCGKzhQOgL1zwGXKl_7lLULfSy0OsPt8FLWHwA4sOtU,1002
473
+ pyarrow/include/arrow/vendored/double-conversion/bignum-dtoa.h,sha256=imGhcg0RywMsFNMYTqp6rlXw2HZCIAla8SC_n92gCqE,4358
474
+ pyarrow/include/arrow/vendored/double-conversion/bignum.h,sha256=RnQ2CPL8Pt6fVCGh_8VDF11e_GyrrwO0IH0uMnTcsEs,5949
475
+ pyarrow/include/arrow/vendored/double-conversion/cached-powers.h,sha256=jjwfR3bue7mNlE5lbTrFR2KlgjRew2OkmjBa7oQO0Qg,3079
476
+ pyarrow/include/arrow/vendored/double-conversion/diy-fp.h,sha256=J-RgqH27jspT5Ubth9pTA9NAZH6e7n1OVhxModgi8Sc,5088
477
+ pyarrow/include/arrow/vendored/double-conversion/double-conversion.h,sha256=J1Tl5-8aFY0A9SnaA9z5Q90jnMxw55illPIuE-jdD5Q,1804
478
+ pyarrow/include/arrow/vendored/double-conversion/double-to-string.h,sha256=C-tKRi0IuLycXgS6CC1oiFkCroOo_-AO0VOjmfe0tlE,23925
479
+ pyarrow/include/arrow/vendored/double-conversion/fast-dtoa.h,sha256=ZAho25fqeP3t2RM0XgqfhTBXQIIicACLpdyHHMRX3JU,4122
480
+ pyarrow/include/arrow/vendored/double-conversion/fixed-dtoa.h,sha256=HLnpxkHjKldm-FBiDRbADYljJBSYbQGP4Gz-sVbiSJU,2828
481
+ pyarrow/include/arrow/vendored/double-conversion/ieee.h,sha256=CVKA9RXSjv4ZygqDHMiF-H2hUh3QHQvp1GZYC3MAhkE,15281
482
+ pyarrow/include/arrow/vendored/double-conversion/string-to-double.h,sha256=Ul6b-2R0pjUaAWNM3Ki4kH933LqrW6_XfPz4BSiE2v8,10906
483
+ pyarrow/include/arrow/vendored/double-conversion/strtod.h,sha256=6xCRm47vmcghYJug5mhhTVbsZ3m3Y6tQfMehEyVZNx0,3096
484
+ pyarrow/include/arrow/vendored/double-conversion/utils.h,sha256=wFRb5cGABiNoUSCnvKmdv_KIMcBtX1PX89tPFfvgbQI,15614
485
+ pyarrow/include/arrow/vendored/pcg/pcg_extras.hpp,sha256=FEYzq8NFxPfdJyLs4kVtTBLkaD6iO71INz9EJnaxTdc,19784
486
+ pyarrow/include/arrow/vendored/pcg/pcg_random.hpp,sha256=7TaV3nZhcwpf6XxlZ6cod1GaW5gm-iUn67t2fiMPNbA,73501
487
+ pyarrow/include/arrow/vendored/pcg/pcg_uint128.hpp,sha256=DyavmKgq9ob13z--Lee8WKfiMBk1cvKhkZlDxQyQNOA,28750
488
+ pyarrow/include/arrow/vendored/portable-snippets/debug-trap.h,sha256=9KphJ9gRtDT9DXR9iZ7aS23xa2T8tLmLsFEJMg0pLDQ,3081
489
+ pyarrow/include/arrow/vendored/safeint/safe_math.h,sha256=HgcHut9A9VZGoZe6A-669uv1N8ydMJE9a3bJzZiOwFA,78099
490
+ pyarrow/include/arrow/vendored/safeint/safe_math_impl.h,sha256=wzI4AvijLrtEg9aTtqoY1SQNOZ1XxsP5GyuN3juC6K4,61119
491
+ pyarrow/include/arrow/vendored/strptime.h,sha256=q1IZi5CvyUp_PNzbQ4_XLroAV24VEovBEz2TkpwUJ9c,1212
492
+ pyarrow/include/arrow/vendored/xxhash.h,sha256=MUwtyzu7xjkx9mBcS65SaDcCK7tgeqQgj-KYEMxcHWc,844
493
+ pyarrow/include/arrow/vendored/xxhash/xxhash.h,sha256=PDFiHmNL4ul4A0wiSLDpY9JSrDS73RMulr1W9aNEW8s,279426
494
+ pyarrow/include/arrow/visit_array_inline.h,sha256=XuQjuME8XZeJp7W86YuCsuoVVgmG1NulXAA0KJkmmB0,2446
495
+ pyarrow/include/arrow/visit_data_inline.h,sha256=4MkdFVsrjhMyTDNrScQtOYV_nwzqR2ddSS2yYnbyLt0,12460
496
+ pyarrow/include/arrow/visit_scalar_inline.h,sha256=KvNY0j8nE9gs_805LXMV3ATgvxvUqW4UeKpXUxR3rMA,2419
497
+ pyarrow/include/arrow/visit_type_inline.h,sha256=O0BURx2TowqdO61W9DJEr5cKP5BsVkUt8Bpc8VuiXec,4387
498
+ pyarrow/include/arrow/visitor.h,sha256=NKos98j54uY9tdXzctI_n_nwFRrXNOwanxLDqDZONw4,8690
499
+ pyarrow/include/arrow/visitor_generate.h,sha256=n2YKZW-5hY7ICQSwEUBZIYh2eg9ZoTfD54XRd9OlNDo,3324
500
+ pyarrow/include/parquet/api/io.h,sha256=Ricq0d2R4QXHiGZCbjxZ_0F_QmKq0IrfTidNu5NoXPI,847
501
+ pyarrow/include/parquet/api/reader.h,sha256=vnM5XDPn1TVsDJk4SDgb3ZU2Ta4vdrRzCpDWO90rYHk,1204
502
+ pyarrow/include/parquet/api/schema.h,sha256=KsNJ529pEh7bGUa0rLUCcfanI9rW2uSTirgpvKq0hdc,855
503
+ pyarrow/include/parquet/api/writer.h,sha256=UJZbY8QGVRMtAmozzjoM9TnI4gssqlNFUKCXBw2IfuI,1007
504
+ pyarrow/include/parquet/arrow/reader.h,sha256=oZXb2Oof-MH37vKuq58SucwtWnBlZ57M5PsrgUnURBw,16361
505
+ pyarrow/include/parquet/arrow/schema.h,sha256=Mi56ul7itNS6NDbMpKOJCufjHVqaSY5_rbsNRNLE560,6204
506
+ pyarrow/include/parquet/arrow/test_util.h,sha256=qCUHfC-7P2D32n2__AV35MbzKoL5KEgNHJQaiElFx6M,18849
507
+ pyarrow/include/parquet/arrow/writer.h,sha256=0edx0fgyze6uxTgpDyacSljKMUay86pRqvIRQ7AZpXk,7005
508
+ pyarrow/include/parquet/benchmark_util.h,sha256=emDpaIbtfUNlK0M2zMP-oTy2S2raQ-LpQULK_G74OtM,1758
509
+ pyarrow/include/parquet/bloom_filter.h,sha256=TC3OxK0J2v6tHxT_Bbw7mlYtM0603KXgBoHRvmzM9aA,14999
510
+ pyarrow/include/parquet/bloom_filter_reader.h,sha256=63kpHYKs5TPrbRamkBLZsDYbD-I9UeVhF-R8d7JHeLg,2892
511
+ pyarrow/include/parquet/column_page.h,sha256=7w2hQDqkIhqpHLRh2LHk0ujnuknSPHVtuvJ21LS--n0,6942
512
+ pyarrow/include/parquet/column_reader.h,sha256=HQPo-owohtevjPItqajvEDWj8OR1u6oW6i9xvjP9Yiw,19255
513
+ pyarrow/include/parquet/column_scanner.h,sha256=HecBvh-z0n_1HJsD-GIdcGHQAvDOHKlLzppB9RBsD9s,8863
514
+ pyarrow/include/parquet/column_writer.h,sha256=lDOsSuqIxI8e8hTdAvZfBm-b0D6uMfpC1L5HLykE3bo,12452
515
+ pyarrow/include/parquet/encoding.h,sha256=SDGAMKCvNwOz92WiadNmhVO2bPG-IVUJJ4vb_pShtpo,16872
516
+ pyarrow/include/parquet/encryption/crypto_factory.h,sha256=NutbypTw9971ju95UkWtW-g8TYnR94TWZAnx5-dznPA,7064
517
+ pyarrow/include/parquet/encryption/encryption.h,sha256=pXcGO8WhWVzaS8hDrphLS_M2sHX0mtGMCs4G9d3ZA1c,16552
518
+ pyarrow/include/parquet/encryption/file_key_material_store.h,sha256=YzAVO3M2H5v5Fz2b_WlmB3GE5wVbMEnFTL3S9XPH6k0,2200
519
+ pyarrow/include/parquet/encryption/file_key_unwrapper.h,sha256=VBuBwYeLqYHq_WGnjL2tfwB6mH3jjFVb-TpPKa6lb50,4717
520
+ pyarrow/include/parquet/encryption/file_key_wrapper.h,sha256=xXlS-yyYhUW20S31REsSj5JxbVbij_td0WlPbgxNaYg,3778
521
+ pyarrow/include/parquet/encryption/file_system_key_material_store.h,sha256=xAccp-7Il2UrnItxLmOE4ywhQKgeapyxVNwshDpan0Y,3695
522
+ pyarrow/include/parquet/encryption/key_encryption_key.h,sha256=6dJNBYA_4Z_dyMph71Q5KI0axe-yzdjTnRgG_zj2OX0,2318
523
+ pyarrow/include/parquet/encryption/key_material.h,sha256=kPTSIuRFYOnH4BCPIB33zG9hp5D2Ba-5kZVlq3rFnRI,6221
524
+ pyarrow/include/parquet/encryption/key_metadata.h,sha256=Pc0nA9LW3Fc9NLMMxz7osbw8si2jSiOVTES-J-9R0y0,4003
525
+ pyarrow/include/parquet/encryption/key_toolkit.h,sha256=xLHCsTK6bcrXd_MQv7GDTrLoZNeE_-WFb192LdYpcH0,4645
526
+ pyarrow/include/parquet/encryption/kms_client.h,sha256=MM870qRC_yc4hkzx7xVPaPm12ErR8sqFgDTHLWHcRX0,3222
527
+ pyarrow/include/parquet/encryption/kms_client_factory.h,sha256=VZ97CMgDQxx5oZWFGprjXsaM1hZ0wNudPmFU1_lniAc,1293
528
+ pyarrow/include/parquet/encryption/local_wrap_kms_client.h,sha256=dW5Fe3lUHP8dmsSPDGMbldGl2GlnER4I9zWhCU6g_78,4037
529
+ pyarrow/include/parquet/encryption/test_encryption_util.h,sha256=rYdlDq1nmZu3gsc7vPcBDVOwdxESyVcnVTDCNMPdmoA,5349
530
+ pyarrow/include/parquet/encryption/test_in_memory_kms.h,sha256=c6GA-eObXQtCtzehYKr4uGMpjtLRUW0C5VIQQk8EynM,3743
531
+ pyarrow/include/parquet/encryption/two_level_cache_with_expiration.h,sha256=2kNvixV36bYjUlUJquqnaaOO-NI7e8O3Vm1x-xDPyDA,4818
532
+ pyarrow/include/parquet/encryption/type_fwd.h,sha256=dL8snyUwNjhTQE2FQ2dXAUjTboEXhH2JOehQovHfixc,955
533
+ pyarrow/include/parquet/exception.h,sha256=TJbx6X_khxV6e61rUfHY0Pr65EoxKTu2xpvOAdh9BMo,6104
534
+ pyarrow/include/parquet/file_reader.h,sha256=Z1RiOP74Y9tMv7kZ7FWX05IR05qzgSOTRKrY71pLOJE,11185
535
+ pyarrow/include/parquet/file_writer.h,sha256=6fK6Mn-MdiQ-J4oo8BTi_eVVVshlffoQiJzFaLRrqco,9343
536
+ pyarrow/include/parquet/geospatial/statistics.h,sha256=77ieKxQcY46FB7jgCZhk03fa2G_J2S9NJ8R0_JU-qGs,8892
537
+ pyarrow/include/parquet/hasher.h,sha256=z_U9ojA6y_f4AQtYP6DhuUWp-MX3uywCHd4aWDXAqyE,5242
538
+ pyarrow/include/parquet/level_comparison.h,sha256=5z4fUJJPWq9W60l2CsAI7T7E2auGYD7m0fpR5rfLmsw,1306
539
+ pyarrow/include/parquet/level_comparison_inc.h,sha256=r20_6Rv5L7UmFGJ68f-JaZ5hLXb87wvZa80hZNQoF-I,2494
540
+ pyarrow/include/parquet/level_conversion.h,sha256=OsuqK1xiUnEnOLPKwfm9X-pXTaXRMlDIkj3lwGb2ggI,9432
541
+ pyarrow/include/parquet/level_conversion_inc.h,sha256=Q_ZZ-Ody9s8rSZlBzIwNcgcPikXtnAcv475gCgqRk5o,14248
542
+ pyarrow/include/parquet/metadata.h,sha256=HA2wE85mSzg37qqsxGmolMYpBLaSSwdiwxkeQOP1n_g,21191
543
+ pyarrow/include/parquet/page_index.h,sha256=AqvLT6M81jY13YbpX-s-hOzCVz0AGNkZJ9om3_tp4Vk,17307
544
+ pyarrow/include/parquet/parquet_version.h,sha256=57JJTZUgqXX1m2WHAKXRKKn15LVMK1X-Q8zSXhnYJkg,1164
545
+ pyarrow/include/parquet/platform.h,sha256=DUf6vCMAV4eS-dOZzHDE7G_EAGIwDaQ-J3X3bpY8rgk,3939
546
+ pyarrow/include/parquet/printer.h,sha256=hXqzwuj5p1oKY2awZkVOq7qXx-Rsoo6QPH1oTE94AHU,1548
547
+ pyarrow/include/parquet/properties.h,sha256=YNL9gevyuQMsCjo3znl5xyleCDsI-KnFA8_G6JWn_n8,57689
548
+ pyarrow/include/parquet/schema.h,sha256=CjZh2i9WN5VeoDbLqy7M1AZtopZ43_C9blWG3OT2IfU,18222
549
+ pyarrow/include/parquet/size_statistics.h,sha256=Ahr8qyIVre8U_JVRLHL0BbSoYpdJjo2OUeE1UD4I1tw,4327
550
+ pyarrow/include/parquet/statistics.h,sha256=3LFLy_k0KuIjsYBZWFJJShrkHIEm8Zk_QRDfRKj_9XA,18005
551
+ pyarrow/include/parquet/stream_reader.h,sha256=1WmN0vYCqTz1Lwb_Di4xPWTE-VbCQQuzZralSpWQm3U,8791
552
+ pyarrow/include/parquet/stream_writer.h,sha256=NIC3WYnGNPZxJm3k8Bms5A5wtg8OXj1li9JPbdPSGxA,7831
553
+ pyarrow/include/parquet/test_util.h,sha256=VHF8cjNduIW8P6Kw2sLUJmvbL7tmTG_kWIWOaC7G5OA,33538
554
+ pyarrow/include/parquet/type_fwd.h,sha256=xmvMW2wSIFvoEZBwVql7hzcPBzOHZnmTlEtIjwp_pzM,3065
555
+ pyarrow/include/parquet/types.h,sha256=mOx1d2y3BhZv5CXdAtylBFBvkMflOdJG_uWNamBFJKQ,27304
556
+ pyarrow/include/parquet/windows_compatibility.h,sha256=xIEGHW354URgdIP9A4V303TJL8A1IkCEvp08bMKsHTU,897
557
+ pyarrow/include/parquet/windows_fixup.h,sha256=DpyWCywx8YIqouun6BJcgMrHFMTCBgowWdJ1mnJnQ2s,1052
558
+ pyarrow/include/parquet/xxhasher.h,sha256=QAa7ZE7S3UFtU_Voz3oi3YclIYhbhviJkafLOYgiuWg,2074
559
+ pyarrow/includes/__init__.pxd,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
560
+ pyarrow/includes/common.pxd,sha256=me4htiESPFmZok1M8eDXk9OS-7p9Om_1pazNowvttuc,4950
561
+ pyarrow/includes/libarrow.pxd,sha256=fP5_tqqVqGtS1my5j9-UxTv3NHNI4oBDPjbBcikTu2A,121041
562
+ pyarrow/includes/libarrow_acero.pxd,sha256=c84RdYfIuFWW_36-1RELJsowfQwXhgUxbdC_xKQyFCI,5298
563
+ pyarrow/includes/libarrow_cuda.pxd,sha256=0fRcHbCZY_gFdwIXIElnpGvTxeA5xVxZH1-vwZh16SM,4942
564
+ pyarrow/includes/libarrow_dataset.pxd,sha256=cqV1LQvfsKtRwePFaWUh8dCFlb6JED8tLGCsrtS_Ml8,17270
565
+ pyarrow/includes/libarrow_dataset_parquet.pxd,sha256=PW8g6CD2yjwgwoJgYQ9Ntg2e2v6Vfu4AYL5kiM4sq0Q,4584
566
+ pyarrow/includes/libarrow_feather.pxd,sha256=MTJUDQbfKP8Ir700Fobl7xcbjX7WcrsUV4mxFXlfwn0,2140
567
+ pyarrow/includes/libarrow_flight.pxd,sha256=QO7RJ5TUVA65gtkJLenjIOEW2eIbPuKLw-nGWD9oHRY,24724
568
+ pyarrow/includes/libarrow_fs.pxd,sha256=PHdXeBI1oD-fLV_POryp-kcyt5084X0DdP3N0aLRmNQ,15379
569
+ pyarrow/includes/libarrow_python.pxd,sha256=6RxtLurxWwDzN-GtJ7Mo0qXoNnP3mOU8DcavIdumXM4,11647
570
+ pyarrow/includes/libarrow_substrait.pxd,sha256=PtgwVFqsCQBzCHzK-VqhQOdTyU9J4SziQ_lnxRwChfs,4061
571
+ pyarrow/includes/libgandiva.pxd,sha256=o28v4Q43dYXQEcwldKO6RYs0tke2U6GZVxQmjq4rAt4,11530
572
+ pyarrow/includes/libparquet.pxd,sha256=dDV_i74prFbqBrYQ8bn2Jfp1CCChHznNAckD81VJZkw,26321
573
+ pyarrow/includes/libparquet_encryption.pxd,sha256=oyvw0ZLyLWrHwMiOt6mbWYyTKb3rN9kmjOMMW1P2EsM,8690
574
+ pyarrow/interchange/__init__.py,sha256=DH0bwbKpdjD1WCW1VinnXEuVLY098uHKkirv7DFc9JM,845
575
+ pyarrow/interchange/__pycache__/__init__.cpython-310.pyc,,
576
+ pyarrow/interchange/__pycache__/buffer.cpython-310.pyc,,
577
+ pyarrow/interchange/__pycache__/column.cpython-310.pyc,,
578
+ pyarrow/interchange/__pycache__/dataframe.cpython-310.pyc,,
579
+ pyarrow/interchange/__pycache__/from_dataframe.cpython-310.pyc,,
580
+ pyarrow/interchange/buffer.py,sha256=NF_GU1uQ6INqHqCwzY6XQQqRxKDh6znEeDHiRqaEIQ0,3359
581
+ pyarrow/interchange/column.py,sha256=n9f3mlViqUFOa3Kofdwoo52qC-WYVpyF2YilRsl4uaw,19350
582
+ pyarrow/interchange/dataframe.py,sha256=tmSMmBvBAc-ZSUzE8tBNbvQLHuuxLuBkMkK6KYwtS8M,8405
583
+ pyarrow/interchange/from_dataframe.py,sha256=JfkP4wuY_9x76H6RDtmsOzs6B6qe-1WS7zxpKeD481s,19709
584
+ pyarrow/io.pxi,sha256=gDtFPrwdBrxT88jpNwddg9mM-KSt_XFv333W2IbF3I4,86228
585
+ pyarrow/ipc.pxi,sha256=NTZxt0qAu-HIjDbbczp91sKUJoJQBz48z-IxcKn9b6w,44752
586
+ pyarrow/ipc.py,sha256=ssicn1x2jRZt2m1nQZ4sB70sa1FB3d8PoqiOnWO-tzg,9603
587
+ pyarrow/json.py,sha256=JMEXB5jNZp-DOYmGBrzs2RtwOCLdKCRa3E5kUfH0Ceg,869
588
+ pyarrow/jvm.py,sha256=_cyen6Bi-cBUlg-OAb_RTG6nj2W57kMrR1HuAWVcEQs,9577
589
+ pyarrow/lib.cpython-310-x86_64-linux-gnu.so,sha256=weFjiFPhFN9tT2nNPpxEW_6Gu8tpRp0TGhiQhj6TtyI,4283368
590
+ pyarrow/lib.h,sha256=NSqX1jl5ZWssVm0SmNFHp4PckJYy8YCJxlL02MKa4Uc,4562
591
+ pyarrow/lib.pxd,sha256=HHKBlMGhU4NkQKqPcTCkYPojbExu2jSt8C4YTeCWdck,17838
592
+ pyarrow/lib.pyx,sha256=cssmzMbq2cOOgMLKQUSkLwvXRmS46ED6U-8d4B91bUo,6174
593
+ pyarrow/lib_api.h,sha256=rm6EBrvNbQHNzt_TJGbbdIo5T_1IC2WBAXIQnpMzsNA,20132
594
+ pyarrow/libarrow.so.2300,sha256=0wrfak57rAFFaA5nzu0-nS_0ospXmhR8-IFaaUmixC4,52334816
595
+ pyarrow/libarrow_acero.so.2300,sha256=bpsqCjL8Fp1diKCNfJH5FvZzVff9Ks_jlv9FEzic4T4,1899056
596
+ pyarrow/libarrow_compute.so.2300,sha256=K0xSJnlFmhYopvdcPEojr1iSJutmPhzCAh6f6sr2vEQ,18887496
597
+ pyarrow/libarrow_dataset.so.2300,sha256=KRgRLNGSuhCKjqdqPdIYOw0vozKKIqDHC5rqBbjzlnU,2331344
598
+ pyarrow/libarrow_flight.so.2300,sha256=FHZ-B9W3uPrH0z9WFoCjLQFpW4h5CNeGW9PTaLARleA,26444648
599
+ pyarrow/libarrow_python.so,sha256=IUO7OhzaWJk7G0ptfwsdECSFUlfv723dv2h_F1EEKm0,2342392
600
+ pyarrow/libarrow_python.so.2300,sha256=IUO7OhzaWJk7G0ptfwsdECSFUlfv723dv2h_F1EEKm0,2342392
601
+ pyarrow/libarrow_python.so.2300.1.0,sha256=IUO7OhzaWJk7G0ptfwsdECSFUlfv723dv2h_F1EEKm0,2342392
602
+ pyarrow/libarrow_python_flight.so,sha256=B52L6RjU5pvT7_o2AmoeV2Tr1uPJmhl-A6vGO6YJy8I,104024
603
+ pyarrow/libarrow_python_flight.so.2300,sha256=B52L6RjU5pvT7_o2AmoeV2Tr1uPJmhl-A6vGO6YJy8I,104024
604
+ pyarrow/libarrow_python_flight.so.2300.1.0,sha256=B52L6RjU5pvT7_o2AmoeV2Tr1uPJmhl-A6vGO6YJy8I,104024
605
+ pyarrow/libarrow_python_parquet_encryption.so,sha256=e3JVUNOPI0fCLFXewNtovNzMTMXXZAnAy9vSgb9x7H4,38448
606
+ pyarrow/libarrow_python_parquet_encryption.so.2300,sha256=e3JVUNOPI0fCLFXewNtovNzMTMXXZAnAy9vSgb9x7H4,38448
607
+ pyarrow/libarrow_python_parquet_encryption.so.2300.1.0,sha256=e3JVUNOPI0fCLFXewNtovNzMTMXXZAnAy9vSgb9x7H4,38448
608
+ pyarrow/libarrow_substrait.so.2300,sha256=RBpdd1C8B9s5t7wDcr8_OOe34qEcW45r0-g1NO5aXuo,5761616
609
+ pyarrow/libparquet.so.2300,sha256=BUZNufKfPjxyvaUGJbLDrhWTGyp13-o1KghADaTxoU8,12416216
610
+ pyarrow/memory.pxi,sha256=cZSlJ8Brteb9aWa7VzvCrpnw26wRkplF9KtF2nqtH8M,8806
611
+ pyarrow/orc.py,sha256=yDp3vD4gOdOsOBmXKFe24Kq3xO3FDBfIOHvsvzQUkKY,12602
612
+ pyarrow/pandas-shim.pxi,sha256=RM38cacj1TlQ5IN79CprIr4AUbbY5GiWdiLsnx0zn3g,8817
613
+ pyarrow/pandas_compat.py,sha256=y1dLv-lrnpJleFwWnSO5_rBM-Uwky6ZgtKUMYTPhbN8,45916
614
+ pyarrow/parquet/__init__.py,sha256=4W64CbvwvO60tG58nfNtyCwMVCfuPumtu82p-kiGPaE,822
615
+ pyarrow/parquet/__pycache__/__init__.cpython-310.pyc,,
616
+ pyarrow/parquet/__pycache__/core.cpython-310.pyc,,
617
+ pyarrow/parquet/__pycache__/encryption.cpython-310.pyc,,
618
+ pyarrow/parquet/core.py,sha256=0-Te7kjeh7zKT3jd4VBK2IMOycQ3uHwjzqgqRFY6aro,95541
619
+ pyarrow/parquet/encryption.py,sha256=-XW7Qcbl-jQhpZsR610uQ8-z9ZVE_NL045Jdnp1TZ9M,1153
620
+ pyarrow/public-api.pxi,sha256=G6tk0gOWMBoQaQGo4lyp0OLSkqEZqMhB0z27MoQR3rU,14064
621
+ pyarrow/scalar.pxi,sha256=2-ttwuILFVqcf8gcMBWbEkwA-3vdnxGN-8ah6YDvrlA,52384
622
+ pyarrow/src/arrow/python/CMakeLists.txt,sha256=D4Ypror_508aAd_juYkrS9Qu2maeirK4QXzwGEZEj0M,855
623
+ pyarrow/src/arrow/python/api.h,sha256=2XyYOFAmorPGXrTVYZkiKL67nuH8w1ha6D1reU7K-Vs,1179
624
+ pyarrow/src/arrow/python/arrow_to_pandas.cc,sha256=0lQ5wG_eqXa76QfuHdCr7Uex1yDM7nneD5G62ykDCzg,96642
625
+ pyarrow/src/arrow/python/arrow_to_pandas.h,sha256=jQiSTN8IL95onwaclaWqCR5Nb2RHrBtubRyEOJR9eRE,6215
626
+ pyarrow/src/arrow/python/arrow_to_python_internal.h,sha256=nQXPZTL3xa4Sm-a-Gv-8bpFs-qAOZHkqWmA_m-dSLVw,1740
627
+ pyarrow/src/arrow/python/async.h,sha256=C0f8YYmgwBGgDau4xEFsdjukiZB4YvpylETHEZryHOo,2352
628
+ pyarrow/src/arrow/python/benchmark.cc,sha256=z6qYRx4qMuNXPaC8fuPJlQd92aosMN85u1aD50R1-UU,1293
629
+ pyarrow/src/arrow/python/benchmark.h,sha256=f-kzyMOlPKDse2bcLWhyMrDEMZrG_JHAPpDJgGW0bXU,1192
630
+ pyarrow/src/arrow/python/common.cc,sha256=HExYdSkfggXu96XWNXBvK1XukCfPotLVFtk8D9FVaOw,7603
631
+ pyarrow/src/arrow/python/common.h,sha256=9IQC__JUqTRXv5MfAqKM6ivMwuQ-uMZKEguGDEODkiA,14389
632
+ pyarrow/src/arrow/python/config.cc,sha256=yRQYqXioit9N4uAVyLrBbb70Bto79wh6ZAwvyeX9HBs,1097
633
+ pyarrow/src/arrow/python/config.h,sha256=SQa6SuM3oAfQ7wEbwVJqlPfqslqlq2DXK_FK6-K08Kg,1150
634
+ pyarrow/src/arrow/python/config_internal.h.cmake,sha256=kU0GNa9lLgI7_eJseYzfo-C9s8762Tb1sep47Oux3hk,855
635
+ pyarrow/src/arrow/python/csv.cc,sha256=ql5AY76AqiFksWsrmzSl551k5s9vS8YcmypM2A9rhw8,1803
636
+ pyarrow/src/arrow/python/csv.h,sha256=QxU3B-Hv_RsoEcMGS9-1434ugouL2ygC64Lq6FgviNM,1397
637
+ pyarrow/src/arrow/python/datetime.cc,sha256=WQoJT6a1ocd3SItRC_q8EA5-4Z9sWNdGFxXen3m0xeU,23013
638
+ pyarrow/src/arrow/python/datetime.h,sha256=Bny_THGi2tyUeHxcOuw01O7hNE8B_gave5ABAZQtwTQ,7931
639
+ pyarrow/src/arrow/python/decimal.cc,sha256=4CNaLDOWZelTllSIPdIKDlIhUy6AgKJxKG0WmzJyq94,9699
640
+ pyarrow/src/arrow/python/decimal.h,sha256=K9ScmzSa7XCuuwpXKnq0GPbRDTuRU5yXfWr9zGtOchc,6362
641
+ pyarrow/src/arrow/python/extension_type.cc,sha256=SOhG7u7MNnJkSe-dWi5-ZsGuzQC-M7PihaYFAr6x6hA,7033
642
+ pyarrow/src/arrow/python/extension_type.h,sha256=0gzb42y_mbw4fsYs3u8cwPFLBRlG-kkHQLgbvGtrY0U,3181
643
+ pyarrow/src/arrow/python/filesystem.cc,sha256=0twavI91TE20Otq5kkVUwnN5sindU_mBWoVAvz1ZMgI,6152
644
+ pyarrow/src/arrow/python/filesystem.h,sha256=FG0AcLekqaDf9IQPqKixAfIcY_ZLgIKP5NvvXdtBVUM,5126
645
+ pyarrow/src/arrow/python/flight.cc,sha256=tL3nFVTjDlmiuqDOSxf7HODdpqIMUSbSsNc1vaveP1w,14192
646
+ pyarrow/src/arrow/python/flight.h,sha256=t4ZD8gWaubbO_mBDv0XZ58TCo1VQl0hzHn1_7w4U64I,14450
647
+ pyarrow/src/arrow/python/gdb.cc,sha256=hkATQV6YlpxkBaLfY9_C24XJ6qYSg2T0DfQX4XfpvFY,22556
648
+ pyarrow/src/arrow/python/gdb.h,sha256=H-qvM-nU8a_3Z5tk8PvppTwQtBMSZhQKQIVgRAsRfFg,972
649
+ pyarrow/src/arrow/python/helpers.cc,sha256=MqeJ1PD1g97tKL9suvE1LWD2cO-MWMwo8-ag3FXAauY,16934
650
+ pyarrow/src/arrow/python/helpers.h,sha256=Q3TmwyffFpVYQEp55ZoWTDDhnte7zQKiXylsfbEMCuI,5479
651
+ pyarrow/src/arrow/python/inference.cc,sha256=Wz_zlalsCa4_BWntagf6l7QLb_nONJZKl5TQa4YVMWE,26293
652
+ pyarrow/src/arrow/python/inference.h,sha256=FUFvB4Zy7V-tueXdmbDcqTeLK4xj5GZEeRW5yhiJlsU,2038
653
+ pyarrow/src/arrow/python/io.cc,sha256=k2pgFsCFXaI7naqXcxDtZJJp7K06NnEhsDEoMQvbaxc,11948
654
+ pyarrow/src/arrow/python/io.h,sha256=4jGnodpSUlnVqAVh9fWId7H4WldlLPkXyroABpdaW6w,3858
655
+ pyarrow/src/arrow/python/ipc.cc,sha256=3D9iMbOFHlhNXX4432wsfbfjWvDryZWgdA0Ak19V_8Q,4472
656
+ pyarrow/src/arrow/python/ipc.h,sha256=SZbw6jCCqLiLNCY3k632GmwHeD_r_xrDS0dhqV49VhY,2259
657
+ pyarrow/src/arrow/python/iterators.h,sha256=Ugfm3JvetAH0l-oAjjpZfhrUBqRimVMaw4-xusvqLSg,7327
658
+ pyarrow/src/arrow/python/numpy_convert.cc,sha256=166BIW7zVTRMKogxLUuhV4e5jOevmonvRtXDydNujgc,21194
659
+ pyarrow/src/arrow/python/numpy_convert.h,sha256=y13eHwfe1lJKzadoTr2-GyX6xPsE6Z7FN31s7PN-2Rk,4870
660
+ pyarrow/src/arrow/python/numpy_init.cc,sha256=cJKOH946T7VCcB-gVIoGgfbWTrbj3FPkI4TgnsLTf7s,1178
661
+ pyarrow/src/arrow/python/numpy_init.h,sha256=FniVHP7W2YBlenoMYhQrODvoqqvDMSls2JANGtNPQts,999
662
+ pyarrow/src/arrow/python/numpy_internal.h,sha256=1R_tNINnHYMGNTA5k_BMbGWFlA297f3Yj4ufrhm-yiE,5320
663
+ pyarrow/src/arrow/python/numpy_interop.h,sha256=rI6ek8JTOYtjo7gEADSDBS6QuAOHa2A0YQPZ2GeypFw,3418
664
+ pyarrow/src/arrow/python/numpy_to_arrow.cc,sha256=uuQo_rewpuc882cuFy-uMmtRLR1iMT3Ew3JystLBXfc,31961
665
+ pyarrow/src/arrow/python/numpy_to_arrow.h,sha256=z9KapsuoOSpWILPt9bea7GR4BL6AQ28T6DUO0mSkh3k,2760
666
+ pyarrow/src/arrow/python/parquet_encryption.cc,sha256=5ilofycsTj6IP0RGCUZFHucHN53oZAmx32L6el7RQh0,4408
667
+ pyarrow/src/arrow/python/parquet_encryption.h,sha256=7KjqRuxbO0UxxHikTDvrLH733UVe0uvTf_bQMiI_xCA,5596
668
+ pyarrow/src/arrow/python/platform.h,sha256=AtkGgpUVqPHs9Z8Tm07yb2zN_wOtb2cvlf-5xFBkc4k,1268
669
+ pyarrow/src/arrow/python/pyarrow.cc,sha256=vukhk0aEmqI2QZ54XMwyC3930mJHGUVSSW49GSgifWw,3683
670
+ pyarrow/src/arrow/python/pyarrow.h,sha256=TK3BtD9n3QKOQ9dX3LXbQc0hu9alWcufV0O93iQW7B0,2761
671
+ pyarrow/src/arrow/python/pyarrow_api.h,sha256=7l0G4-_m9yALYoifsY8Z6qh3HHD0PgkpVSgCn_JaGU4,867
672
+ pyarrow/src/arrow/python/pyarrow_lib.h,sha256=-70_Ckj3_0ImlzaXSJOE_d3w9pGM66lXiGPyln9c96Y,863
673
+ pyarrow/src/arrow/python/python_test.cc,sha256=7WZnh-qh0SvzAin20DHAAd_vdcj2EZQYCNhgqyECdN0,33047
674
+ pyarrow/src/arrow/python/python_test.h,sha256=ea32mM20uHySlygi9MtVxr26O-ydTZHCUQIlxaIMjT4,1195
675
+ pyarrow/src/arrow/python/python_to_arrow.cc,sha256=DjnP866Q8RUY9WnE8moCI5nExs5Rni4oYz2kuytZ0-8,47894
676
+ pyarrow/src/arrow/python/python_to_arrow.h,sha256=BoVytf6P7PBYXyznchElKZSFvEsFyimB-tLFdw0AUNo,2521
677
+ pyarrow/src/arrow/python/type_traits.h,sha256=U7dW4sajVVmjXALsP-B8ZZwI4GgIUG3t-rbp2fwrHWI,10236
678
+ pyarrow/src/arrow/python/udf.cc,sha256=tRd7cPh66N5tU4DdO70F8x1FqODcGZ3HtrYjF4BSs9w,29820
679
+ pyarrow/src/arrow/python/udf.h,sha256=de3R8PhNJO5lT9oCqRxe8e2_SE3jBpHOkwbNqCrlgjQ,3104
680
+ pyarrow/src/arrow/python/util.cc,sha256=Tkgz17XmYFzVybvQ9Vo9LChVo98R5BlbjqCNMHk86DM,1852
681
+ pyarrow/src/arrow/python/util.h,sha256=sP2CEGG7NNqwjrEeNKB-VFqkKxn5P2Tsc0jPUMXQuLg,1732
682
+ pyarrow/src/arrow/python/vendored/CMakeLists.txt,sha256=02XvDJAdKiajCEBOmnMKBpmzbRU7FPkNdlNXtw0-A24,837
683
+ pyarrow/src/arrow/python/vendored/pythoncapi_compat.h,sha256=bzMnlHTCfjk5DQRIxwytunYh5aQxU3iSElaaDyNnAY8,40900
684
+ pyarrow/src/arrow/python/visibility.h,sha256=hwJw5sGrWJckQkNaAuLe4Tf-VDjQbXknyzNOVgZI3FI,1381
685
+ pyarrow/substrait.py,sha256=yOMgCb-A5XW9t2DKgutRydDHpFvQkiNNq6ZIu0hIUB8,1230
686
+ pyarrow/table.pxi,sha256=UY25fBtFThwdRT87cNAadUFJmVYHjSwAxcT7qVVBc4c,208768
687
+ pyarrow/tensor.pxi,sha256=vWs4_2-xeSkFsvL0VMVciIntRWiaH-6QxZyx8j00v1U,43661
688
+ pyarrow/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
689
+ pyarrow/tests/__pycache__/__init__.cpython-310.pyc,,
690
+ pyarrow/tests/__pycache__/arrow_16597.cpython-310.pyc,,
691
+ pyarrow/tests/__pycache__/arrow_39313.cpython-310.pyc,,
692
+ pyarrow/tests/__pycache__/arrow_7980.cpython-310.pyc,,
693
+ pyarrow/tests/__pycache__/conftest.cpython-310.pyc,,
694
+ pyarrow/tests/__pycache__/pandas_examples.cpython-310.pyc,,
695
+ pyarrow/tests/__pycache__/pandas_threaded_import.cpython-310.pyc,,
696
+ pyarrow/tests/__pycache__/read_record_batch.cpython-310.pyc,,
697
+ pyarrow/tests/__pycache__/strategies.cpython-310.pyc,,
698
+ pyarrow/tests/__pycache__/test_acero.cpython-310.pyc,,
699
+ pyarrow/tests/__pycache__/test_adhoc_memory_leak.cpython-310.pyc,,
700
+ pyarrow/tests/__pycache__/test_array.cpython-310.pyc,,
701
+ pyarrow/tests/__pycache__/test_builder.cpython-310.pyc,,
702
+ pyarrow/tests/__pycache__/test_cffi.cpython-310.pyc,,
703
+ pyarrow/tests/__pycache__/test_compute.cpython-310.pyc,,
704
+ pyarrow/tests/__pycache__/test_convert_builtin.cpython-310.pyc,,
705
+ pyarrow/tests/__pycache__/test_cpp_internals.cpython-310.pyc,,
706
+ pyarrow/tests/__pycache__/test_csv.cpython-310.pyc,,
707
+ pyarrow/tests/__pycache__/test_cuda.cpython-310.pyc,,
708
+ pyarrow/tests/__pycache__/test_cuda_numba_interop.cpython-310.pyc,,
709
+ pyarrow/tests/__pycache__/test_cython.cpython-310.pyc,,
710
+ pyarrow/tests/__pycache__/test_dataset.cpython-310.pyc,,
711
+ pyarrow/tests/__pycache__/test_dataset_encryption.cpython-310.pyc,,
712
+ pyarrow/tests/__pycache__/test_deprecations.cpython-310.pyc,,
713
+ pyarrow/tests/__pycache__/test_device.cpython-310.pyc,,
714
+ pyarrow/tests/__pycache__/test_dlpack.cpython-310.pyc,,
715
+ pyarrow/tests/__pycache__/test_exec_plan.cpython-310.pyc,,
716
+ pyarrow/tests/__pycache__/test_extension_type.cpython-310.pyc,,
717
+ pyarrow/tests/__pycache__/test_feather.cpython-310.pyc,,
718
+ pyarrow/tests/__pycache__/test_flight.cpython-310.pyc,,
719
+ pyarrow/tests/__pycache__/test_flight_async.cpython-310.pyc,,
720
+ pyarrow/tests/__pycache__/test_fs.cpython-310.pyc,,
721
+ pyarrow/tests/__pycache__/test_gandiva.cpython-310.pyc,,
722
+ pyarrow/tests/__pycache__/test_gdb.cpython-310.pyc,,
723
+ pyarrow/tests/__pycache__/test_io.cpython-310.pyc,,
724
+ pyarrow/tests/__pycache__/test_ipc.cpython-310.pyc,,
725
+ pyarrow/tests/__pycache__/test_json.cpython-310.pyc,,
726
+ pyarrow/tests/__pycache__/test_jvm.cpython-310.pyc,,
727
+ pyarrow/tests/__pycache__/test_memory.cpython-310.pyc,,
728
+ pyarrow/tests/__pycache__/test_misc.cpython-310.pyc,,
729
+ pyarrow/tests/__pycache__/test_orc.cpython-310.pyc,,
730
+ pyarrow/tests/__pycache__/test_pandas.cpython-310.pyc,,
731
+ pyarrow/tests/__pycache__/test_scalars.cpython-310.pyc,,
732
+ pyarrow/tests/__pycache__/test_schema.cpython-310.pyc,,
733
+ pyarrow/tests/__pycache__/test_sparse_tensor.cpython-310.pyc,,
734
+ pyarrow/tests/__pycache__/test_strategies.cpython-310.pyc,,
735
+ pyarrow/tests/__pycache__/test_substrait.cpython-310.pyc,,
736
+ pyarrow/tests/__pycache__/test_table.cpython-310.pyc,,
737
+ pyarrow/tests/__pycache__/test_tensor.cpython-310.pyc,,
738
+ pyarrow/tests/__pycache__/test_types.cpython-310.pyc,,
739
+ pyarrow/tests/__pycache__/test_udf.cpython-310.pyc,,
740
+ pyarrow/tests/__pycache__/test_util.cpython-310.pyc,,
741
+ pyarrow/tests/__pycache__/test_without_numpy.cpython-310.pyc,,
742
+ pyarrow/tests/__pycache__/util.cpython-310.pyc,,
743
+ pyarrow/tests/__pycache__/wsgi_examples.cpython-310.pyc,,
744
+ pyarrow/tests/arrow_16597.py,sha256=DNb41h9E3ITGvAJJu86i5SfsKrwstQJ0E5gT_bpTS_k,1354
745
+ pyarrow/tests/arrow_39313.py,sha256=0pyBixoX38fldTPO1Vwshi_H0XBACrz8esYoL4o71KI,1431
746
+ pyarrow/tests/arrow_7980.py,sha256=tZKb_tRLfxHaosDk9Yu2GLEsJjMaruXD5CKhbK_6Hq8,1094
747
+ pyarrow/tests/bound_function_visit_strings.pyx,sha256=vDEFoNYR8BWNkCntKDuBUT8sXNRBex_5G2bFKogr1Bs,2026
748
+ pyarrow/tests/conftest.py,sha256=yhbHWUARnpRonmxVtXkPv7YBOr_K-B0DRWfkrW4wnCE,10386
749
+ pyarrow/tests/data/feather/v0.17.0.version.2-compression.lz4.feather,sha256=qzcc7Bo4OWBXYsyyKdDJwdTRstMqB1Zz0GiGYtndBnE,594
750
+ pyarrow/tests/data/orc/README.md,sha256=_4X5XszZqQtWAVEz5N1Va4VyyayGQgNDKrcdMX2Ib4s,932
751
+ pyarrow/tests/data/orc/TestOrcFile.emptyFile.jsn.gz,sha256=xLjAXd-3scx3DCyeAsmxTO3dv1cj9KRvYopKe5rQNiI,50
752
+ pyarrow/tests/data/orc/TestOrcFile.emptyFile.orc,sha256=zj0579dQBXhF7JuB-ZphkmQ81ybLo6Ca4zPV4HXoImY,523
753
+ pyarrow/tests/data/orc/TestOrcFile.test1.jsn.gz,sha256=kLxmwMVHtfzpHqBztFjfY_PTCloaXpfHq9DDDszb8Wk,323
754
+ pyarrow/tests/data/orc/TestOrcFile.test1.orc,sha256=A4JxgMCffTkz9-XT1QT1tg2TlYZRRz1g7iIMmqzovqA,1711
755
+ pyarrow/tests/data/orc/TestOrcFile.testDate1900.jsn.gz,sha256=oWf7eBR3ZtOA91OTvdeQJYos1an56msGsJwhGOan3lo,182453
756
+ pyarrow/tests/data/orc/TestOrcFile.testDate1900.orc,sha256=nYsVYhUGGOL80gHj37si_vX0dh8QhIMSeU4sHjNideM,30941
757
+ pyarrow/tests/data/orc/decimal.jsn.gz,sha256=kTEyYdPDAASFUX8Niyry5mRDF-Y-LsrhSAjbu453mvA,19313
758
+ pyarrow/tests/data/orc/decimal.orc,sha256=W5cV2WdLy4OrSTnd_Qv5ntphG4TcB-MyG4UpRFwSxJY,16337
759
+ pyarrow/tests/data/parquet/v0.7.1.all-named-index.parquet,sha256=YPGUXtw-TsOPbiNDieZHobNp3or7nHhAxJGjmIDAyqE,3948
760
+ pyarrow/tests/data/parquet/v0.7.1.column-metadata-handling.parquet,sha256=7sebZgpfdcP37QksT3FhDL6vOA9gR6GBaq44NCVtOYw,2012
761
+ pyarrow/tests/data/parquet/v0.7.1.parquet,sha256=vmdzhIzpBbmRkq3Gjww7KqurfSFNtQuSpSIDeQVmqys,4372
762
+ pyarrow/tests/data/parquet/v0.7.1.some-named-index.parquet,sha256=VGgSjqihCRtdBxlUcfP5s3BSR7aUQKukW-bGgJLf_HY,4008
763
+ pyarrow/tests/extensions.pyx,sha256=UVfIEnGYy2SDiYkMW6jp6zTo1tvO7gUREH4OGEWjU2k,3046
764
+ pyarrow/tests/interchange/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
765
+ pyarrow/tests/interchange/__pycache__/__init__.cpython-310.pyc,,
766
+ pyarrow/tests/interchange/__pycache__/test_conversion.cpython-310.pyc,,
767
+ pyarrow/tests/interchange/__pycache__/test_interchange_spec.cpython-310.pyc,,
768
+ pyarrow/tests/interchange/test_conversion.py,sha256=23e5tpKBL-ekA5uWpM6-f6HVPF937Hnzfune0Ty9moo,18609
769
+ pyarrow/tests/interchange/test_interchange_spec.py,sha256=AwqwD8b2gV1f5HERtzG6UtOIshFGafUI_9CQOVLPnho,9381
770
+ pyarrow/tests/pandas_examples.py,sha256=SDPL87Ea997nGi7afOqlceq6wH4Bh5IR5S0fHZV3Acs,5107
771
+ pyarrow/tests/pandas_threaded_import.py,sha256=b_ubLr5dj4dWJht9552qc3S3Yt3fQQgaUH6208oZvHg,1429
772
+ pyarrow/tests/parquet/__init__.py,sha256=dKsXU9M-sJyz2wYIuqwsKM9meOlK_qY6qhmQzIvEpCE,931
773
+ pyarrow/tests/parquet/__pycache__/__init__.cpython-310.pyc,,
774
+ pyarrow/tests/parquet/__pycache__/common.cpython-310.pyc,,
775
+ pyarrow/tests/parquet/__pycache__/conftest.cpython-310.pyc,,
776
+ pyarrow/tests/parquet/__pycache__/encryption.cpython-310.pyc,,
777
+ pyarrow/tests/parquet/__pycache__/test_basic.cpython-310.pyc,,
778
+ pyarrow/tests/parquet/__pycache__/test_compliant_nested_type.cpython-310.pyc,,
779
+ pyarrow/tests/parquet/__pycache__/test_data_types.cpython-310.pyc,,
780
+ pyarrow/tests/parquet/__pycache__/test_dataset.cpython-310.pyc,,
781
+ pyarrow/tests/parquet/__pycache__/test_datetime.cpython-310.pyc,,
782
+ pyarrow/tests/parquet/__pycache__/test_encryption.cpython-310.pyc,,
783
+ pyarrow/tests/parquet/__pycache__/test_metadata.cpython-310.pyc,,
784
+ pyarrow/tests/parquet/__pycache__/test_pandas.cpython-310.pyc,,
785
+ pyarrow/tests/parquet/__pycache__/test_parquet_file.cpython-310.pyc,,
786
+ pyarrow/tests/parquet/__pycache__/test_parquet_writer.cpython-310.pyc,,
787
+ pyarrow/tests/parquet/common.py,sha256=ezd4yAsRXI1R-MxE1iIbyHHIlEGyKumckQzVHAx46rM,6149
788
+ pyarrow/tests/parquet/conftest.py,sha256=CyKJlVT-pQNb2f2BwlUaIAoWtobcZ65Y0vgpGX2ttnA,3157
789
+ pyarrow/tests/parquet/encryption.py,sha256=Nr232E2ueexYXGWNZQOfQpw3LkPTbSNHWSfwf1DuBVI,5218
790
+ pyarrow/tests/parquet/test_basic.py,sha256=0tZ7Y8-Df2O4e-QavU2s0RR8xHuIVf3cIdAAWrJPH_0,36873
791
+ pyarrow/tests/parquet/test_compliant_nested_type.py,sha256=Lz7tCPrSpv9GrKPMS-eu1LehsCTwz7KdUdCYJ8tF8dE,3901
792
+ pyarrow/tests/parquet/test_data_types.py,sha256=Y_RqQBfDgrxQnOc0IjuHA7ueIOmotH8CMkmqQ4prz9I,19319
793
+ pyarrow/tests/parquet/test_dataset.py,sha256=U144J3RrIA3rCQIJXxpgy5PQVn5-7gYsy-f3pD20nPs,42020
794
+ pyarrow/tests/parquet/test_datetime.py,sha256=A3ZaRj88u0IrlhCNp2KY_A8txrb7y2pKPgEVvI7e7bU,16398
795
+ pyarrow/tests/parquet/test_encryption.py,sha256=eULJdOgRNMrd6klGgW5ElotrejsL9ev_dBz3LG2P9L8,28357
796
+ pyarrow/tests/parquet/test_metadata.py,sha256=340mr8FxLTVfLMSDDDRm8WWblCzRz7FD77mr4BoJodg,27732
797
+ pyarrow/tests/parquet/test_pandas.py,sha256=4r9sip2N0XbkBb6SZuh51SUHJn9BlAtfjbzB3d3Gk_M,23543
798
+ pyarrow/tests/parquet/test_parquet_file.py,sha256=VlsY4JwZUckF5uxDrVlrJRBVnvTmuuajd0h37BMkbOo,13872
799
+ pyarrow/tests/parquet/test_parquet_writer.py,sha256=9-BjKiXjLzgKC0IodiT8KnCtSPBo1ZKinS_spFX8uWs,18215
800
+ pyarrow/tests/pyarrow_cython_example.pyx,sha256=fx6zT1bUb2-cDnwKoG71K3ozpmrNJ53kKQHHJTExGz8,2115
801
+ pyarrow/tests/read_record_batch.py,sha256=9Y0X0h03hUXwOKZz7jBBZSwgIrjxT-FkWIw6pu38Frc,953
802
+ pyarrow/tests/strategies.py,sha256=eJkCeVCPB714DisrR1Q1INIUqIBX9v1rF2lNtBamlTY,15581
803
+ pyarrow/tests/test_acero.py,sha256=t1TIMZJ9zfCYu9V_Mg_i6SvtoIXFo2GZbxDJh3Luu60,18009
804
+ pyarrow/tests/test_adhoc_memory_leak.py,sha256=Pn4PcIbOBRtSJuz9Ar_ocubco0QOMZ-eAE9Bs7Wp4mA,1453
805
+ pyarrow/tests/test_array.py,sha256=m42aqjvL-_hLP2faOY4asW6k7Uy-L4WfhT5vyqx922o,146212
806
+ pyarrow/tests/test_builder.py,sha256=zNEcslLwyb40oYbG7lInQcI81QHMKDOzi1zthw1Je7c,2803
807
+ pyarrow/tests/test_cffi.py,sha256=ZkOKn6qfySL7LPqR-1FAlRS7n8h3npF5WmqSV8eBVg8,26339
808
+ pyarrow/tests/test_compute.py,sha256=cdgZXDHpTVKkuhuGP1ONc4wo_RUavcrY0hSp4V61T9U,157487
809
+ pyarrow/tests/test_convert_builtin.py,sha256=yhFtMOj6Sqx5TyLs6dxQQl9_ceX_Qbm5MmTyEulpDk0,82323
810
+ pyarrow/tests/test_cpp_internals.py,sha256=Xg4CUB6zohQkcYG64Lj_Uf2BscI27Vv0JC_CqNkDQuE,2006
811
+ pyarrow/tests/test_csv.py,sha256=45yAVGgLS7cS5tJpnzz-yEZbrp5PXCbDIVtv-oVZX8w,77863
812
+ pyarrow/tests/test_cuda.py,sha256=81lyEjUUd2UWbeFW-JJECYJ9UZKAXOTys55uMd2i0so,36153
813
+ pyarrow/tests/test_cuda_numba_interop.py,sha256=iHP_FE4sWbsKwNNXRcYnVozp3Wd1o0Mg6BDymx710G4,8794
814
+ pyarrow/tests/test_cython.py,sha256=p3Pz_w8Ysd6pMQfvjGPsBA-fYjX7os9M9B9K9UB42m8,7040
815
+ pyarrow/tests/test_dataset.py,sha256=TA9e4J0nL05TpISLgCzAOyY8g7vAmM4j8PYNaTkCw7U,218325
816
+ pyarrow/tests/test_dataset_encryption.py,sha256=EpD2zXVcLS_3i4fwli7Z45ibDFSgXCFFQ2qiXtAxBsg,18023
817
+ pyarrow/tests/test_deprecations.py,sha256=W_rneq4jC6zqCNoGhBDf1F28Q-0LHI7YKLgtsbV6LHM,891
818
+ pyarrow/tests/test_device.py,sha256=qe9Wiwo-XVazt9pdxyqQJUz6fNR0jTs9CHiyaoppNA4,2550
819
+ pyarrow/tests/test_dlpack.py,sha256=sdubFfaU6ZCjZFoj-vbqnT-Yf79kI2ZBOe9Qi_J0Vfk,5974
820
+ pyarrow/tests/test_exec_plan.py,sha256=pjOkSaWeqjN6celKxUEH3tBGXLh8kKbmSSsvKOWsbQQ,10096
821
+ pyarrow/tests/test_extension_type.py,sha256=q-Y3BI469ePC0aLG5LUSTObdeMqkeQtnD-oRLBx_9kM,67567
822
+ pyarrow/tests/test_feather.py,sha256=QMFIyOh2bGwatHq3gE1OZWIgIdfJ2i5UjhNTN0DVK5U,25616
823
+ pyarrow/tests/test_flight.py,sha256=kZsX-0YWYtrIrcqkdg8yNmjxMuVQSo_Ly5rqD6y2H80,102280
824
+ pyarrow/tests/test_flight_async.py,sha256=kP2wIrUz1HIbrr4CE0SxSg4Zc56ta3xX6EdibAI2yVM,2848
825
+ pyarrow/tests/test_fs.py,sha256=G97d6CLdiFCnWo18H_OHCWt-JHeSqYCv7rs5quosI3U,72758
826
+ pyarrow/tests/test_gandiva.py,sha256=AEf9ln-j5MmIMQ0JTQPhnZwbNh82ynSURsWPaKaNing,15623
827
+ pyarrow/tests/test_gdb.py,sha256=mircGfK7H3PQgn4dVYfDUYbC03CzuAXqGW4oOmd-uZw,45052
828
+ pyarrow/tests/test_io.py,sha256=fBEyAu9zTMHu9ovgwOwv7kEslYhY38sd0GNR78d-ECg,63736
829
+ pyarrow/tests/test_ipc.py,sha256=KFK4E6Ee_zZ52k9hbxS6nMFNo41asuoppiFsJW8PGEI,46053
830
+ pyarrow/tests/test_json.py,sha256=yTOKNdiCcJxmPCAiUfNojAOqsytj_w9uZ0YPJd3yNWU,23003
831
+ pyarrow/tests/test_jvm.py,sha256=QLRHeFx8Gbz1UywlnDi2akV6DBtqGHReQEuNl2vSbcE,15475
832
+ pyarrow/tests/test_memory.py,sha256=j8fs5HqguRobzbcHSvyRzd0ICT7IMeonMvcs147DEd4,9860
833
+ pyarrow/tests/test_misc.py,sha256=1febCUPe9YTPl7QU5jH8Tlo2q_5UpoYoqsg_esZpCiU,7626
834
+ pyarrow/tests/test_orc.py,sha256=UrDyNHJoTX72KFGVLf-WRzzC8e6nsP-GsCm97x0l43o,21565
835
+ pyarrow/tests/test_pandas.py,sha256=NuZGxTh6PNJM2cV2fOrEWLZexc4OSn8G10hMcEJbqyw,195140
836
+ pyarrow/tests/test_scalars.py,sha256=8LPIZy1LmqOTK6-e_RZjiRM9owLodVvMFtRfFSiWBrc,30289
837
+ pyarrow/tests/test_schema.py,sha256=x5MSVt6kOhvSPTCIMIFVTm27Lp6znJ4emk9L5ziqJwc,23347
838
+ pyarrow/tests/test_sparse_tensor.py,sha256=bGO7Es4D65zmGNRN013G9VUCQ_v-mPUb90sAk--3yyw,17666
839
+ pyarrow/tests/test_strategies.py,sha256=ZPJiWvj26qQPsR9aZCF-VUsT6PyWPrJsr6q2oXJshSs,1829
840
+ pyarrow/tests/test_substrait.py,sha256=rsLPNlDPDAxZ1OIu-LAINSD4q_UZJhOvtTzPfXjrWM8,32223
841
+ pyarrow/tests/test_table.py,sha256=aRgarP_oVThWXp41TBe6MLVPgmoZqCgwdKMVhq2KHig,123867
842
+ pyarrow/tests/test_tensor.py,sha256=LYSEYGUjtdnsbL0WAir9jFindo-r0bLySiDA1uAXL8E,6643
843
+ pyarrow/tests/test_types.py,sha256=XaGZSzq556PewtGRcUEQ6T5T6D5QidchC7RrmRQYI-8,44212
844
+ pyarrow/tests/test_udf.py,sha256=WA9E5skUqh7uMr_zH3rQ11LRx0SK2G3WO8HjVHGWyQY,29792
845
+ pyarrow/tests/test_util.py,sha256=ozTlooHBMOP3nbX5b3dG2aanrXwxXHx1giicm0QQyPM,5030
846
+ pyarrow/tests/test_without_numpy.py,sha256=ysbB-jML318I04ViQT4Ok7iMg1cI-NU8kguPu-FTSl4,1855
847
+ pyarrow/tests/util.py,sha256=o_opaXvKIDveE2cf_jjo6fHRuRk2CjLGu6OsFFbt-mM,13665
848
+ pyarrow/tests/wsgi_examples.py,sha256=vQIDb5989sRVLsELw-fRHhfX-dE96sTl5J2lEuEKup8,1348
849
+ pyarrow/types.pxi,sha256=M1_lSb4uNHl2akZkQlgOf21SnfvrWQz6rybtCIVAdYQ,162774
850
+ pyarrow/types.py,sha256=d79cmgr2MDz79UQy6ChoKf4MScKCtDvtOBVGIbV1644,9734
851
+ pyarrow/util.py,sha256=8cQQMKLvvoQitDnz1Tv-w2zJgsIKJUNvtbqupk5TJZs,8679
852
+ pyarrow/vendored/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
853
+ pyarrow/vendored/__pycache__/__init__.cpython-310.pyc,,
854
+ pyarrow/vendored/__pycache__/docscrape.cpython-310.pyc,,
855
+ pyarrow/vendored/__pycache__/version.cpython-310.pyc,,
856
+ pyarrow/vendored/docscrape.py,sha256=phTjwuzoO5hB88QerZk3uGu9c5OrZwjFzI7vEIIbCUQ,22975
857
+ pyarrow/vendored/version.py,sha256=5-Vo4Q3kPJrm1DSGusnMlTxuA8ynI4hAryApBd6MnpQ,14345
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/REQUESTED ADDED
File without changes
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp310-cp310-manylinux_2_28_x86_64
5
+
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/licenses/LICENSE.txt ADDED
The diff for this file is too large to render. See raw diff
 
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/licenses/NOTICE.txt ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache Arrow
2
+ Copyright 2016-2026 The Apache Software Foundation
3
+
4
+ This product includes software developed at
5
+ The Apache Software Foundation (http://www.apache.org/).
6
+
7
+ This product includes software from the SFrame project (BSD, 3-clause).
8
+ * Copyright (C) 2015 Dato, Inc.
9
+ * Copyright (c) 2009 Carnegie Mellon University.
10
+
11
+ This product includes software from the Feather project (Apache 2.0)
12
+ https://github.com/wesm/feather
13
+
14
+ This product includes software from the DyND project (BSD 2-clause)
15
+ https://github.com/libdynd
16
+
17
+ This product includes software from the LLVM project
18
+ * distributed under the University of Illinois Open Source
19
+
20
+ This product includes software from the mman-win32 project
21
+ * Copyright https://code.google.com/p/mman-win32/
22
+ * Licensed under the MIT License;
23
+
24
+ This product includes software from the LevelDB project
25
+ * Copyright (c) 2011 The LevelDB Authors. All rights reserved.
26
+ * Use of this source code is governed by a BSD-style license that can be
27
+ * Moved from Kudu http://github.com/cloudera/kudu
28
+
29
+ This product includes software from the CMake project
30
+ * Copyright 2001-2009 Kitware, Inc.
31
+ * Copyright 2012-2014 Continuum Analytics, Inc.
32
+ * All rights reserved.
33
+
34
+ This product includes software from https://github.com/matthew-brett/multibuild (BSD 2-clause)
35
+ * Copyright (c) 2013-2016, Matt Terry and Matthew Brett; all rights reserved.
36
+
37
+ This product includes software from the Ibis project (Apache 2.0)
38
+ * Copyright (c) 2015 Cloudera, Inc.
39
+ * https://github.com/cloudera/ibis
40
+
41
+ This product includes software from Dremio (Apache 2.0)
42
+ * Copyright (C) 2017-2018 Dremio Corporation
43
+ * https://github.com/dremio/dremio-oss
44
+
45
+ This product includes software from Google Guava (Apache 2.0)
46
+ * Copyright (C) 2007 The Guava Authors
47
+ * https://github.com/google/guava
48
+
49
+ This product include software from CMake (BSD 3-Clause)
50
+ * CMake - Cross Platform Makefile Generator
51
+ * Copyright 2000-2019 Kitware, Inc. and Contributors
52
+
53
+ The web site includes files generated by Jekyll.
54
+
55
+ --------------------------------------------------------------------------------
56
+
57
+ This product includes code from Apache Kudu, which includes the following in
58
+ its NOTICE file:
59
+
60
+ Apache Kudu
61
+ Copyright 2016 The Apache Software Foundation
62
+
63
+ This product includes software developed at
64
+ The Apache Software Foundation (http://www.apache.org/).
65
+
66
+ Portions of this software were developed at
67
+ Cloudera, Inc (http://www.cloudera.com/).
68
+
69
+ --------------------------------------------------------------------------------
70
+
71
+ This product includes code from Apache ORC, which includes the following in
72
+ its NOTICE file:
73
+
74
+ Apache ORC
75
+ Copyright 2013-2019 The Apache Software Foundation
76
+
77
+ This product includes software developed by The Apache Software
78
+ Foundation (http://www.apache.org/).
79
+
80
+ This product includes software developed by Hewlett-Packard:
81
+ (c) Copyright [2014-2015] Hewlett-Packard Development Company, L.P
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow-23.0.1.dist-info/top_level.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ __dummy__
2
+ pyarrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/dataset/visibility.h ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // This API is EXPERIMENTAL.
19
+
20
+ #pragma once
21
+
22
+ #if defined(_WIN32) || defined(__CYGWIN__)
23
+ # if defined(_MSC_VER)
24
+ # pragma warning(push)
25
+ # pragma warning(disable : 4251)
26
+ # else
27
+ # pragma GCC diagnostic ignored "-Wattributes"
28
+ # endif
29
+
30
+ # ifdef ARROW_DS_STATIC
31
+ # define ARROW_DS_EXPORT
32
+ # elif defined(ARROW_DS_EXPORTING)
33
+ # define ARROW_DS_EXPORT __declspec(dllexport)
34
+ # else
35
+ # define ARROW_DS_EXPORT __declspec(dllimport)
36
+ # endif
37
+
38
+ # define ARROW_DS_NO_EXPORT
39
+ #else // Not Windows
40
+ # ifndef ARROW_DS_EXPORT
41
+ # define ARROW_DS_EXPORT __attribute__((visibility("default")))
42
+ # endif
43
+ # ifndef ARROW_DS_NO_EXPORT
44
+ # define ARROW_DS_NO_EXPORT __attribute__((visibility("hidden")))
45
+ # endif
46
+ #endif // Non-Windows
47
+
48
+ #if defined(_MSC_VER)
49
+ # pragma warning(pop)
50
+ #endif
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/api.h ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // This API is EXPERIMENTAL.
19
+
20
+ #pragma once
21
+
22
+ #include "arrow/engine/substrait/api.h"
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/api.h ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // This API is EXPERIMENTAL.
19
+
20
+ #pragma once
21
+
22
+ #include "arrow/engine/substrait/extension_set.h"
23
+ #include "arrow/engine/substrait/extension_types.h"
24
+ #include "arrow/engine/substrait/options.h"
25
+ #include "arrow/engine/substrait/relation.h"
26
+ #include "arrow/engine/substrait/serde.h"
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/extension_set.h ADDED
@@ -0,0 +1,481 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // This API is EXPERIMENTAL.
19
+
20
+ #pragma once
21
+
22
+ #include <cstddef>
23
+ #include <cstdint>
24
+ #include <functional>
25
+ #include <memory>
26
+ #include <optional>
27
+ #include <string>
28
+ #include <string_view>
29
+ #include <unordered_map>
30
+ #include <utility>
31
+ #include <vector>
32
+
33
+ #include "arrow/compute/api_aggregate.h"
34
+ #include "arrow/compute/expression.h"
35
+ #include "arrow/engine/substrait/type_fwd.h"
36
+ #include "arrow/engine/substrait/visibility.h"
37
+ #include "arrow/result.h"
38
+ #include "arrow/status.h"
39
+ #include "arrow/type_fwd.h"
40
+ #include "arrow/util/macros.h"
41
+
42
+ namespace arrow {
43
+ namespace engine {
44
+
45
+ constexpr const char* kSubstraitArithmeticFunctionsUri =
46
+ "https://github.com/substrait-io/substrait/blob/main/extensions/"
47
+ "functions_arithmetic.yaml";
48
+ constexpr const char* kSubstraitBooleanFunctionsUri =
49
+ "https://github.com/substrait-io/substrait/blob/main/extensions/"
50
+ "functions_boolean.yaml";
51
+ constexpr const char* kSubstraitComparisonFunctionsUri =
52
+ "https://github.com/substrait-io/substrait/blob/main/extensions/"
53
+ "functions_comparison.yaml";
54
+ constexpr const char* kSubstraitDatetimeFunctionsUri =
55
+ "https://github.com/substrait-io/substrait/blob/main/extensions/"
56
+ "functions_datetime.yaml";
57
+ constexpr const char* kSubstraitLogarithmicFunctionsUri =
58
+ "https://github.com/substrait-io/substrait/blob/main/extensions/"
59
+ "functions_logarithmic.yaml";
60
+ constexpr const char* kSubstraitRoundingFunctionsUri =
61
+ "https://github.com/substrait-io/substrait/blob/main/extensions/"
62
+ "functions_rounding.yaml";
63
+ constexpr const char* kSubstraitStringFunctionsUri =
64
+ "https://github.com/substrait-io/substrait/blob/main/extensions/"
65
+ "functions_string.yaml";
66
+ constexpr const char* kSubstraitAggregateGenericFunctionsUri =
67
+ "https://github.com/substrait-io/substrait/blob/main/extensions/"
68
+ "functions_aggregate_generic.yaml";
69
+
70
+ /// If a function call contains this URI then the function is looked up
71
+ /// in the registry directly, all arguments are mapped as value arguments,
72
+ /// and any options are ignored.
73
+ constexpr const char* kArrowSimpleExtensionFunctionsUri =
74
+ "urn:arrow:substrait_simple_extension_function";
75
+
76
+ struct ARROW_ENGINE_EXPORT Id {
77
+ std::string_view uri, name;
78
+ bool empty() const { return uri.empty() && name.empty(); }
79
+ std::string ToString() const;
80
+ };
81
+ struct ARROW_ENGINE_EXPORT IdHashEq {
82
+ size_t operator()(Id id) const;
83
+ bool operator()(Id l, Id r) const;
84
+ };
85
+
86
+ /// \brief Owning storage for ids
87
+ ///
88
+ /// Substrait plans may reuse URIs and names in many places. For convenience
89
+ /// and performance Substrait ids are typically passed around as views. As we
90
+ /// convert a plan from Substrait to Arrow we need to copy these strings out of
91
+ /// the Substrait buffer and into owned storage. This class serves as that owned
92
+ /// storage.
93
+ class ARROW_ENGINE_EXPORT IdStorage {
94
+ public:
95
+ virtual ~IdStorage() = default;
96
+ /// \brief Get an equivalent id pointing into this storage
97
+ ///
98
+ /// This operation will copy the ids into storage if they do not already exist
99
+ virtual Id Emplace(Id id) = 0;
100
+ /// \brief Get an equivalent view pointing into this storage for a URI
101
+ ///
102
+ /// If no URI is found then the uri will be copied into storage
103
+ virtual std::string_view EmplaceUri(std::string_view uri) = 0;
104
+ /// \brief Get an equivalent id pointing into this storage
105
+ ///
106
+ /// If no id is found then nullopt will be returned
107
+ virtual std::optional<Id> Find(Id id) const = 0;
108
+ /// \brief Get an equivalent view pointing into this storage for a URI
109
+ ///
110
+ /// If no URI is found then nullopt will be returned
111
+ virtual std::optional<std::string_view> FindUri(std::string_view uri) const = 0;
112
+
113
+ static std::unique_ptr<IdStorage> Make();
114
+ };
115
+
116
+ /// \brief Describes a Substrait call
117
+ ///
118
+ /// Substrait call expressions contain a list of arguments which can either
119
+ /// be enum arguments (which are serialized as strings), value arguments (which)
120
+ /// are Arrow expressions, or type arguments (not yet implemented)
121
+ class ARROW_ENGINE_EXPORT SubstraitCall {
122
+ public:
123
+ SubstraitCall(Id id, std::shared_ptr<DataType> output_type, bool output_nullable,
124
+ bool is_hash = false)
125
+ : id_(id),
126
+ output_type_(std::move(output_type)),
127
+ output_nullable_(output_nullable),
128
+ is_hash_(is_hash) {}
129
+
130
+ const Id& id() const { return id_; }
131
+ const std::shared_ptr<DataType>& output_type() const { return output_type_; }
132
+ bool output_nullable() const { return output_nullable_; }
133
+ bool is_hash() const { return is_hash_; }
134
+ const std::unordered_map<std::string, std::vector<std::string>>& options() const {
135
+ return options_;
136
+ }
137
+
138
+ bool HasEnumArg(int index) const;
139
+ Result<std::string_view> GetEnumArg(int index) const;
140
+ void SetEnumArg(int index, std::string enum_arg);
141
+ Result<compute::Expression> GetValueArg(int index) const;
142
+ bool HasValueArg(int index) const;
143
+ void SetValueArg(int index, compute::Expression value_arg);
144
+ std::optional<const std::vector<std::string>*> GetOption(
145
+ std::string_view option_name) const;
146
+ void SetOption(std::string_view option_name,
147
+ const std::vector<std::string_view>& option_preferences);
148
+ bool HasOptions() const;
149
+ int size() const { return size_; }
150
+
151
+ private:
152
+ Id id_;
153
+ std::shared_ptr<DataType> output_type_;
154
+ bool output_nullable_;
155
+ // Only needed when converting from Substrait -> Arrow aggregates. The
156
+ // Arrow function name depends on whether or not there are any groups
157
+ bool is_hash_;
158
+ std::unordered_map<int, std::string> enum_args_;
159
+ std::unordered_map<int, compute::Expression> value_args_;
160
+ std::unordered_map<std::string, std::vector<std::string>> options_;
161
+ int size_ = 0;
162
+ };
163
+
164
+ /// Substrait identifies functions and custom data types using a (uri, name) pair.
165
+ ///
166
+ /// This registry is a bidirectional mapping between Substrait IDs and their
167
+ /// corresponding Arrow counterparts (arrow::DataType and function names in a function
168
+ /// registry)
169
+ ///
170
+ /// Substrait extension types and variations must be registered with their
171
+ /// corresponding arrow::DataType before they can be used!
172
+ ///
173
+ /// Conceptually this can be thought of as two pairs of `unordered_map`s. One pair to
174
+ /// go back and forth between Substrait ID and arrow::DataType and another pair to go
175
+ /// back and forth between Substrait ID and Arrow function names.
176
+ ///
177
+ /// Unlike an ExtensionSet this registry is not created automatically when consuming
178
+ /// Substrait plans and must be configured ahead of time (although there is a default
179
+ /// instance).
180
+ class ARROW_ENGINE_EXPORT ExtensionIdRegistry {
181
+ public:
182
+ using ArrowToSubstraitCall =
183
+ std::function<Result<SubstraitCall>(const arrow::compute::Expression::Call&)>;
184
+ using SubstraitCallToArrow =
185
+ std::function<Result<arrow::compute::Expression>(const SubstraitCall&)>;
186
+ using ArrowToSubstraitAggregate =
187
+ std::function<Result<SubstraitCall>(const arrow::compute::Aggregate&)>;
188
+ using SubstraitAggregateToArrow =
189
+ std::function<Result<arrow::compute::Aggregate>(const SubstraitCall&)>;
190
+
191
+ /// \brief A mapping between a Substrait ID and an arrow::DataType
192
+ struct TypeRecord {
193
+ Id id;
194
+ const std::shared_ptr<DataType>& type;
195
+ };
196
+
197
+ /// \brief Return a uri view owned by this registry
198
+ ///
199
+ /// If the URI has never been emplaced it will return nullopt
200
+ virtual std::optional<std::string_view> FindUri(std::string_view uri) const = 0;
201
+ /// \brief Return a id view owned by this registry
202
+ ///
203
+ /// If the id has never been emplaced it will return nullopt
204
+ virtual std::optional<Id> FindId(Id id) const = 0;
205
+ virtual std::optional<TypeRecord> GetType(const DataType&) const = 0;
206
+ virtual std::optional<TypeRecord> GetType(Id) const = 0;
207
+ virtual Status CanRegisterType(Id, const std::shared_ptr<DataType>& type) const = 0;
208
+ virtual Status RegisterType(Id, std::shared_ptr<DataType>) = 0;
209
+ /// \brief Register a converter that converts an Arrow call to a Substrait call
210
+ ///
211
+ /// Note that there may not be 1:1 parity between ArrowToSubstraitCall and
212
+ /// SubstraitCallToArrow because some standard functions (e.g. add) may map to
213
+ /// multiple Arrow functions (e.g. add, add_checked)
214
+ virtual Status AddArrowToSubstraitCall(std::string arrow_function_name,
215
+ ArrowToSubstraitCall conversion_func) = 0;
216
+ /// \brief Check to see if a converter can be registered
217
+ ///
218
+ /// \return Status::OK if there are no conflicts, otherwise an error is returned
219
+ virtual Status CanAddArrowToSubstraitCall(
220
+ const std::string& arrow_function_name) const = 0;
221
+
222
+ /// \brief Register a converter that converts an Arrow aggregate to a Substrait
223
+ /// aggregate
224
+ virtual Status AddArrowToSubstraitAggregate(
225
+ std::string arrow_function_name, ArrowToSubstraitAggregate conversion_func) = 0;
226
+ /// \brief Check to see if a converter can be registered
227
+ ///
228
+ /// \return Status::OK if there are no conflicts, otherwise an error is returned
229
+ virtual Status CanAddArrowToSubstraitAggregate(
230
+ const std::string& arrow_function_name) const = 0;
231
+
232
+ /// \brief Register a converter that converts a Substrait call to an Arrow call
233
+ virtual Status AddSubstraitCallToArrow(Id substrait_function_id,
234
+ SubstraitCallToArrow conversion_func) = 0;
235
+ /// \brief Check to see if a converter can be registered
236
+ ///
237
+ /// \return Status::OK if there are no conflicts, otherwise an error is returned
238
+ virtual Status CanAddSubstraitCallToArrow(Id substrait_function_id) const = 0;
239
+ /// \brief Register a simple mapping function
240
+ ///
241
+ /// All calls to the function must pass only value arguments. The arguments
242
+ /// will be converted to expressions and passed to the Arrow function
243
+ virtual Status AddSubstraitCallToArrow(Id substrait_function_id,
244
+ std::string arrow_function_name) = 0;
245
+
246
+ /// \brief Register a converter that converts a Substrait aggregate to an Arrow
247
+ /// aggregate
248
+ virtual Status AddSubstraitAggregateToArrow(
249
+ Id substrait_function_id, SubstraitAggregateToArrow conversion_func) = 0;
250
+ /// \brief Check to see if a converter can be registered
251
+ ///
252
+ /// \return Status::OK if there are no conflicts, otherwise an error is returned
253
+ virtual Status CanAddSubstraitAggregateToArrow(Id substrait_function_id) const = 0;
254
+
255
+ /// \brief Return a list of Substrait functions that have a converter
256
+ ///
257
+ /// The function ids are encoded as strings using the pattern {uri}#{name}
258
+ virtual std::vector<std::string> GetSupportedSubstraitFunctions() const = 0;
259
+
260
+ /// \brief Find a converter to map Arrow calls to Substrait calls
261
+ /// \return A converter function or an invalid status if no converter is registered
262
+ virtual Result<ArrowToSubstraitCall> GetArrowToSubstraitCall(
263
+ const std::string& arrow_function_name) const = 0;
264
+
265
+ /// \brief Find a converter to map Arrow aggregates to Substrait aggregates
266
+ /// \return A converter function or an invalid status if no converter is registered
267
+ virtual Result<ArrowToSubstraitAggregate> GetArrowToSubstraitAggregate(
268
+ const std::string& arrow_function_name) const = 0;
269
+
270
+ /// \brief Find a converter to map a Substrait aggregate to an Arrow aggregate
271
+ /// \return A converter function or an invalid status if no converter is registered
272
+ virtual Result<SubstraitAggregateToArrow> GetSubstraitAggregateToArrow(
273
+ Id substrait_function_id) const = 0;
274
+
275
+ /// \brief Find a converter to map a Substrait call to an Arrow call
276
+ /// \return A converter function or an invalid status if no converter is registered
277
+ virtual Result<SubstraitCallToArrow> GetSubstraitCallToArrow(
278
+ Id substrait_function_id) const = 0;
279
+
280
+ /// \brief Similar to \see GetSubstraitCallToArrow but only uses the name
281
+ ///
282
+ /// There may be multiple functions with the same name and this will return
283
+ /// the first. This is slower than GetSubstraitCallToArrow and should only
284
+ /// be used when the plan does not include a URI (or the URI is "/")
285
+ virtual Result<SubstraitCallToArrow> GetSubstraitCallToArrowFallback(
286
+ std::string_view function_name) const = 0;
287
+
288
+ /// \brief Similar to \see GetSubstraitAggregateToArrow but only uses the name
289
+ ///
290
+ /// \see GetSubstraitCallToArrowFallback for details on the fallback behavior
291
+ virtual Result<SubstraitAggregateToArrow> GetSubstraitAggregateToArrowFallback(
292
+ std::string_view function_name) const = 0;
293
+ };
294
+
295
+ constexpr std::string_view kArrowExtTypesUri =
296
+ "https://github.com/apache/arrow/blob/main/format/substrait/"
297
+ "extension_types.yaml";
298
+ // Extension types that don't match 1:1 with a data type (or the data type is
299
+ // parameterized)
300
+ constexpr std::string_view kTimeNanosTypeName = "time_nanos";
301
+ constexpr Id kTimeNanosId = {kArrowExtTypesUri, kTimeNanosTypeName};
302
+
303
+ /// A default registry with all supported functions and data types registered
304
+ ///
305
+ /// Note: Function support is currently very minimal, see ARROW-15538
306
+ ARROW_ENGINE_EXPORT ExtensionIdRegistry* default_extension_id_registry();
307
+
308
+ /// \brief Make a nested registry with a given parent.
309
+ ///
310
+ /// A nested registry supports registering types and functions other and on top of those
311
+ /// already registered in its parent registry. No conflicts in IDs and names used for
312
+ /// lookup are allowed. Normally, the given parent is the default registry.
313
+ ///
314
+ /// One use case for a nested registry is for dynamic registration of functions defined
315
+ /// within a Substrait plan while keeping these registrations specific to the plan. When
316
+ /// the Substrait plan is disposed of, normally after its execution, the nested registry
317
+ /// can be disposed of as well.
318
+ ARROW_ENGINE_EXPORT std::shared_ptr<ExtensionIdRegistry> nested_extension_id_registry(
319
+ const ExtensionIdRegistry* parent);
320
+
321
+ /// \brief A set of extensions used within a plan
322
+ ///
323
+ /// Each time an extension is used within a Substrait plan the extension
324
+ /// must be included in an extension set that is defined at the root of the
325
+ /// plan.
326
+ ///
327
+ /// The plan refers to a specific extension using an "anchor" which is an
328
+ /// arbitrary integer invented by the producer that has no meaning beyond a
329
+ /// plan but which should be consistent within a plan.
330
+ ///
331
+ /// To support serialization and deserialization this type serves as a
332
+ /// bidirectional map between Substrait ID and "anchor"s.
333
+ ///
334
+ /// When deserializing a Substrait plan the extension set should be extracted
335
+ /// after the plan has been converted from Protobuf and before the plan
336
+ /// is converted to an execution plan.
337
+ ///
338
+ /// The extension set can be kept and reused during serialization if a perfect
339
+ /// round trip is required. If serialization is not needed or round tripping
340
+ /// is not required then the extension set can be safely discarded after the
341
+ /// plan has been converted into an execution plan.
342
+ ///
343
+ /// When converting an execution plan into a Substrait plan an extension set
344
+ /// can be automatically generated or a previously generated extension set can
345
+ /// be used.
346
+ ///
347
+ /// ExtensionSet does not own strings; it only refers to strings in an
348
+ /// ExtensionIdRegistry.
349
+ class ARROW_ENGINE_EXPORT ExtensionSet {
350
+ public:
351
+ struct FunctionRecord {
352
+ Id id;
353
+ std::string_view name;
354
+ };
355
+
356
+ struct TypeRecord {
357
+ Id id;
358
+ std::shared_ptr<DataType> type;
359
+ };
360
+
361
+ /// Construct an empty ExtensionSet to be populated during serialization.
362
+ explicit ExtensionSet(const ExtensionIdRegistry* = default_extension_id_registry());
363
+ ARROW_DEFAULT_MOVE_AND_ASSIGN(ExtensionSet);
364
+
365
+ /// Construct an ExtensionSet with explicit extension ids for efficient referencing
366
+ /// during deserialization. Note that input vectors need not be densely packed; an empty
367
+ /// (default constructed) Id may be used as a placeholder to indicate an unused
368
+ /// _anchor/_reference. This factory will be used to wrap the extensions declared in a
369
+ /// substrait::Plan before deserializing the plan's relations.
370
+ ///
371
+ /// Views will be replaced with equivalent views pointing to memory owned by the
372
+ /// registry.
373
+ ///
374
+ /// Note: This is an advanced operation. The order of the ids, types, and functions
375
+ /// must match the anchor numbers chosen for a plan.
376
+ ///
377
+ /// An extension set should instead be created using
378
+ /// arrow::engine::GetExtensionSetFromPlan
379
+ static Result<ExtensionSet> Make(
380
+ std::unordered_map<uint32_t, std::string_view> uris,
381
+ std::unordered_map<uint32_t, Id> type_ids,
382
+ std::unordered_map<uint32_t, Id> function_ids,
383
+ const ConversionOptions& conversion_options,
384
+ const ExtensionIdRegistry* = default_extension_id_registry());
385
+
386
+ const std::unordered_map<uint32_t, std::string_view>& uris() const { return uris_; }
387
+
388
+ /// \brief Returns a data type given an anchor
389
+ ///
390
+ /// This is used when converting a Substrait plan to an Arrow execution plan.
391
+ ///
392
+ /// If the anchor does not exist in this extension set an error will be returned.
393
+ Result<TypeRecord> DecodeType(uint32_t anchor) const;
394
+
395
+ /// \brief Returns the number of custom type records in this extension set
396
+ ///
397
+ /// Note: the types are currently stored as a sparse vector, so this may return a value
398
+ /// larger than the actual number of types. This behavior may change in the future; see
399
+ /// ARROW-15583.
400
+ std::size_t num_types() const { return types_.size(); }
401
+
402
+ /// \brief Lookup the anchor for a given type
403
+ ///
404
+ /// This operation is used when converting an Arrow execution plan to a Substrait plan.
405
+ /// If the type has been previously encoded then the same anchor value will returned.
406
+ ///
407
+ /// If the type has not been previously encoded then a new anchor value will be created.
408
+ ///
409
+ /// If the type does not exist in the extension id registry then an error will be
410
+ /// returned.
411
+ ///
412
+ /// \return An anchor that can be used to refer to the type within a plan
413
+ Result<uint32_t> EncodeType(const DataType& type);
414
+
415
+ /// \brief Return a function id given an anchor
416
+ ///
417
+ /// This is used when converting a Substrait plan to an Arrow execution plan.
418
+ ///
419
+ /// If the anchor does not exist in this extension set an error will be returned.
420
+ Result<Id> DecodeFunction(uint32_t anchor) const;
421
+
422
+ /// \brief Lookup the anchor for a given function
423
+ ///
424
+ /// This operation is used when converting an Arrow execution plan to a Substrait plan.
425
+ /// If the function has been previously encoded then the same anchor value will be
426
+ /// returned.
427
+ ///
428
+ /// If the function has not been previously encoded then a new anchor value will be
429
+ /// created.
430
+ ///
431
+ /// If the function name is not in the extension id registry then an error will be
432
+ /// returned.
433
+ ///
434
+ /// \return An anchor that can be used to refer to the function within a plan
435
+ Result<uint32_t> EncodeFunction(Id function_id);
436
+
437
+ /// \brief Stores a plan-specific id that is not known to the registry
438
+ ///
439
+ /// This is used when converting an Arrow execution plan to a Substrait plan.
440
+ ///
441
+ /// If the function is a UDF, something that wasn't known to the registry,
442
+ /// then we need long term storage of the function name (the ids are just
443
+ /// views)
444
+ Id RegisterPlanSpecificId(Id id);
445
+
446
+ /// \brief Return the number of custom functions in this extension set
447
+ std::size_t num_functions() const { return functions_.size(); }
448
+
449
+ const ExtensionIdRegistry* registry() const { return registry_; }
450
+
451
+ private:
452
+ const ExtensionIdRegistry* registry_;
453
+ // If the registry is not aware of an id then we probably can't do anything
454
+ // with it. However, in some cases, these may represent extensions or features
455
+ // that we can safely ignore. For example, we can usually safely ignore
456
+ // extension type variations if we assume the plan is valid. These ignorable
457
+ // ids are stored here.
458
+ std::unique_ptr<IdStorage> plan_specific_ids_ = IdStorage::Make();
459
+
460
+ // Map from anchor values to URI values referenced by this extension set
461
+ std::unordered_map<uint32_t, std::string_view> uris_;
462
+ // Map from anchor values to type definitions, used during Substrait->Arrow
463
+ // and populated from the Substrait extension set
464
+ std::unordered_map<uint32_t, TypeRecord> types_;
465
+ // Map from anchor values to function ids, used during Substrait->Arrow
466
+ // and populated from the Substrait extension set
467
+ std::unordered_map<uint32_t, Id> functions_;
468
+ // Map from type names to anchor values. Used during Arrow->Substrait
469
+ // and built as the plan is created.
470
+ std::unordered_map<Id, uint32_t, IdHashEq, IdHashEq> types_map_;
471
+ // Map from function names to anchor values. Used during Arrow->Substrait
472
+ // and built as the plan is created.
473
+ std::unordered_map<Id, uint32_t, IdHashEq, IdHashEq> functions_map_;
474
+
475
+ Status CheckHasUri(std::string_view uri);
476
+ void AddUri(std::pair<uint32_t, std::string_view> uri);
477
+ Status AddUri(Id id);
478
+ };
479
+
480
+ } // namespace engine
481
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/extension_types.h ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // This API is EXPERIMENTAL.
19
+
20
+ #pragma once
21
+
22
+ #include <cstdint>
23
+ #include <memory>
24
+ #include <optional>
25
+
26
+ #include "arrow/engine/substrait/visibility.h"
27
+ #include "arrow/type_fwd.h"
28
+
29
+ namespace arrow {
30
+ namespace engine {
31
+
32
+ // arrow::ExtensionTypes are provided to wrap uuid, fixed_char, varchar, interval_year,
33
+ // and interval_day which are first-class types in substrait but do not appear in
34
+ // the arrow type system.
35
+ //
36
+ // Note that these are not automatically registered with arrow::RegisterExtensionType(),
37
+ // which means among other things that serialization of these types to IPC would fail.
38
+
39
+ /// fixed_size_binary(16) for storing Universally Unique IDentifiers
40
+ ARROW_ENGINE_EXPORT
41
+ std::shared_ptr<DataType> uuid();
42
+
43
+ /// fixed_size_binary(length) constrained to contain only valid UTF-8
44
+ ARROW_ENGINE_EXPORT
45
+ std::shared_ptr<DataType> fixed_char(int32_t length);
46
+
47
+ /// utf8() constrained to be shorter than `length`
48
+ ARROW_ENGINE_EXPORT
49
+ std::shared_ptr<DataType> varchar(int32_t length);
50
+
51
+ /// fixed_size_list(int32(), 2) storing a number of [years, months]
52
+ ARROW_ENGINE_EXPORT
53
+ std::shared_ptr<DataType> interval_year();
54
+
55
+ /// fixed_size_list(int32(), 2) storing a number of [days, seconds]
56
+ ARROW_ENGINE_EXPORT
57
+ std::shared_ptr<DataType> interval_day();
58
+
59
+ /// constructs the appropriate timestamp type given the precision
60
+ /// no time zone
61
+ ARROW_ENGINE_EXPORT
62
+ Result<std::shared_ptr<DataType>> precision_timestamp(int precision);
63
+
64
+ /// constructs the appropriate timestamp type given the precision
65
+ /// and the UTC time zone
66
+ ARROW_ENGINE_EXPORT
67
+ Result<std::shared_ptr<DataType>> precision_timestamp_tz(int precision);
68
+
69
+ /// Return true if t is Uuid, otherwise false
70
+ ARROW_ENGINE_EXPORT
71
+ bool UnwrapUuid(const DataType&);
72
+
73
+ /// Return FixedChar length if t is FixedChar, otherwise nullopt
74
+ ARROW_ENGINE_EXPORT
75
+ std::optional<int32_t> UnwrapFixedChar(const DataType&);
76
+
77
+ /// Return Varchar (max) length if t is VarChar, otherwise nullopt
78
+ ARROW_ENGINE_EXPORT
79
+ std::optional<int32_t> UnwrapVarChar(const DataType& t);
80
+
81
+ /// Return true if t is IntervalYear, otherwise false
82
+ ARROW_ENGINE_EXPORT
83
+ bool UnwrapIntervalYear(const DataType&);
84
+
85
+ /// Return true if t is IntervalDay, otherwise false
86
+ ARROW_ENGINE_EXPORT
87
+ bool UnwrapIntervalDay(const DataType&);
88
+
89
+ } // namespace engine
90
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/options.h ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // This API is EXPERIMENTAL.
19
+
20
+ #pragma once
21
+
22
+ #include <functional>
23
+ #include <string>
24
+ #include <vector>
25
+
26
+ #include "arrow/acero/exec_plan.h"
27
+ #include "arrow/acero/options.h"
28
+ #include "arrow/compute/type_fwd.h"
29
+ #include "arrow/engine/substrait/type_fwd.h"
30
+ #include "arrow/engine/substrait/visibility.h"
31
+ #include "arrow/type_fwd.h"
32
+
33
+ namespace arrow {
34
+ namespace engine {
35
+
36
+ /// How strictly to adhere to the input structure when converting between Substrait and
37
+ /// Acero representations of a plan. This allows the user to trade conversion accuracy
38
+ /// for performance and lenience.
39
+ enum class ARROW_ENGINE_EXPORT ConversionStrictness {
40
+ /// When a primitive is used at the input that doesn't have an exact match at the
41
+ /// output, reject the conversion. This effectively asserts that there is no (known)
42
+ /// information loss in the conversion, and that plans should either round-trip back and
43
+ /// forth exactly or not at all. This option is primarily intended for testing and
44
+ /// debugging.
45
+ EXACT_ROUNDTRIP,
46
+
47
+ /// When a primitive is used at the input that doesn't have an exact match at the
48
+ /// output, attempt to model it with some collection of primitives at the output. This
49
+ /// means that even if the incoming plan is completely optimal by some metric, the
50
+ /// returned plan is fairly likely to not be optimal anymore, and round-trips back and
51
+ /// forth may make the plan increasingly suboptimal. However, every primitive at the
52
+ /// output can be (manually) traced back to exactly one primitive at the input, which
53
+ /// may be useful when debugging.
54
+ PRESERVE_STRUCTURE,
55
+
56
+ /// Behaves like PRESERVE_STRUCTURE, but prefers performance over structural accuracy.
57
+ /// Basic optimizations *may* be applied, in order to attempt to not regress in terms of
58
+ /// plan performance: if the incoming plan was already aggressively optimized, the goal
59
+ /// is for the output plan to not be less performant. In practical use cases, this is
60
+ /// probably the option you want.
61
+ ///
62
+ /// Note that no guarantees are made on top of PRESERVE_STRUCTURE. Past and future
63
+ /// versions of Arrow may even ignore this option entirely and treat it exactly like
64
+ /// PRESERVE_STRUCTURE.
65
+ BEST_EFFORT,
66
+ };
67
+
68
+ using NamedTableProvider = std::function<Result<acero::Declaration>(
69
+ const std::vector<std::string>&, const Schema&)>;
70
+ static NamedTableProvider kDefaultNamedTableProvider;
71
+
72
+ using NamedTapProvider = std::function<Result<acero::Declaration>(
73
+ const std::string&, std::vector<acero::Declaration::Input>, const std::string&,
74
+ std::shared_ptr<Schema>)>;
75
+
76
+ class ARROW_ENGINE_EXPORT ExtensionDetails {
77
+ public:
78
+ virtual ~ExtensionDetails() = default;
79
+ };
80
+
81
+ class ARROW_ENGINE_EXPORT ExtensionProvider {
82
+ public:
83
+ virtual ~ExtensionProvider() = default;
84
+ virtual Result<DeclarationInfo> MakeRel(const ConversionOptions& conv_opts,
85
+ const std::vector<DeclarationInfo>& inputs,
86
+ const ExtensionDetails& ext_details,
87
+ const ExtensionSet& ext_set) = 0;
88
+ };
89
+
90
+ /// \brief Get the default extension provider
91
+ ARROW_ENGINE_EXPORT std::shared_ptr<ExtensionProvider> default_extension_provider();
92
+ /// \brief Set the default extension provider
93
+ ///
94
+ /// \param[in] provider the new provider to be set as default
95
+ ARROW_ENGINE_EXPORT void set_default_extension_provider(
96
+ const std::shared_ptr<ExtensionProvider>& provider);
97
+
98
+ ARROW_ENGINE_EXPORT NamedTapProvider default_named_tap_provider();
99
+
100
+ ARROW_ENGINE_EXPORT void set_default_named_tap_provider(NamedTapProvider provider);
101
+
102
+ /// Options that control the conversion between Substrait and Acero representations of a
103
+ /// plan.
104
+ struct ARROW_ENGINE_EXPORT ConversionOptions {
105
+ ConversionOptions()
106
+ : strictness(ConversionStrictness::BEST_EFFORT),
107
+ named_table_provider(kDefaultNamedTableProvider),
108
+ named_tap_provider(default_named_tap_provider()),
109
+ extension_provider(default_extension_provider()),
110
+ allow_arrow_extensions(false) {}
111
+
112
+ /// \brief How strictly the converter should adhere to the structure of the input.
113
+ ConversionStrictness strictness;
114
+ /// \brief A custom strategy to be used for providing named tables
115
+ ///
116
+ /// The default behavior will return an invalid status if the plan has any
117
+ /// named table relations.
118
+ NamedTableProvider named_table_provider;
119
+ /// \brief A custom strategy to be used for obtaining a tap declaration
120
+ ///
121
+ /// The default provider returns an error
122
+ NamedTapProvider named_tap_provider;
123
+ /// \brief A custom strategy to be used for providing relation infos.
124
+ ///
125
+ /// The default behavior will provide for relations known to Arrow.
126
+ std::shared_ptr<ExtensionProvider> extension_provider;
127
+ /// \brief If true then Arrow-specific types and functions will be allowed
128
+ ///
129
+ /// Set to false to create plans that are more likely to be compatible with non-Arrow
130
+ /// engines
131
+ bool allow_arrow_extensions;
132
+ };
133
+
134
+ } // namespace engine
135
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/relation.h ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+
22
+ #include "arrow/acero/exec_plan.h"
23
+ #include "arrow/compute/api_aggregate.h"
24
+ #include "arrow/engine/substrait/visibility.h"
25
+ #include "arrow/type_fwd.h"
26
+
27
+ namespace arrow {
28
+ namespace engine {
29
+
30
+ /// Execution information resulting from converting a Substrait relation.
31
+ struct ARROW_ENGINE_EXPORT DeclarationInfo {
32
+ /// The compute declaration produced thus far.
33
+ acero::Declaration declaration;
34
+
35
+ std::shared_ptr<Schema> output_schema;
36
+ };
37
+
38
+ /// Information resulting from converting a Substrait plan
39
+ struct ARROW_ENGINE_EXPORT PlanInfo {
40
+ /// The root declaration.
41
+ ///
42
+ /// Only plans containing a single top-level relation are supported and so this will
43
+ /// represent that relation.
44
+ ///
45
+ /// This should technically be a RelRoot but some producers use a simple Rel here and so
46
+ /// Acero currently supports that case.
47
+ DeclarationInfo root;
48
+ /// The names of the output fields
49
+ ///
50
+ /// If `root` was created from a simple Rel then this will be empty
51
+ std::vector<std::string> names;
52
+ };
53
+
54
+ /// An expression whose output has a name
55
+ struct ARROW_ENGINE_EXPORT NamedExpression {
56
+ /// An expression
57
+ compute::Expression expression;
58
+ // An optional name to assign to the output, may be the empty string
59
+ std::string name;
60
+ };
61
+
62
+ /// A collection of expressions bound to a common schema
63
+ struct ARROW_ENGINE_EXPORT BoundExpressions {
64
+ /// The expressions
65
+ std::vector<NamedExpression> named_expressions;
66
+ /// The schema that all the expressions are bound to
67
+ std::shared_ptr<Schema> schema;
68
+ };
69
+
70
+ } // namespace engine
71
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/serde.h ADDED
@@ -0,0 +1,331 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // This API is EXPERIMENTAL.
19
+
20
+ #pragma once
21
+
22
+ #include <functional>
23
+ #include <memory>
24
+ #include <string>
25
+ #include <string_view>
26
+ #include <vector>
27
+
28
+ #include "arrow/compute/type_fwd.h"
29
+ #include "arrow/dataset/type_fwd.h"
30
+ #include "arrow/engine/substrait/options.h"
31
+ #include "arrow/engine/substrait/relation.h"
32
+ #include "arrow/engine/substrait/type_fwd.h"
33
+ #include "arrow/engine/substrait/visibility.h"
34
+ #include "arrow/result.h"
35
+ #include "arrow/status.h"
36
+ #include "arrow/type_fwd.h"
37
+ #include "arrow/util/macros.h"
38
+
39
+ namespace arrow {
40
+ namespace engine {
41
+
42
+ /// \brief Serialize an Acero Plan to a binary protobuf Substrait message
43
+ ///
44
+ /// \param[in] declaration the Acero declaration to serialize.
45
+ /// This declaration is the sink relation of the Acero plan.
46
+ /// \param[in,out] ext_set the extension mapping to use; may be updated to add
47
+ /// \param[in] conversion_options options to control how the conversion is done
48
+ ///
49
+ /// \return a buffer containing the protobuf serialization of the Acero relation
50
+ ARROW_ENGINE_EXPORT
51
+ Result<std::shared_ptr<Buffer>> SerializePlan(
52
+ const acero::Declaration& declaration, ExtensionSet* ext_set,
53
+ const ConversionOptions& conversion_options = {});
54
+
55
+ /// \brief Serialize expressions to a Substrait message
56
+ ///
57
+ /// \param[in] bound_expressions the expressions to serialize.
58
+ /// \param[in] conversion_options options to control how the conversion is done
59
+ /// \param[in,out] ext_set the extension mapping to use, optional, only needed
60
+ /// if you want to control the value of function anchors
61
+ /// to mirror a previous serialization / deserialization.
62
+ /// Will be updated if new functions are encountered
63
+ ARROW_ENGINE_EXPORT
64
+ Result<std::shared_ptr<Buffer>> SerializeExpressions(
65
+ const BoundExpressions& bound_expressions,
66
+ const ConversionOptions& conversion_options = {}, ExtensionSet* ext_set = NULLPTR);
67
+
68
+ /// Factory function type for generating the node that consumes the batches produced by
69
+ /// each toplevel Substrait relation when deserializing a Substrait Plan.
70
+ using ConsumerFactory = std::function<std::shared_ptr<acero::SinkNodeConsumer>()>;
71
+
72
+ /// \brief Deserializes a Substrait Plan message to a list of ExecNode declarations
73
+ ///
74
+ /// The output of each top-level Substrait relation will be sent to a caller supplied
75
+ /// consumer function provided by consumer_factory
76
+ ///
77
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait Plan
78
+ /// message
79
+ /// \param[in] consumer_factory factory function for generating the node that consumes
80
+ /// the batches produced by each toplevel Substrait relation
81
+ /// \param[in] registry an extension-id-registry to use, or null for the default one.
82
+ /// \param[out] ext_set_out if non-null, the extension mapping used by the Substrait
83
+ /// Plan is returned here.
84
+ /// \param[in] conversion_options options to control how the conversion is to be done.
85
+ /// \return a vector of ExecNode declarations, one for each toplevel relation in the
86
+ /// Substrait Plan
87
+ ARROW_ENGINE_EXPORT Result<std::vector<acero::Declaration>> DeserializePlans(
88
+ const Buffer& buf, const ConsumerFactory& consumer_factory,
89
+ const ExtensionIdRegistry* registry = NULLPTR, ExtensionSet* ext_set_out = NULLPTR,
90
+ const ConversionOptions& conversion_options = {});
91
+
92
+ /// \brief Deserializes a single-relation Substrait Plan message to an execution plan
93
+ ///
94
+ /// The output of each top-level Substrait relation will be sent to a caller supplied
95
+ /// consumer function provided by consumer_factory
96
+ ///
97
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait Plan
98
+ /// message
99
+ /// \param[in] consumer node that consumes the batches produced by each toplevel Substrait
100
+ /// relation
101
+ /// \param[in] registry an extension-id-registry to use, or null for the default one.
102
+ /// \param[out] ext_set_out if non-null, the extension mapping used by the Substrait
103
+ /// \param[in] conversion_options options to control how the conversion is to be done.
104
+ /// Plan is returned here.
105
+ /// \return an ExecPlan for the Substrait Plan
106
+ ARROW_ENGINE_EXPORT Result<std::shared_ptr<acero::ExecPlan>> DeserializePlan(
107
+ const Buffer& buf, const std::shared_ptr<acero::SinkNodeConsumer>& consumer,
108
+ const ExtensionIdRegistry* registry = NULLPTR, ExtensionSet* ext_set_out = NULLPTR,
109
+ const ConversionOptions& conversion_options = {});
110
+
111
+ /// Factory function type for generating the write options of a node consuming the batches
112
+ /// produced by each toplevel Substrait relation when deserializing a Substrait Plan.
113
+ using WriteOptionsFactory = std::function<std::shared_ptr<dataset::WriteNodeOptions>()>;
114
+
115
+ /// \brief Deserializes a Substrait Plan message to a list of ExecNode declarations
116
+ ///
117
+ /// The output of each top-level Substrait relation will be written to a filesystem.
118
+ /// `write_options_factory` can be used to control write behavior.
119
+ ///
120
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait Plan
121
+ /// message
122
+ /// \param[in] write_options_factory factory function for generating the write options of
123
+ /// a node consuming the batches produced by each toplevel Substrait relation
124
+ /// \param[in] registry an extension-id-registry to use, or null for the default one.
125
+ /// \param[out] ext_set_out if non-null, the extension mapping used by the Substrait
126
+ /// Plan is returned here.
127
+ /// \param[in] conversion_options options to control how the conversion is to be done.
128
+ /// \return a vector of ExecNode declarations, one for each toplevel relation in the
129
+ /// Substrait Plan
130
+ ARROW_ENGINE_EXPORT Result<std::vector<acero::Declaration>> DeserializePlans(
131
+ const Buffer& buf, const WriteOptionsFactory& write_options_factory,
132
+ const ExtensionIdRegistry* registry = NULLPTR, ExtensionSet* ext_set_out = NULLPTR,
133
+ const ConversionOptions& conversion_options = {});
134
+
135
+ /// \brief Deserializes a single-relation Substrait Plan message to an execution plan
136
+ ///
137
+ /// The output of the single Substrait relation will be written to a filesystem.
138
+ /// `write_options_factory` can be used to control write behavior.
139
+ ///
140
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait Plan
141
+ /// message
142
+ /// \param[in] write_options write options of a node consuming the batches produced by
143
+ /// each toplevel Substrait relation
144
+ /// \param[in] registry an extension-id-registry to use, or null for the default one.
145
+ /// \param[out] ext_set_out if non-null, the extension mapping used by the Substrait
146
+ /// Plan is returned here.
147
+ /// \param[in] conversion_options options to control how the conversion is to be done.
148
+ /// \return an ExecPlan for the Substrait Plan
149
+ ARROW_ENGINE_EXPORT Result<std::shared_ptr<acero::ExecPlan>> DeserializePlan(
150
+ const Buffer& buf, const std::shared_ptr<dataset::WriteNodeOptions>& write_options,
151
+ const ExtensionIdRegistry* registry = NULLPTR, ExtensionSet* ext_set_out = NULLPTR,
152
+ const ConversionOptions& conversion_options = {});
153
+
154
+ /// \brief Deserializes a Substrait Plan message to a Declaration
155
+ ///
156
+ /// The plan will not contain any sink nodes and will be suitable for use in any
157
+ /// of the arrow::compute::DeclarationToXyz methods.
158
+ ///
159
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait Plan
160
+ /// message
161
+ /// \param[in] registry an extension-id-registry to use, or null for the default one.
162
+ /// \param[out] ext_set_out if non-null, the extension mapping used by the Substrait
163
+ /// Plan is returned here.
164
+ /// \param[in] conversion_options options to control how the conversion is to be done.
165
+ /// \return A declaration representing the Substrait plan
166
+ ARROW_ENGINE_EXPORT Result<PlanInfo> DeserializePlan(
167
+ const Buffer& buf, const ExtensionIdRegistry* registry = NULLPTR,
168
+ ExtensionSet* ext_set_out = NULLPTR,
169
+ const ConversionOptions& conversion_options = {});
170
+
171
+ /// \brief Deserialize a Substrait ExtendedExpression message to the corresponding Arrow
172
+ /// type
173
+ ///
174
+ /// \param[in] buf a buffer containing the protobuf serialization of a collection of bound
175
+ /// expressions
176
+ /// \param[in] registry an extension-id-registry to use, or null for the default one
177
+ /// \param[in] conversion_options options to control how the conversion is done
178
+ /// \param[out] ext_set_out if non-null, the extension mapping used by the Substrait
179
+ /// message is returned here.
180
+ /// \return A collection of expressions and a common input schema they are bound to
181
+ ARROW_ENGINE_EXPORT Result<BoundExpressions> DeserializeExpressions(
182
+ const Buffer& buf, const ExtensionIdRegistry* registry = NULLPTR,
183
+ const ConversionOptions& conversion_options = {},
184
+ ExtensionSet* ext_set_out = NULLPTR);
185
+
186
+ /// \brief Deserializes a Substrait Type message to the corresponding Arrow type
187
+ ///
188
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait Type
189
+ /// message
190
+ /// \param[in] ext_set the extension mapping to use, normally provided by the
191
+ /// surrounding Plan message
192
+ /// \param[in] conversion_options options to control how the conversion is to be done.
193
+ /// \return the corresponding Arrow data type
194
+ ARROW_ENGINE_EXPORT
195
+ Result<std::shared_ptr<DataType>> DeserializeType(
196
+ const Buffer& buf, const ExtensionSet& ext_set,
197
+ const ConversionOptions& conversion_options = {});
198
+
199
+ /// \brief Serializes an Arrow type to a Substrait Type message
200
+ ///
201
+ /// \param[in] type the Arrow data type to serialize
202
+ /// \param[in,out] ext_set the extension mapping to use; may be updated to add a
203
+ /// mapping for the given type
204
+ /// \param[in] conversion_options options to control how the conversion is to be done.
205
+ /// \return a buffer containing the protobuf serialization of the corresponding Substrait
206
+ /// Type message
207
+ ARROW_ENGINE_EXPORT
208
+ Result<std::shared_ptr<Buffer>> SerializeType(
209
+ const DataType& type, ExtensionSet* ext_set,
210
+ const ConversionOptions& conversion_options = {});
211
+
212
+ /// \brief Deserializes a Substrait NamedStruct message to an Arrow schema
213
+ ///
214
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait
215
+ /// NamedStruct message
216
+ /// \param[in] ext_set the extension mapping to use, normally provided by the
217
+ /// surrounding Plan message
218
+ /// \param[in] conversion_options options to control how the conversion is to be done.
219
+ /// \return the corresponding Arrow schema
220
+ ARROW_ENGINE_EXPORT
221
+ Result<std::shared_ptr<Schema>> DeserializeSchema(
222
+ const Buffer& buf, const ExtensionSet& ext_set,
223
+ const ConversionOptions& conversion_options = {});
224
+
225
+ /// \brief Serializes an Arrow schema to a Substrait NamedStruct message
226
+ ///
227
+ /// \param[in] schema the Arrow schema to serialize
228
+ /// \param[in,out] ext_set the extension mapping to use; may be updated to add
229
+ /// mappings for the types used in the schema
230
+ /// \param[in] conversion_options options to control how the conversion is to be done.
231
+ /// \return a buffer containing the protobuf serialization of the corresponding Substrait
232
+ /// NamedStruct message
233
+ ARROW_ENGINE_EXPORT
234
+ Result<std::shared_ptr<Buffer>> SerializeSchema(
235
+ const Schema& schema, ExtensionSet* ext_set,
236
+ const ConversionOptions& conversion_options = {});
237
+
238
+ /// \brief Deserializes a Substrait Expression message to a compute expression
239
+ ///
240
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait
241
+ /// Expression message
242
+ /// \param[in] ext_set the extension mapping to use, normally provided by the
243
+ /// surrounding Plan message
244
+ /// \param[in] conversion_options options to control how the conversion is to be done.
245
+ /// \return the corresponding Arrow compute expression
246
+ ARROW_ENGINE_EXPORT
247
+ Result<compute::Expression> DeserializeExpression(
248
+ const Buffer& buf, const ExtensionSet& ext_set,
249
+ const ConversionOptions& conversion_options = {});
250
+
251
+ /// \brief Serializes an Arrow compute expression to a Substrait Expression message
252
+ ///
253
+ /// \param[in] expr the Arrow compute expression to serialize
254
+ /// \param[in,out] ext_set the extension mapping to use; may be updated to add
255
+ /// mappings for the types used in the expression
256
+ /// \param[in] conversion_options options to control how the conversion is to be done.
257
+ /// \return a buffer containing the protobuf serialization of the corresponding Substrait
258
+ /// Expression message
259
+ ARROW_ENGINE_EXPORT
260
+ Result<std::shared_ptr<Buffer>> SerializeExpression(
261
+ const compute::Expression& expr, ExtensionSet* ext_set,
262
+ const ConversionOptions& conversion_options = {});
263
+
264
+ /// \brief Serialize an Acero Declaration to a binary protobuf Substrait message
265
+ ///
266
+ /// \param[in] declaration the Acero declaration to serialize
267
+ /// \param[in,out] ext_set the extension mapping to use; may be updated to add
268
+ /// \param[in] conversion_options options to control how the conversion is done
269
+ ///
270
+ /// \return a buffer containing the protobuf serialization of the Acero relation
271
+ ARROW_ENGINE_EXPORT Result<std::shared_ptr<Buffer>> SerializeRelation(
272
+ const acero::Declaration& declaration, ExtensionSet* ext_set,
273
+ const ConversionOptions& conversion_options = {});
274
+
275
+ /// \brief Deserializes a Substrait Rel (relation) message to an ExecNode declaration
276
+ ///
277
+ /// \param[in] buf a buffer containing the protobuf serialization of a Substrait
278
+ /// Rel message
279
+ /// \param[in] ext_set the extension mapping to use, normally provided by the
280
+ /// surrounding Plan message
281
+ /// \param[in] conversion_options options to control how the conversion is to be done.
282
+ /// \return the corresponding ExecNode declaration
283
+ ARROW_ENGINE_EXPORT Result<acero::Declaration> DeserializeRelation(
284
+ const Buffer& buf, const ExtensionSet& ext_set,
285
+ const ConversionOptions& conversion_options = {});
286
+
287
+ namespace internal {
288
+
289
+ /// \brief Checks whether two protobuf serializations of a particular Substrait message
290
+ /// type are equivalent
291
+ ///
292
+ /// Note that a binary comparison of the two buffers is insufficient. One reason for this
293
+ /// is that the fields of a message can be specified in any order in the serialization.
294
+ ///
295
+ /// \param[in] message_name the name of the Substrait message type to check
296
+ /// \param[in] l_buf buffer containing the first protobuf serialization to compare
297
+ /// \param[in] r_buf buffer containing the second protobuf serialization to compare
298
+ /// \return success if equivalent, failure if not
299
+ ARROW_ENGINE_EXPORT
300
+ Status CheckMessagesEquivalent(std::string_view message_name, const Buffer& l_buf,
301
+ const Buffer& r_buf);
302
+
303
+ /// \brief Utility function to convert a JSON serialization of a Substrait message to
304
+ /// its binary serialization
305
+ ///
306
+ /// \param[in] type_name the name of the Substrait message type to convert
307
+ /// \param[in] json the JSON string to convert
308
+ /// \param[in] ignore_unknown_fields if true then unknown fields will be ignored and
309
+ /// will not cause an error
310
+ ///
311
+ /// This should generally be true to allow consumption of plans from newer
312
+ /// producers but setting to false can be useful if you are testing
313
+ /// conformance to a specific Substrait version
314
+ /// \return a buffer filled with the binary protobuf serialization of message
315
+ ARROW_ENGINE_EXPORT
316
+ Result<std::shared_ptr<Buffer>> SubstraitFromJSON(std::string_view type_name,
317
+ std::string_view json,
318
+ bool ignore_unknown_fields = true);
319
+
320
+ /// \brief Utility function to convert a binary protobuf serialization of a Substrait
321
+ /// message to JSON
322
+ ///
323
+ /// \param[in] type_name the name of the Substrait message type to convert
324
+ /// \param[in] buf the buffer containing the binary protobuf serialization of the message
325
+ /// \return a JSON string representing the message
326
+ ARROW_ENGINE_EXPORT
327
+ Result<std::string> SubstraitToJSON(std::string_view type_name, const Buffer& buf);
328
+
329
+ } // namespace internal
330
+ } // namespace engine
331
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/test_plan_builder.h ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // These utilities are for internal / unit test use only.
19
+ // They allow for the construction of simple Substrait plans
20
+ // programmatically without first requiring the construction
21
+ // of an ExecPlan
22
+
23
+ // These utilities have to be here, and not in a test_util.cc
24
+ // file (or in a unit test) because only one .so is allowed
25
+ // to include each .pb.h file or else protobuf will encounter
26
+ // global namespace conflicts.
27
+
28
+ #include <memory>
29
+ #include <string>
30
+ #include <unordered_map>
31
+ #include <vector>
32
+
33
+ #include "arrow/engine/substrait/visibility.h"
34
+ #include "arrow/result.h"
35
+ #include "arrow/type_fwd.h"
36
+
37
+ namespace arrow {
38
+ namespace engine {
39
+
40
+ struct Id;
41
+
42
+ namespace internal {
43
+
44
+ /// \brief Create a scan->project->sink plan for tests
45
+ ///
46
+ /// The plan will project one additional column using the function
47
+ /// defined by `function_id`, `arguments`, and data_types. `arguments`
48
+ /// and `data_types` should have the same length but only one of each
49
+ /// should be defined at each index.
50
+ ///
51
+ /// If `data_types` is defined at an index then the plan will create a
52
+ /// direct reference (starting at index 0 and increasing by 1 for each
53
+ /// argument of this type).
54
+ ///
55
+ /// If `arguments` is defined at an index then the plan will create an
56
+ /// enum argument with that value.
57
+ ARROW_ENGINE_EXPORT Result<std::shared_ptr<Buffer>> CreateScanProjectSubstrait(
58
+ Id function_id, const std::shared_ptr<Table>& input_table,
59
+ const std::vector<std::string>& arguments,
60
+ const std::unordered_map<std::string, std::vector<std::string>>& options,
61
+ const std::vector<std::shared_ptr<DataType>>& data_types,
62
+ const DataType& output_type);
63
+
64
+ /// \brief Create a scan->aggregate->sink plan for tests
65
+ ///
66
+ /// The plan will create an aggregate with one grouping set (defined by
67
+ /// key_idxs) and one measure. The measure will be a function
68
+ /// defined by `function_id` and direct references to `arg_idxs`.
69
+ ARROW_ENGINE_EXPORT Result<std::shared_ptr<Buffer>> CreateScanAggSubstrait(
70
+ Id function_id, const std::shared_ptr<Table>& input_table,
71
+ const std::vector<int>& key_idxs, const std::vector<int>& arg_idxs,
72
+ const DataType& output_type);
73
+
74
+ } // namespace internal
75
+ } // namespace engine
76
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/test_util.h ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/testing/gtest_util.h"
21
+ #include "arrow/util/vector.h"
22
+
23
+ #include <functional>
24
+ #include <random>
25
+ #include <string>
26
+ #include <string_view>
27
+ #include <vector>
28
+
29
+ #include "arrow/acero/exec_plan.h"
30
+ #include "arrow/compute/exec.h"
31
+ #include "arrow/compute/kernel.h"
32
+ #include "arrow/testing/visibility.h"
33
+ #include "arrow/util/async_generator.h"
34
+ #include "arrow/util/pcg_random.h"
35
+
36
+ namespace arrow {
37
+ namespace engine {
38
+
39
+ Result<std::shared_ptr<Table>> SortTableOnAllFields(const std::shared_ptr<Table>& tab);
40
+
41
+ void AssertTablesEqualIgnoringOrder(const std::shared_ptr<Table>& exp,
42
+ const std::shared_ptr<Table>& act);
43
+
44
+ } // namespace engine
45
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/type_fwd.h ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // This API is EXPERIMENTAL.
19
+
20
+ #pragma once
21
+
22
+ namespace arrow {
23
+ namespace engine {
24
+
25
+ class ExtensionIdRegistry;
26
+ class ExtensionSet;
27
+
28
+ struct ConversionOptions;
29
+ struct DeclarationInfo;
30
+
31
+ } // namespace engine
32
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/util.h ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <functional>
21
+ #include <memory>
22
+ #include <string>
23
+ #include <vector>
24
+
25
+ #include "arrow/compute/type_fwd.h"
26
+ #include "arrow/engine/substrait/options.h"
27
+ #include "arrow/engine/substrait/type_fwd.h"
28
+ #include "arrow/engine/substrait/visibility.h"
29
+ #include "arrow/result.h"
30
+ #include "arrow/type_fwd.h"
31
+ #include "arrow/util/iterator.h"
32
+ #include "arrow/util/macros.h"
33
+
34
+ namespace arrow {
35
+
36
+ namespace engine {
37
+
38
+ using PythonTableProvider =
39
+ std::function<Result<std::shared_ptr<Table>>(const std::vector<std::string>&)>;
40
+
41
+ /// \brief Utility method to run a Substrait plan
42
+ /// \param substrait_buffer The plan to run, must be in binary protobuf format
43
+ /// \param registry A registry of extension functions to make available to the plan
44
+ /// If null then the default registry will be used.
45
+ /// \param memory_pool The memory pool the plan should use to make allocations.
46
+ /// \param func_registry A registry of functions used for execution expressions.
47
+ /// `registry` maps from Substrait function IDs to "names". These
48
+ /// names will be provided to `func_registry` to get the actual
49
+ /// kernel.
50
+ /// \param conversion_options Options to control plan deserialization
51
+ /// \param use_threads If True then the CPU thread pool will be used for CPU work. If
52
+ /// False then all work will be done on the calling thread.
53
+ /// \return A record batch reader that will read out the results
54
+ ARROW_ENGINE_EXPORT Result<std::shared_ptr<RecordBatchReader>> ExecuteSerializedPlan(
55
+ const Buffer& substrait_buffer, const ExtensionIdRegistry* registry = NULLPTR,
56
+ compute::FunctionRegistry* func_registry = NULLPTR,
57
+ const ConversionOptions& conversion_options = {}, bool use_threads = true,
58
+ MemoryPool* memory_pool = default_memory_pool());
59
+
60
+ /// \brief Get a Serialized Plan from a Substrait JSON plan.
61
+ /// This is a helper method for Python tests.
62
+ ARROW_ENGINE_EXPORT Result<std::shared_ptr<Buffer>> SerializeJsonPlan(
63
+ const std::string& substrait_json);
64
+
65
+ /// \brief Make a nested registry with the default registry as parent.
66
+ /// See arrow::engine::nested_extension_id_registry for details.
67
+ ARROW_ENGINE_EXPORT std::shared_ptr<ExtensionIdRegistry> MakeExtensionIdRegistry();
68
+
69
+ ARROW_ENGINE_EXPORT const std::string& default_extension_types_uri();
70
+
71
+ // TODO(ARROW-18145) Populate these from cmake files
72
+ constexpr uint32_t kSubstraitMajorVersion = 0;
73
+ constexpr uint32_t kSubstraitMinorVersion = 44;
74
+ constexpr uint32_t kSubstraitPatchVersion = 0;
75
+
76
+ constexpr uint32_t kSubstraitMinimumMajorVersion = 0;
77
+ constexpr uint32_t kSubstraitMinimumMinorVersion = 20;
78
+
79
+ Status CheckVersion(uint32_t major_version, uint32_t minor_version);
80
+
81
+ } // namespace engine
82
+
83
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/engine/substrait/visibility.h ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // TODO(westonpace): Once we have a proper engine module this file
19
+ // should be renamed arrow/engine/visibility.h
20
+ // This API is EXPERIMENTAL.
21
+
22
+ #pragma once
23
+
24
+ #if defined(_WIN32) || defined(__CYGWIN__)
25
+ # if defined(_MSC_VER)
26
+ # pragma warning(push)
27
+ # pragma warning(disable : 4251)
28
+ # else
29
+ # pragma GCC diagnostic ignored "-Wattributes"
30
+ # endif
31
+
32
+ # ifdef ARROW_ENGINE_STATIC
33
+ # define ARROW_ENGINE_EXPORT
34
+ # elif defined(ARROW_ENGINE_EXPORTING)
35
+ # define ARROW_ENGINE_EXPORT __declspec(dllexport)
36
+ # else
37
+ # define ARROW_ENGINE_EXPORT __declspec(dllimport)
38
+ # endif
39
+
40
+ # define ARROW_ENGINE_NO_EXPORT
41
+ #else // Not Windows
42
+ # ifndef ARROW_ENGINE_EXPORT
43
+ # define ARROW_ENGINE_EXPORT __attribute__((visibility("default")))
44
+ # endif
45
+ # ifndef ARROW_ENGINE_NO_EXPORT
46
+ # define ARROW_ENGINE_NO_EXPORT __attribute__((visibility("hidden")))
47
+ # endif
48
+ #endif // Non-Windows
49
+
50
+ #if defined(_MSC_VER)
51
+ # pragma warning(pop)
52
+ #endif
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/bool8.h ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/extension_type.h"
21
+
22
+ namespace arrow::extension {
23
+
24
+ /// \brief Bool8 is an alternate representation for boolean
25
+ /// arrays using 8 bits instead of 1 bit per value. The underlying
26
+ /// storage type is int8.
27
+ class ARROW_EXPORT Bool8Array : public ExtensionArray {
28
+ public:
29
+ using ExtensionArray::ExtensionArray;
30
+ };
31
+
32
+ /// \brief Bool8 is an alternate representation for boolean
33
+ /// arrays using 8 bits instead of 1 bit per value. The underlying
34
+ /// storage type is int8.
35
+ class ARROW_EXPORT Bool8Type : public ExtensionType {
36
+ public:
37
+ /// \brief Construct a Bool8Type.
38
+ Bool8Type() : ExtensionType(int8()) {}
39
+
40
+ std::string extension_name() const override { return "arrow.bool8"; }
41
+ std::string ToString(bool show_metadata = false) const override;
42
+
43
+ bool ExtensionEquals(const ExtensionType& other) const override;
44
+
45
+ std::string Serialize() const override;
46
+
47
+ Result<std::shared_ptr<DataType>> Deserialize(
48
+ std::shared_ptr<DataType> storage_type,
49
+ const std::string& serialized_data) const override;
50
+
51
+ /// Create a Bool8Array from ArrayData
52
+ std::shared_ptr<Array> MakeArray(std::shared_ptr<ArrayData> data) const override;
53
+
54
+ static Result<std::shared_ptr<DataType>> Make();
55
+ };
56
+
57
+ /// \brief Return a Bool8Type instance.
58
+ ARROW_EXPORT std::shared_ptr<DataType> bool8();
59
+
60
+ } // namespace arrow::extension
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/fixed_shape_tensor.h ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/extension_type.h"
21
+
22
+ namespace arrow {
23
+ namespace extension {
24
+
25
+ class ARROW_EXPORT FixedShapeTensorArray : public ExtensionArray {
26
+ public:
27
+ using ExtensionArray::ExtensionArray;
28
+
29
+ /// \brief Create a FixedShapeTensorArray from a Tensor
30
+ ///
31
+ /// This method will create a FixedShapeTensorArray from a Tensor, taking its first
32
+ /// dimension as the number of elements in the resulting array and the remaining
33
+ /// dimensions as the shape of the individual tensors. If Tensor provides strides,
34
+ /// they will be used to determine dimension permutation. Otherwise, row-major layout
35
+ /// (i.e. no permutation) will be assumed.
36
+ ///
37
+ /// \param[in] tensor The Tensor to convert to a FixedShapeTensorArray
38
+ static Result<std::shared_ptr<FixedShapeTensorArray>> FromTensor(
39
+ const std::shared_ptr<Tensor>& tensor);
40
+
41
+ /// \brief Create a Tensor from FixedShapeTensorArray
42
+ ///
43
+ /// This method will create a Tensor from a FixedShapeTensorArray, setting its first
44
+ /// dimension as length equal to the FixedShapeTensorArray's length and the remaining
45
+ /// dimensions as the FixedShapeTensorType's shape. Shape and dim_names will be
46
+ /// permuted according to permutation stored in the FixedShapeTensorType metadata.
47
+ const Result<std::shared_ptr<Tensor>> ToTensor() const;
48
+ };
49
+
50
+ /// \brief Concrete type class for constant-size Tensor data.
51
+ /// This is a canonical arrow extension type.
52
+ /// See: https://arrow.apache.org/docs/format/CanonicalExtensions.html
53
+ class ARROW_EXPORT FixedShapeTensorType : public ExtensionType {
54
+ public:
55
+ FixedShapeTensorType(const std::shared_ptr<DataType>& value_type, const int32_t& size,
56
+ const std::vector<int64_t>& shape,
57
+ const std::vector<int64_t>& permutation = {},
58
+ const std::vector<std::string>& dim_names = {})
59
+ : ExtensionType(fixed_size_list(value_type, size)),
60
+ value_type_(value_type),
61
+ shape_(shape),
62
+ permutation_(permutation),
63
+ dim_names_(dim_names) {}
64
+
65
+ std::string extension_name() const override { return "arrow.fixed_shape_tensor"; }
66
+ std::string ToString(bool show_metadata = false) const override;
67
+
68
+ /// Number of dimensions of tensor elements
69
+ size_t ndim() const { return shape_.size(); }
70
+
71
+ /// Shape of tensor elements
72
+ const std::vector<int64_t>& shape() const { return shape_; }
73
+
74
+ /// Value type of tensor elements
75
+ const std::shared_ptr<DataType>& value_type() const { return value_type_; }
76
+
77
+ /// Strides of tensor elements. Strides state offset in bytes between adjacent
78
+ /// elements along each dimension. In case permutation is non-empty strides are
79
+ /// computed from permuted tensor element's shape.
80
+ const std::vector<int64_t>& strides();
81
+
82
+ /// Permutation mapping from logical to physical memory layout of tensor elements
83
+ const std::vector<int64_t>& permutation() const { return permutation_; }
84
+
85
+ /// Dimension names of tensor elements. Dimensions are ordered physically.
86
+ const std::vector<std::string>& dim_names() const { return dim_names_; }
87
+
88
+ bool ExtensionEquals(const ExtensionType& other) const override;
89
+
90
+ std::string Serialize() const override;
91
+
92
+ Result<std::shared_ptr<DataType>> Deserialize(
93
+ std::shared_ptr<DataType> storage_type,
94
+ const std::string& serialized_data) const override;
95
+
96
+ /// Create a FixedShapeTensorArray from ArrayData
97
+ std::shared_ptr<Array> MakeArray(std::shared_ptr<ArrayData> data) const override;
98
+
99
+ /// \brief Create a Tensor from an ExtensionScalar from a FixedShapeTensorArray
100
+ ///
101
+ /// This method will return a Tensor from ExtensionScalar with strides
102
+ /// derived from shape and permutation of FixedShapeTensorType. Shape and
103
+ /// dim_names will be permuted according to permutation stored in the
104
+ /// FixedShapeTensorType metadata.
105
+ static Result<std::shared_ptr<Tensor>> MakeTensor(
106
+ const std::shared_ptr<ExtensionScalar>& scalar);
107
+
108
+ /// \brief Create a FixedShapeTensorType instance
109
+ static Result<std::shared_ptr<DataType>> Make(
110
+ const std::shared_ptr<DataType>& value_type, const std::vector<int64_t>& shape,
111
+ const std::vector<int64_t>& permutation = {},
112
+ const std::vector<std::string>& dim_names = {});
113
+
114
+ private:
115
+ std::shared_ptr<DataType> storage_type_;
116
+ std::shared_ptr<DataType> value_type_;
117
+ std::vector<int64_t> shape_;
118
+ std::vector<int64_t> strides_;
119
+ std::vector<int64_t> permutation_;
120
+ std::vector<std::string> dim_names_;
121
+ };
122
+
123
+ /// \brief Return a FixedShapeTensorType instance.
124
+ ARROW_EXPORT std::shared_ptr<DataType> fixed_shape_tensor(
125
+ const std::shared_ptr<DataType>& storage_type, const std::vector<int64_t>& shape,
126
+ const std::vector<int64_t>& permutation = {},
127
+ const std::vector<std::string>& dim_names = {});
128
+
129
+ } // namespace extension
130
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/json.h ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <stdexcept>
21
+ #include <string>
22
+
23
+ #include "arrow/extension_type.h"
24
+ #include "arrow/result.h"
25
+ #include "arrow/type_fwd.h"
26
+ #include "arrow/util/visibility.h"
27
+
28
+ namespace arrow::extension {
29
+
30
+ /// \brief Concrete type class for variable-size JSON data, utf8-encoded.
31
+ class ARROW_EXPORT JsonExtensionType : public ExtensionType {
32
+ public:
33
+ explicit JsonExtensionType(const std::shared_ptr<DataType>& storage_type)
34
+ : ExtensionType(storage_type) {}
35
+
36
+ std::string extension_name() const override { return "arrow.json"; }
37
+
38
+ bool ExtensionEquals(const ExtensionType& other) const override;
39
+
40
+ Result<std::shared_ptr<DataType>> Deserialize(
41
+ std::shared_ptr<DataType> storage_type,
42
+ const std::string& serialized_data) const override;
43
+
44
+ std::string Serialize() const override;
45
+
46
+ std::shared_ptr<Array> MakeArray(std::shared_ptr<ArrayData> data) const override;
47
+
48
+ static Result<std::shared_ptr<DataType>> Make(std::shared_ptr<DataType> storage_type);
49
+
50
+ static bool IsSupportedStorageType(Type::type type_id);
51
+ };
52
+
53
+ /// \brief Return a JsonExtensionType instance.
54
+ ARROW_EXPORT std::shared_ptr<DataType> json(
55
+ std::shared_ptr<DataType> storage_type = utf8());
56
+
57
+ } // namespace arrow::extension
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/opaque.h ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/extension_type.h"
21
+ #include "arrow/type.h"
22
+
23
+ namespace arrow::extension {
24
+
25
+ /// \brief Opaque is a placeholder for a type from an external (usually
26
+ /// non-Arrow) system that could not be interpreted.
27
+ class ARROW_EXPORT OpaqueType : public ExtensionType {
28
+ public:
29
+ /// \brief Construct an OpaqueType.
30
+ ///
31
+ /// \param[in] storage_type The underlying storage type. Should be
32
+ /// arrow::null if there is no data.
33
+ /// \param[in] type_name The name of the type in the external system.
34
+ /// \param[in] vendor_name The name of the external system.
35
+ explicit OpaqueType(std::shared_ptr<DataType> storage_type, std::string type_name,
36
+ std::string vendor_name)
37
+ : ExtensionType(std::move(storage_type)),
38
+ type_name_(std::move(type_name)),
39
+ vendor_name_(std::move(vendor_name)) {}
40
+
41
+ std::string extension_name() const override { return "arrow.opaque"; }
42
+ std::string ToString(bool show_metadata) const override;
43
+ bool ExtensionEquals(const ExtensionType& other) const override;
44
+ std::string Serialize() const override;
45
+ Result<std::shared_ptr<DataType>> Deserialize(
46
+ std::shared_ptr<DataType> storage_type,
47
+ const std::string& serialized_data) const override;
48
+ /// Create an OpaqueArray from ArrayData
49
+ std::shared_ptr<Array> MakeArray(std::shared_ptr<ArrayData> data) const override;
50
+
51
+ std::string_view type_name() const { return type_name_; }
52
+ std::string_view vendor_name() const { return vendor_name_; }
53
+
54
+ private:
55
+ std::string type_name_;
56
+ std::string vendor_name_;
57
+ };
58
+
59
+ /// \brief Opaque is a wrapper for (usually binary) data from an external
60
+ /// (often non-Arrow) system that could not be interpreted.
61
+ class ARROW_EXPORT OpaqueArray : public ExtensionArray {
62
+ public:
63
+ using ExtensionArray::ExtensionArray;
64
+ };
65
+
66
+ /// \brief Return an OpaqueType instance.
67
+ ARROW_EXPORT std::shared_ptr<DataType> opaque(std::shared_ptr<DataType> storage_type,
68
+ std::string type_name,
69
+ std::string vendor_name);
70
+
71
+ } // namespace arrow::extension
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/extension/uuid.h ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/extension_type.h"
21
+
22
+ namespace arrow::extension {
23
+
24
+ /// \brief UuidArray stores array of UUIDs. Underlying storage type is
25
+ /// FixedSizeBinary(16).
26
+ class ARROW_EXPORT UuidArray : public ExtensionArray {
27
+ public:
28
+ using ExtensionArray::ExtensionArray;
29
+ };
30
+
31
+ /// \brief UuidType is a canonical arrow extension type for UUIDs.
32
+ /// UUIDs are stored as FixedSizeBinary(16) with big-endian notation and this
33
+ /// does not interpret the bytes in any way. Specific UUID version is not
34
+ /// required or guaranteed.
35
+ class ARROW_EXPORT UuidType : public ExtensionType {
36
+ public:
37
+ /// \brief Construct a UuidType.
38
+ UuidType() : ExtensionType(fixed_size_binary(16)) {}
39
+
40
+ std::string extension_name() const override { return "arrow.uuid"; }
41
+ std::string ToString(bool show_metadata = false) const override;
42
+
43
+ bool ExtensionEquals(const ExtensionType& other) const override;
44
+
45
+ /// Create a UuidArray from ArrayData
46
+ std::shared_ptr<Array> MakeArray(std::shared_ptr<ArrayData> data) const override;
47
+
48
+ Result<std::shared_ptr<DataType>> Deserialize(
49
+ std::shared_ptr<DataType> storage_type,
50
+ const std::string& serialized) const override;
51
+
52
+ std::string Serialize() const override { return ""; }
53
+
54
+ /// \brief Create a UuidType instance
55
+ static Result<std::shared_ptr<DataType>> Make() { return std::make_shared<UuidType>(); }
56
+
57
+ static bool IsSupportedStorageType(const std::shared_ptr<DataType>& storage_type);
58
+ };
59
+
60
+ /// \brief Return a UuidType instance.
61
+ ARROW_EXPORT std::shared_ptr<DataType> uuid();
62
+
63
+ } // namespace arrow::extension
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/api.h ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/util/config.h" // IWYU pragma: export
21
+
22
+ #include "arrow/filesystem/filesystem.h" // IWYU pragma: export
23
+ #ifdef ARROW_AZURE
24
+ # include "arrow/filesystem/azurefs.h" // IWYU pragma: export
25
+ #endif
26
+ #ifdef ARROW_GCS
27
+ # include "arrow/filesystem/gcsfs.h" // IWYU pragma: export
28
+ #endif
29
+ #include "arrow/filesystem/hdfs.h" // IWYU pragma: export
30
+ #include "arrow/filesystem/localfs.h" // IWYU pragma: export
31
+ #include "arrow/filesystem/mockfs.h" // IWYU pragma: export
32
+ #ifdef ARROW_S3
33
+ # include "arrow/filesystem/s3fs.h" // IWYU pragma: export
34
+ #endif
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/azurefs.h ADDED
@@ -0,0 +1,373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <string>
22
+ #include <vector>
23
+
24
+ #include "arrow/filesystem/filesystem.h"
25
+ #include "arrow/util/macros.h"
26
+ #include "arrow/util/uri.h"
27
+
28
+ namespace Azure::Core::Credentials {
29
+ class TokenCredential;
30
+ }
31
+
32
+ namespace Azure::Storage {
33
+ class StorageSharedKeyCredential;
34
+ }
35
+
36
+ namespace Azure::Storage::Blobs {
37
+ class BlobServiceClient;
38
+ }
39
+
40
+ namespace Azure::Storage::Files::DataLake {
41
+ class DataLakeFileSystemClient;
42
+ class DataLakeServiceClient;
43
+ } // namespace Azure::Storage::Files::DataLake
44
+
45
+ namespace arrow::fs {
46
+
47
+ class TestAzureFileSystem;
48
+ class TestAzureOptions;
49
+
50
+ /// Options for the AzureFileSystem implementation.
51
+ ///
52
+ /// By default, authentication is handled by the Azure SDK's credential chain
53
+ /// which may read from multiple environment variables, such as:
54
+ /// - `AZURE_TENANT_ID`
55
+ /// - `AZURE_CLIENT_ID`
56
+ /// - `AZURE_CLIENT_SECRET`
57
+ /// - `AZURE_AUTHORITY_HOST`
58
+ /// - `AZURE_CLIENT_CERTIFICATE_PATH`
59
+ /// - `AZURE_FEDERATED_TOKEN_FILE`
60
+ ///
61
+ /// Functions are provided for explicit configuration of credentials if that is preferred.
62
+ struct ARROW_EXPORT AzureOptions {
63
+ friend class TestAzureOptions;
64
+
65
+ /// \brief The name of the Azure Storage Account being accessed.
66
+ ///
67
+ /// All service URLs will be constructed using this storage account name.
68
+ /// `ConfigureAccountKeyCredential` assumes the user wants to authenticate
69
+ /// this account.
70
+ std::string account_name;
71
+
72
+ /// \brief hostname[:port] of the Azure Blob Storage Service.
73
+ ///
74
+ /// If the hostname is a relative domain name (one that starts with a '.'), then storage
75
+ /// account URLs will be constructed by prepending the account name to the hostname.
76
+ /// If the hostname is a fully qualified domain name, then the hostname will be used
77
+ /// as-is and the account name will follow the hostname in the URL path.
78
+ ///
79
+ /// Default: ".blob.core.windows.net"
80
+ std::string blob_storage_authority = ".blob.core.windows.net";
81
+
82
+ /// \brief hostname[:port] of the Azure Data Lake Storage Gen 2 Service.
83
+ ///
84
+ /// If the hostname is a relative domain name (one that starts with a '.'), then storage
85
+ /// account URLs will be constructed by prepending the account name to the hostname.
86
+ /// If the hostname is a fully qualified domain name, then the hostname will be used
87
+ /// as-is and the account name will follow the hostname in the URL path.
88
+ ///
89
+ /// Default: ".dfs.core.windows.net"
90
+ std::string dfs_storage_authority = ".dfs.core.windows.net";
91
+
92
+ /// \brief Azure Blob Storage connection transport.
93
+ ///
94
+ /// Default: "https"
95
+ std::string blob_storage_scheme = "https";
96
+
97
+ /// \brief Azure Data Lake Storage Gen 2 connection transport.
98
+ ///
99
+ /// Default: "https"
100
+ std::string dfs_storage_scheme = "https";
101
+
102
+ // TODO(GH-38598): Add support for more auth methods.
103
+ // std::string connection_string;
104
+ // std::string sas_token;
105
+
106
+ /// \brief Default metadata for OpenOutputStream.
107
+ ///
108
+ /// This will be ignored if non-empty metadata is passed to OpenOutputStream.
109
+ std::shared_ptr<const KeyValueMetadata> default_metadata;
110
+
111
+ /// Whether OutputStream writes will be issued in the background, without blocking.
112
+ bool background_writes = true;
113
+
114
+ private:
115
+ enum class CredentialKind {
116
+ kDefault,
117
+ kAnonymous,
118
+ kStorageSharedKey,
119
+ kSASToken,
120
+ kClientSecret,
121
+ kManagedIdentity,
122
+ kCLI,
123
+ kWorkloadIdentity,
124
+ kEnvironment,
125
+ } credential_kind_ = CredentialKind::kDefault;
126
+
127
+ std::shared_ptr<Azure::Storage::StorageSharedKeyCredential>
128
+ storage_shared_key_credential_;
129
+ std::string sas_token_;
130
+ mutable std::shared_ptr<Azure::Core::Credentials::TokenCredential> token_credential_;
131
+
132
+ public:
133
+ AzureOptions();
134
+ ~AzureOptions();
135
+
136
+ private:
137
+ void ExtractFromUriSchemeAndHierPart(const Uri& uri, std::string* out_path);
138
+ Status ExtractFromUriQuery(const Uri& uri);
139
+
140
+ public:
141
+ /// \brief Construct a new AzureOptions from an URI.
142
+ ///
143
+ /// Supported formats:
144
+ ///
145
+ /// 1. abfs[s]://\<account\>.blob.core.windows.net[/\<container\>[/\<path\>]]
146
+ /// 2. abfs[s]://\<container\>\@\<account\>.dfs.core.windows.net[/path]
147
+ /// 3. abfs[s]://[\<account@]\<host[.domain]\>[\<:port\>][/\<container\>[/path]]
148
+ /// 4. abfs[s]://[\<account@]\<container\>[/path]
149
+ ///
150
+ /// (1) and (2) are compatible with the Azure Data Lake Storage Gen2 URIs
151
+ /// [1], (3) is for Azure Blob Storage compatible service including Azurite,
152
+ /// and (4) is a shorter version of (1) and (2).
153
+ ///
154
+ /// Note that there is no difference between abfs and abfss. HTTPS is
155
+ /// used with abfs by default. You can force to use HTTP by specifying
156
+ /// "enable_tls=false" query.
157
+ ///
158
+ /// Supported query parameters:
159
+ ///
160
+ /// * blob_storage_authority: Set AzureOptions::blob_storage_authority
161
+ /// * dfs_storage_authority: Set AzureOptions::dfs_storage_authority
162
+ /// * enable_tls: If it's "false" or "0", HTTP not HTTPS is used.
163
+ /// * credential_kind: One of "default", "anonymous", "workload_identity",
164
+ /// "environment" or "cli". If "default" is specified, it's
165
+ /// just ignored. If "anonymous" is specified,
166
+ /// AzureOptions::ConfigureAnonymousCredential() is called. If
167
+ /// "workload_identity" is specified,
168
+ /// AzureOptions::ConfigureWorkloadIdentityCredential() is called. If
169
+ /// "environment" is specified,
170
+ /// AzureOptions::ConfigureEnvironmentCredential() is called. If "cli" is
171
+ /// specified, AzureOptions::ConfigureCLICredential() is called.
172
+ /// * tenant_id: You must specify "client_id" and "client_secret"
173
+ /// too. AzureOptions::ConfigureClientSecretCredential() is called.
174
+ /// * client_id: If you don't specify "tenant_id" and
175
+ /// "client_secret",
176
+ /// AzureOptions::ConfigureManagedIdentityCredential() is
177
+ /// called. If you specify "tenant_id" and "client_secret" too,
178
+ /// AzureOptions::ConfigureClientSecretCredential() is called.
179
+ /// * client_secret: You must specify "tenant_id" and "client_id"
180
+ /// too. AzureOptions::ConfigureClientSecretCredential() is called.
181
+ /// * A SAS token is made up of several query parameters. Appending a SAS
182
+ /// token to the URI configures SAS token auth by calling
183
+ /// AzureOptions::ConfigureSASCredential().
184
+ ///
185
+ /// [1]:
186
+ /// https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction-abfs-uri
187
+ static Result<AzureOptions> FromUri(const Uri& uri, std::string* out_path);
188
+ static Result<AzureOptions> FromUri(const std::string& uri, std::string* out_path);
189
+
190
+ Status ConfigureDefaultCredential();
191
+ Status ConfigureAnonymousCredential();
192
+ Status ConfigureAccountKeyCredential(const std::string& account_key);
193
+ Status ConfigureSASCredential(const std::string& sas_token);
194
+ Status ConfigureClientSecretCredential(const std::string& tenant_id,
195
+ const std::string& client_id,
196
+ const std::string& client_secret);
197
+ Status ConfigureManagedIdentityCredential(const std::string& client_id = std::string());
198
+ Status ConfigureCLICredential();
199
+ Status ConfigureWorkloadIdentityCredential();
200
+ Status ConfigureEnvironmentCredential();
201
+
202
+ bool Equals(const AzureOptions& other) const;
203
+
204
+ std::string AccountBlobUrl(const std::string& account_name) const;
205
+ std::string AccountDfsUrl(const std::string& account_name) const;
206
+
207
+ Result<std::unique_ptr<Azure::Storage::Blobs::BlobServiceClient>>
208
+ MakeBlobServiceClient() const;
209
+
210
+ Result<std::unique_ptr<Azure::Storage::Files::DataLake::DataLakeServiceClient>>
211
+ MakeDataLakeServiceClient() const;
212
+ };
213
+
214
+ /// \brief FileSystem implementation backed by Azure Blob Storage (ABS) [1] and
215
+ /// Azure Data Lake Storage Gen2 (ADLS Gen2) [2].
216
+ ///
217
+ /// ADLS Gen2 isn't a dedicated service or account type. It's a set of capabilities that
218
+ /// support high throughput analytic workloads, built on Azure Blob Storage. All the data
219
+ /// ingested via the ADLS Gen2 APIs is persisted as blobs in the storage account.
220
+ /// ADLS Gen2 provides filesystem semantics, file-level security, and Hadoop
221
+ /// compatibility. ADLS Gen1 exists as a separate object that will retired on 2024-02-29
222
+ /// and new ADLS accounts use Gen2 instead.
223
+ ///
224
+ /// ADLS Gen2 and Blob APIs can operate on the same data, but there are
225
+ /// some limitations [3]. The ones that are relevant to this
226
+ /// implementation are listed here:
227
+ ///
228
+ /// - You can't use Blob APIs, and ADLS APIs to write to the same instance of a file. If
229
+ /// you write to a file by using ADLS APIs then that file's blocks won't be visible
230
+ /// to calls to the GetBlockList Blob API. The only exception is when you're
231
+ /// overwriting.
232
+ /// - When you use the ListBlobs operation without specifying a delimiter, the results
233
+ /// include both directories and blobs. If you choose to use a delimiter, use only a
234
+ /// forward slash (/) \--- the only supported delimiter.
235
+ /// - If you use the DeleteBlob API to delete a directory, that directory is deleted only
236
+ /// if it's empty. This means that you can't use the Blob API delete directories
237
+ /// recursively.
238
+ ///
239
+ /// [1]: https://azure.microsoft.com/en-us/products/storage/blobs
240
+ /// [2]: https://azure.microsoft.com/en-us/products/storage/data-lake-storage
241
+ /// [3]:
242
+ /// https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-known-issues
243
+ class ARROW_EXPORT AzureFileSystem : public FileSystem {
244
+ private:
245
+ class Impl;
246
+ std::unique_ptr<Impl> impl_;
247
+
248
+ explicit AzureFileSystem(std::unique_ptr<Impl>&& impl);
249
+
250
+ friend class TestAzureFileSystem;
251
+ void ForceCachedHierarchicalNamespaceSupport(int hns_support);
252
+
253
+ public:
254
+ ~AzureFileSystem() override = default;
255
+
256
+ static Result<std::shared_ptr<AzureFileSystem>> Make(
257
+ const AzureOptions& options, const io::IOContext& = io::default_io_context());
258
+
259
+ std::string type_name() const override { return "abfs"; }
260
+
261
+ /// Return the original Azure options when constructing the filesystem
262
+ const AzureOptions& options() const;
263
+
264
+ bool Equals(const FileSystem& other) const override;
265
+
266
+ /// \cond FALSE
267
+ using FileSystem::CreateDir;
268
+ using FileSystem::DeleteDirContents;
269
+ using FileSystem::GetFileInfo;
270
+ using FileSystem::OpenAppendStream;
271
+ using FileSystem::OpenOutputStream;
272
+ /// \endcond
273
+
274
+ Result<FileInfo> GetFileInfo(const std::string& path) override;
275
+
276
+ Result<FileInfoVector> GetFileInfo(const FileSelector& select) override;
277
+
278
+ Status CreateDir(const std::string& path, bool recursive) override;
279
+
280
+ /// \brief Delete a directory and its contents recursively.
281
+ ///
282
+ /// Atomicity is guaranteed only on Hierarchical Namespace Storage accounts.
283
+ Status DeleteDir(const std::string& path) override;
284
+
285
+ /// \brief Non-atomically deletes the contents of a directory.
286
+ ///
287
+ /// This function can return a bad Status after only partially deleting the
288
+ /// contents of the directory.
289
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok) override;
290
+
291
+ /// \brief Deletion of all the containers in the storage account (not
292
+ /// implemented for safety reasons).
293
+ ///
294
+ /// \return Status::NotImplemented
295
+ Status DeleteRootDirContents() override;
296
+
297
+ /// \brief Deletes a file.
298
+ ///
299
+ /// Supported on both flat namespace and Hierarchical Namespace storage
300
+ /// accounts. A check is made to guarantee the parent directory doesn't
301
+ /// disappear after the blob is deleted and while this operation is running,
302
+ /// no other client can delete the parent directory due to the use of leases.
303
+ ///
304
+ /// This means applications can safely retry this operation without coordination to
305
+ /// guarantee only one client/process is trying to delete the same file.
306
+ Status DeleteFile(const std::string& path) override;
307
+
308
+ /// \brief Move/rename a file or directory.
309
+ ///
310
+ /// There are no files immediately at the root directory, so paths like
311
+ /// "/segment" always refer to a container of the storage account and are
312
+ /// treated as directories.
313
+ ///
314
+ /// If `dest` exists but the operation fails for some reason, `Move`
315
+ /// guarantees `dest` is not lost.
316
+ ///
317
+ /// Conditions for a successful move:
318
+ ///
319
+ /// 1. `src` must exist.
320
+ /// 2. `dest` can't contain a strict path prefix of `src`. More generally,
321
+ /// a directory can't be made a subdirectory of itself.
322
+ /// 3. If `dest` already exists and it's a file, `src` must also be a file.
323
+ /// `dest` is then replaced by `src`.
324
+ /// 4. All components of `dest` must exist, except for the last.
325
+ /// 5. If `dest` already exists and it's a directory, `src` must also be a
326
+ /// directory and `dest` must be empty. `dest` is then replaced by `src`
327
+ /// and its contents.
328
+ ///
329
+ /// Leases are used to guarantee the pre-condition checks and the rename
330
+ /// operation are atomic: other clients can't invalidate the pre-condition in
331
+ /// the time between the checks and the actual rename operation.
332
+ ///
333
+ /// This is possible because Move() is only support on storage accounts with
334
+ /// Hierarchical Namespace Support enabled.
335
+ ///
336
+ /// ## Limitations
337
+ ///
338
+ /// - Moves are not supported on storage accounts without
339
+ /// Hierarchical Namespace support enabled
340
+ /// - Moves across different containers are not supported
341
+ /// - Moving a path of the form `/container` is not supported as it would
342
+ /// require moving all the files in a container to another container.
343
+ /// The only exception is a `Move("/container_a", "/container_b")` where
344
+ /// both containers are empty or `container_b` doesn't even exist.
345
+ /// The atomicity of the emptiness checks followed by the renaming operation
346
+ /// is guaranteed by the use of leases.
347
+ Status Move(const std::string& src, const std::string& dest) override;
348
+
349
+ Status CopyFile(const std::string& src, const std::string& dest) override;
350
+
351
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
352
+ const std::string& path) override;
353
+
354
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(const FileInfo& info) override;
355
+
356
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
357
+ const std::string& path) override;
358
+
359
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
360
+ const FileInfo& info) override;
361
+
362
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
363
+ const std::string& path,
364
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
365
+
366
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
367
+ const std::string& path,
368
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
369
+
370
+ Result<std::string> PathFromUri(const std::string& uri_string) const override;
371
+ };
372
+
373
+ } // namespace arrow::fs
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/filesystem.h ADDED
@@ -0,0 +1,723 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <chrono>
21
+ #include <cstdint>
22
+ #include <functional>
23
+ #include <iosfwd>
24
+ #include <memory>
25
+ #include <string>
26
+ #include <utility>
27
+ #include <vector>
28
+
29
+ #include "arrow/filesystem/type_fwd.h"
30
+ #include "arrow/io/interfaces.h"
31
+ #include "arrow/type_fwd.h"
32
+ #include "arrow/util/compare.h"
33
+ #include "arrow/util/macros.h"
34
+ #include "arrow/util/type_fwd.h"
35
+ #include "arrow/util/visibility.h"
36
+ #include "arrow/util/windows_fixup.h"
37
+
38
+ namespace arrow {
39
+ namespace fs {
40
+
41
+ using arrow::util::Uri;
42
+
43
+ // A system clock time point expressed as a 64-bit (or more) number of
44
+ // nanoseconds since the epoch.
45
+ using TimePoint =
46
+ std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>;
47
+
48
+ ARROW_EXPORT std::string ToString(FileType);
49
+
50
+ ARROW_EXPORT std::ostream& operator<<(std::ostream& os, FileType);
51
+
52
+ static const int64_t kNoSize = -1;
53
+ static const TimePoint kNoTime = TimePoint(TimePoint::duration(-1));
54
+
55
+ /// \brief FileSystem entry info
56
+ struct ARROW_EXPORT FileInfo : public util::EqualityComparable<FileInfo> {
57
+ FileInfo() = default;
58
+ FileInfo(FileInfo&&) = default;
59
+ FileInfo& operator=(FileInfo&&) = default;
60
+ FileInfo(const FileInfo&) = default;
61
+ FileInfo& operator=(const FileInfo&) = default;
62
+
63
+ explicit FileInfo(std::string path, FileType type = FileType::Unknown)
64
+ : path_(std::move(path)), type_(type) {}
65
+
66
+ /// The file type
67
+ FileType type() const { return type_; }
68
+ void set_type(FileType type) { type_ = type; }
69
+
70
+ /// The full file path in the filesystem
71
+ const std::string& path() const { return path_; }
72
+ void set_path(std::string path) { path_ = std::move(path); }
73
+
74
+ /// The file base name (component after the last directory separator)
75
+ std::string base_name() const;
76
+
77
+ // The directory base name (component before the file base name).
78
+ std::string dir_name() const;
79
+
80
+ /// The size in bytes, if available
81
+ ///
82
+ /// Only regular files are guaranteed to have a size.
83
+ int64_t size() const { return size_; }
84
+ void set_size(int64_t size) { size_ = size; }
85
+
86
+ /// The file extension (excluding the dot)
87
+ std::string extension() const;
88
+
89
+ /// The time of last modification, if available
90
+ TimePoint mtime() const { return mtime_; }
91
+ void set_mtime(TimePoint mtime) { mtime_ = mtime; }
92
+
93
+ bool IsFile() const { return type_ == FileType::File; }
94
+ bool IsDirectory() const { return type_ == FileType::Directory; }
95
+
96
+ bool Equals(const FileInfo& other) const {
97
+ return type() == other.type() && path() == other.path() && size() == other.size() &&
98
+ mtime() == other.mtime();
99
+ }
100
+
101
+ std::string ToString() const;
102
+
103
+ /// Function object implementing less-than comparison and hashing by
104
+ /// path, to support sorting infos, using them as keys, and other
105
+ /// interactions with the STL.
106
+ struct ByPath {
107
+ bool operator()(const FileInfo& l, const FileInfo& r) const {
108
+ return l.path() < r.path();
109
+ }
110
+
111
+ size_t operator()(const FileInfo& i) const {
112
+ return std::hash<std::string>{}(i.path());
113
+ }
114
+ };
115
+
116
+ protected:
117
+ std::string path_;
118
+ FileType type_ = FileType::Unknown;
119
+ int64_t size_ = kNoSize;
120
+ TimePoint mtime_ = kNoTime;
121
+ };
122
+
123
+ ARROW_EXPORT std::ostream& operator<<(std::ostream& os, const FileInfo&);
124
+
125
+ /// \brief File selector for filesystem APIs
126
+ struct ARROW_EXPORT FileSelector {
127
+ /// The directory in which to select files.
128
+ /// If the path exists but doesn't point to a directory, this should be an error.
129
+ std::string base_dir;
130
+ /// The behavior if `base_dir` isn't found in the filesystem. If false,
131
+ /// an error is returned. If true, an empty selection is returned.
132
+ bool allow_not_found;
133
+ /// Whether to recurse into subdirectories.
134
+ bool recursive;
135
+ /// The maximum number of subdirectories to recurse into.
136
+ int32_t max_recursion;
137
+
138
+ FileSelector() : allow_not_found(false), recursive(false), max_recursion(INT32_MAX) {}
139
+ };
140
+
141
+ /// \brief FileSystem, path pair
142
+ struct ARROW_EXPORT FileLocator {
143
+ std::shared_ptr<FileSystem> filesystem;
144
+ std::string path;
145
+ };
146
+
147
+ using FileInfoVector = std::vector<FileInfo>;
148
+ using FileInfoGenerator = std::function<Future<FileInfoVector>()>;
149
+
150
+ } // namespace fs
151
+
152
+ template <>
153
+ struct IterationTraits<fs::FileInfoVector> {
154
+ static fs::FileInfoVector End() { return {}; }
155
+ static bool IsEnd(const fs::FileInfoVector& val) { return val.empty(); }
156
+ };
157
+
158
+ namespace fs {
159
+
160
+ /// \brief Abstract file system API
161
+ class ARROW_EXPORT FileSystem
162
+ /// \cond false
163
+ : public std::enable_shared_from_this<FileSystem>
164
+ /// \endcond
165
+ { // NOLINT
166
+ public:
167
+ virtual ~FileSystem();
168
+
169
+ virtual std::string type_name() const = 0;
170
+
171
+ /// EXPERIMENTAL: The IOContext associated with this filesystem.
172
+ const io::IOContext& io_context() const { return io_context_; }
173
+
174
+ /// Normalize path for the given filesystem
175
+ ///
176
+ /// The default implementation of this method is a no-op, but subclasses
177
+ /// may allow normalizing irregular path forms (such as Windows local paths).
178
+ virtual Result<std::string> NormalizePath(std::string path);
179
+
180
+ /// \brief Ensure a URI (or path) is compatible with the given filesystem and return the
181
+ /// path
182
+ ///
183
+ /// \param uri_string A URI representing a resource in the given filesystem.
184
+ ///
185
+ /// This method will check to ensure the given filesystem is compatible with the
186
+ /// URI. This can be useful when the user provides both a URI and a filesystem or
187
+ /// when a user provides multiple URIs that should be compatible with the same
188
+ /// filesystem.
189
+ ///
190
+ /// uri_string can be an absolute path instead of a URI. In that case it will ensure
191
+ /// the filesystem (if supplied) is the local filesystem (or some custom filesystem that
192
+ /// is capable of reading local paths) and will normalize the path's file separators.
193
+ ///
194
+ /// Note, this method only checks to ensure the URI scheme is valid. It will not detect
195
+ /// inconsistencies like a mismatching region or endpoint override.
196
+ ///
197
+ /// \return The path inside the filesystem that is indicated by the URI.
198
+ virtual Result<std::string> PathFromUri(const std::string& uri_string) const;
199
+
200
+ /// \brief Make a URI from which FileSystemFromUri produces an equivalent filesystem
201
+ /// \param path The path component to use in the resulting URI. Must be absolute.
202
+ /// \return A URI string, or an error if an equivalent URI cannot be produced
203
+ virtual Result<std::string> MakeUri(std::string path) const;
204
+
205
+ virtual bool Equals(const FileSystem& other) const = 0;
206
+
207
+ virtual bool Equals(const std::shared_ptr<FileSystem>& other) const {
208
+ return Equals(*other);
209
+ }
210
+
211
+ /// Get info for the given target.
212
+ ///
213
+ /// Any symlink is automatically dereferenced, recursively.
214
+ /// A nonexistent or unreachable file returns an Ok status and
215
+ /// has a FileType of value NotFound. An error status indicates
216
+ /// a truly exceptional condition (low-level I/O error, etc.).
217
+ virtual Result<FileInfo> GetFileInfo(const std::string& path) = 0;
218
+ /// Same, for many targets at once.
219
+ virtual Result<FileInfoVector> GetFileInfo(const std::vector<std::string>& paths);
220
+ /// Same, according to a selector.
221
+ ///
222
+ /// The selector's base directory will not be part of the results, even if
223
+ /// it exists.
224
+ /// If it doesn't exist, see `FileSelector::allow_not_found`.
225
+ virtual Result<FileInfoVector> GetFileInfo(const FileSelector& select) = 0;
226
+
227
+ /// Async version of GetFileInfo
228
+ virtual Future<FileInfoVector> GetFileInfoAsync(const std::vector<std::string>& paths);
229
+
230
+ /// Streaming async version of GetFileInfo
231
+ ///
232
+ /// The returned generator is not async-reentrant, i.e. you need to wait for
233
+ /// the returned future to complete before calling the generator again.
234
+ virtual FileInfoGenerator GetFileInfoGenerator(const FileSelector& select);
235
+
236
+ /// Create a directory and subdirectories.
237
+ ///
238
+ /// This function succeeds if the directory already exists.
239
+ virtual Status CreateDir(const std::string& path, bool recursive) = 0;
240
+ Status CreateDir(const std::string& path) { return CreateDir(path, true); }
241
+
242
+ /// Delete a directory and its contents, recursively.
243
+ virtual Status DeleteDir(const std::string& path) = 0;
244
+
245
+ /// Delete a directory's contents, recursively.
246
+ ///
247
+ /// Like DeleteDir, but doesn't delete the directory itself.
248
+ /// Passing an empty path ("" or "/") is disallowed, see DeleteRootDirContents.
249
+ virtual Status DeleteDirContents(const std::string& path, bool missing_dir_ok) = 0;
250
+ Status DeleteDirContents(const std::string& path) {
251
+ return DeleteDirContents(path, false);
252
+ }
253
+
254
+ /// Async version of DeleteDirContents.
255
+ virtual Future<> DeleteDirContentsAsync(const std::string& path, bool missing_dir_ok);
256
+
257
+ /// Async version of DeleteDirContents.
258
+ ///
259
+ /// This overload allows missing directories.
260
+ Future<> DeleteDirContentsAsync(const std::string& path);
261
+
262
+ /// EXPERIMENTAL: Delete the root directory's contents, recursively.
263
+ ///
264
+ /// Implementations may decide to raise an error if this operation is
265
+ /// too dangerous.
266
+ // NOTE: may decide to remove this if it's deemed not useful
267
+ virtual Status DeleteRootDirContents() = 0;
268
+
269
+ /// Delete a file.
270
+ virtual Status DeleteFile(const std::string& path) = 0;
271
+ /// Delete many files.
272
+ ///
273
+ /// The default implementation issues individual delete operations in sequence.
274
+ virtual Status DeleteFiles(const std::vector<std::string>& paths);
275
+
276
+ /// Move / rename a file or directory.
277
+ ///
278
+ /// If the destination exists:
279
+ /// - if it is a non-empty directory, an error is returned
280
+ /// - otherwise, if it has the same type as the source, it is replaced
281
+ /// - otherwise, behavior is unspecified (implementation-dependent).
282
+ virtual Status Move(const std::string& src, const std::string& dest) = 0;
283
+
284
+ /// Copy a file.
285
+ ///
286
+ /// If the destination exists and is a directory, an error is returned.
287
+ /// Otherwise, it is replaced.
288
+ virtual Status CopyFile(const std::string& src, const std::string& dest) = 0;
289
+
290
+ /// Open an input stream for sequential reading.
291
+ virtual Result<std::shared_ptr<io::InputStream>> OpenInputStream(
292
+ const std::string& path) = 0;
293
+
294
+ /// Open an input stream for sequential reading.
295
+ ///
296
+ /// This override assumes the given FileInfo validly represents the file's
297
+ /// characteristics, and may optimize access depending on them (for example
298
+ /// avoid querying the file size or its existence).
299
+ virtual Result<std::shared_ptr<io::InputStream>> OpenInputStream(const FileInfo& info);
300
+
301
+ /// Open an input file for random access reading.
302
+ virtual Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
303
+ const std::string& path) = 0;
304
+
305
+ /// Open an input file for random access reading.
306
+ ///
307
+ /// This override assumes the given FileInfo validly represents the file's
308
+ /// characteristics, and may optimize access depending on them (for example
309
+ /// avoid querying the file size or its existence).
310
+ virtual Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
311
+ const FileInfo& info);
312
+
313
+ /// Async version of OpenInputStream
314
+ virtual Future<std::shared_ptr<io::InputStream>> OpenInputStreamAsync(
315
+ const std::string& path);
316
+
317
+ /// Async version of OpenInputStream
318
+ virtual Future<std::shared_ptr<io::InputStream>> OpenInputStreamAsync(
319
+ const FileInfo& info);
320
+
321
+ /// Async version of OpenInputFile
322
+ virtual Future<std::shared_ptr<io::RandomAccessFile>> OpenInputFileAsync(
323
+ const std::string& path);
324
+
325
+ /// Async version of OpenInputFile
326
+ virtual Future<std::shared_ptr<io::RandomAccessFile>> OpenInputFileAsync(
327
+ const FileInfo& info);
328
+
329
+ /// Open an output stream for sequential writing.
330
+ ///
331
+ /// If the target already exists, existing data is truncated.
332
+ virtual Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
333
+ const std::string& path,
334
+ const std::shared_ptr<const KeyValueMetadata>& metadata) = 0;
335
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(const std::string& path);
336
+
337
+ /// Open an output stream for appending.
338
+ ///
339
+ /// If the target doesn't exist, a new empty file is created.
340
+ ///
341
+ /// Note: some filesystem implementations do not support efficient appending
342
+ /// to an existing file, in which case this method will return NotImplemented.
343
+ /// Consider writing to multiple files (using e.g. the dataset layer) instead.
344
+ virtual Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
345
+ const std::string& path,
346
+ const std::shared_ptr<const KeyValueMetadata>& metadata) = 0;
347
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(const std::string& path);
348
+
349
+ protected:
350
+ explicit FileSystem(io::IOContext io_context = io::default_io_context())
351
+ : io_context_(std::move(io_context)) {}
352
+
353
+ io::IOContext io_context_;
354
+ // Whether metadata operations (such as GetFileInfo or OpenInputStream)
355
+ // are cheap enough that the default async variants don't bother with
356
+ // a thread pool.
357
+ bool default_async_is_sync_ = true;
358
+ };
359
+
360
+ struct FileSystemFactory {
361
+ std::function<Result<std::shared_ptr<FileSystem>>(
362
+ const Uri& uri, const io::IOContext& io_context, std::string* out_path)>
363
+ function;
364
+ std::string_view file;
365
+ int line;
366
+
367
+ bool operator==(const FileSystemFactory& other) const {
368
+ // In the case where libarrow is linked statically both to the executable and to a
369
+ // dynamically loaded filesystem implementation library, the library contains a
370
+ // duplicate definition of the registry and duplicate definitions of any
371
+ // FileSystemRegistrars which are statically linked to libarrow. When retrieving
372
+ // factories from the filesystem implementation library, we use the file and line
373
+ // of the registrar's definition to determine equivalence of the duplicate factories.
374
+ return file == other.file && line == other.line;
375
+ }
376
+ };
377
+
378
+ /// \brief A FileSystem implementation that delegates to another
379
+ /// implementation after prepending a fixed base path.
380
+ ///
381
+ /// This is useful to expose a logical view of a subtree of a filesystem,
382
+ /// for example a directory in a LocalFileSystem.
383
+ /// This works on abstract paths, i.e. paths using forward slashes and
384
+ /// and a single root "/". Windows paths are not guaranteed to work.
385
+ /// This makes no security guarantee. For example, symlinks may allow to
386
+ /// "escape" the subtree and access other parts of the underlying filesystem.
387
+ class ARROW_EXPORT SubTreeFileSystem : public FileSystem {
388
+ public:
389
+ // This constructor may abort if base_path is invalid.
390
+ explicit SubTreeFileSystem(const std::string& base_path,
391
+ std::shared_ptr<FileSystem> base_fs);
392
+ ~SubTreeFileSystem() override;
393
+
394
+ std::string type_name() const override { return "subtree"; }
395
+ std::string base_path() const { return base_path_; }
396
+ std::shared_ptr<FileSystem> base_fs() const { return base_fs_; }
397
+
398
+ Result<std::string> NormalizePath(std::string path) override;
399
+ Result<std::string> PathFromUri(const std::string& uri_string) const override;
400
+
401
+ bool Equals(const FileSystem& other) const override;
402
+
403
+ /// \cond FALSE
404
+ using FileSystem::CreateDir;
405
+ using FileSystem::DeleteDirContents;
406
+ using FileSystem::GetFileInfo;
407
+ using FileSystem::OpenAppendStream;
408
+ using FileSystem::OpenOutputStream;
409
+ /// \endcond
410
+
411
+ Result<FileInfo> GetFileInfo(const std::string& path) override;
412
+ Result<FileInfoVector> GetFileInfo(const FileSelector& select) override;
413
+
414
+ FileInfoGenerator GetFileInfoGenerator(const FileSelector& select) override;
415
+
416
+ Status CreateDir(const std::string& path, bool recursive) override;
417
+
418
+ Status DeleteDir(const std::string& path) override;
419
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok) override;
420
+ Status DeleteRootDirContents() override;
421
+
422
+ Status DeleteFile(const std::string& path) override;
423
+
424
+ Status Move(const std::string& src, const std::string& dest) override;
425
+
426
+ Status CopyFile(const std::string& src, const std::string& dest) override;
427
+
428
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
429
+ const std::string& path) override;
430
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(const FileInfo& info) override;
431
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
432
+ const std::string& path) override;
433
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
434
+ const FileInfo& info) override;
435
+
436
+ Future<std::shared_ptr<io::InputStream>> OpenInputStreamAsync(
437
+ const std::string& path) override;
438
+ Future<std::shared_ptr<io::InputStream>> OpenInputStreamAsync(
439
+ const FileInfo& info) override;
440
+ Future<std::shared_ptr<io::RandomAccessFile>> OpenInputFileAsync(
441
+ const std::string& path) override;
442
+ Future<std::shared_ptr<io::RandomAccessFile>> OpenInputFileAsync(
443
+ const FileInfo& info) override;
444
+
445
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
446
+ const std::string& path,
447
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
448
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
449
+ const std::string& path,
450
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
451
+
452
+ protected:
453
+ SubTreeFileSystem() = default;
454
+
455
+ const std::string base_path_;
456
+ std::shared_ptr<FileSystem> base_fs_;
457
+
458
+ Result<std::string> PrependBase(const std::string& s) const;
459
+ Result<std::string> PrependBaseNonEmpty(const std::string& s) const;
460
+ Result<std::string> StripBase(const std::string& s) const;
461
+ Status FixInfo(FileInfo* info) const;
462
+
463
+ static Result<std::string> NormalizeBasePath(
464
+ std::string base_path, const std::shared_ptr<FileSystem>& base_fs);
465
+ };
466
+
467
+ /// \brief A FileSystem implementation that delegates to another
468
+ /// implementation but inserts latencies at various points.
469
+ class ARROW_EXPORT SlowFileSystem : public FileSystem {
470
+ public:
471
+ SlowFileSystem(std::shared_ptr<FileSystem> base_fs,
472
+ std::shared_ptr<io::LatencyGenerator> latencies);
473
+ SlowFileSystem(std::shared_ptr<FileSystem> base_fs, double average_latency);
474
+ SlowFileSystem(std::shared_ptr<FileSystem> base_fs, double average_latency,
475
+ int32_t seed);
476
+
477
+ std::string type_name() const override { return "slow"; }
478
+ bool Equals(const FileSystem& other) const override;
479
+ Result<std::string> PathFromUri(const std::string& uri_string) const override;
480
+
481
+ /// \cond FALSE
482
+ using FileSystem::CreateDir;
483
+ using FileSystem::DeleteDirContents;
484
+ using FileSystem::GetFileInfo;
485
+ using FileSystem::OpenAppendStream;
486
+ using FileSystem::OpenOutputStream;
487
+ /// \endcond
488
+
489
+ Result<FileInfo> GetFileInfo(const std::string& path) override;
490
+ Result<FileInfoVector> GetFileInfo(const FileSelector& select) override;
491
+
492
+ Status CreateDir(const std::string& path, bool recursive) override;
493
+
494
+ Status DeleteDir(const std::string& path) override;
495
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok) override;
496
+ Status DeleteRootDirContents() override;
497
+
498
+ Status DeleteFile(const std::string& path) override;
499
+
500
+ Status Move(const std::string& src, const std::string& dest) override;
501
+
502
+ Status CopyFile(const std::string& src, const std::string& dest) override;
503
+
504
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
505
+ const std::string& path) override;
506
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(const FileInfo& info) override;
507
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
508
+ const std::string& path) override;
509
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
510
+ const FileInfo& info) override;
511
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
512
+ const std::string& path,
513
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
514
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
515
+ const std::string& path,
516
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
517
+
518
+ protected:
519
+ std::shared_ptr<FileSystem> base_fs_;
520
+ std::shared_ptr<io::LatencyGenerator> latencies_;
521
+ };
522
+
523
+ /// \brief Ensure all registered filesystem implementations are finalized.
524
+ ///
525
+ /// Individual finalizers may wait for concurrent calls to finish so as to avoid
526
+ /// race conditions. After this function has been called, all filesystem APIs
527
+ /// will fail with an error.
528
+ ///
529
+ /// The user is responsible for synchronization of calls to this function.
530
+ void EnsureFinalized();
531
+
532
+ /// \defgroup filesystem-factories Functions for creating FileSystem instances
533
+ ///
534
+ /// @{
535
+
536
+ /// \brief Create a new FileSystem by URI
537
+ ///
538
+ /// Recognized schemes are "file", "mock", "hdfs", "viewfs", "s3",
539
+ /// "gs" and "gcs".
540
+ ///
541
+ /// Support for other schemes can be added using RegisterFileSystemFactory.
542
+ ///
543
+ /// \param[in] uri a URI-based path, ex: file:///some/local/path
544
+ /// \param[out] out_path (optional) Path inside the filesystem.
545
+ /// \return out_fs FileSystem instance.
546
+ ARROW_EXPORT
547
+ Result<std::shared_ptr<FileSystem>> FileSystemFromUri(const std::string& uri,
548
+ std::string* out_path = NULLPTR);
549
+
550
+ /// \brief Create a new FileSystem by URI with a custom IO context
551
+ ///
552
+ /// Recognized schemes are "file", "mock", "hdfs", "viewfs", "s3",
553
+ /// "gs" and "gcs".
554
+ ///
555
+ /// Support for other schemes can be added using RegisterFileSystemFactory.
556
+ ///
557
+ /// \param[in] uri a URI-based path, ex: file:///some/local/path
558
+ /// \param[in] io_context an IOContext which will be associated with the filesystem
559
+ /// \param[out] out_path (optional) Path inside the filesystem.
560
+ /// \return out_fs FileSystem instance.
561
+ ARROW_EXPORT
562
+ Result<std::shared_ptr<FileSystem>> FileSystemFromUri(const std::string& uri,
563
+ const io::IOContext& io_context,
564
+ std::string* out_path = NULLPTR);
565
+
566
+ /// \brief Create a new FileSystem by URI
567
+ ///
568
+ /// Support for other schemes can be added using RegisterFileSystemFactory.
569
+ ///
570
+ /// Same as FileSystemFromUri, but in addition also recognize non-URIs
571
+ /// and treat them as local filesystem paths. Only absolute local filesystem
572
+ /// paths are allowed.
573
+ ARROW_EXPORT
574
+ Result<std::shared_ptr<FileSystem>> FileSystemFromUriOrPath(
575
+ const std::string& uri, std::string* out_path = NULLPTR);
576
+
577
+ /// \brief Create a new FileSystem by URI with a custom IO context
578
+ ///
579
+ /// Support for other schemes can be added using RegisterFileSystemFactory.
580
+ ///
581
+ /// Same as FileSystemFromUri, but in addition also recognize non-URIs
582
+ /// and treat them as local filesystem paths. Only absolute local filesystem
583
+ /// paths are allowed.
584
+ ARROW_EXPORT
585
+ Result<std::shared_ptr<FileSystem>> FileSystemFromUriOrPath(
586
+ const std::string& uri, const io::IOContext& io_context,
587
+ std::string* out_path = NULLPTR);
588
+
589
+ /// @}
590
+
591
+ /// \defgroup filesystem-factory-registration Helpers for FileSystem registration
592
+ ///
593
+ /// @{
594
+
595
+ /// \brief Register a FileSystem factory
596
+ ///
597
+ /// Support for custom URI schemes can be added by registering a factory
598
+ /// for the corresponding FileSystem.
599
+ ///
600
+ /// \param[in] scheme a Uri scheme which the factory will handle.
601
+ /// If a factory has already been registered for a scheme,
602
+ /// the new factory will be ignored.
603
+ /// \param[in] factory a function which can produce a FileSystem for Uris which match
604
+ /// scheme.
605
+ /// \param[in] finalizer a function which must be called to finalize the factory before
606
+ /// the process exits, or nullptr if no finalization is necessary.
607
+ /// \return raises KeyError if a name collision occurs.
608
+ ARROW_EXPORT Status RegisterFileSystemFactory(std::string scheme,
609
+ FileSystemFactory factory,
610
+ std::function<void()> finalizer = {});
611
+
612
+ /// \brief Register FileSystem factories from a shared library
613
+ ///
614
+ /// FileSystem implementations may be housed in separate shared libraries and only
615
+ /// registered when the shared library is explicitly loaded. FileSystemRegistrar is
616
+ /// provided to simplify definition of such libraries: each instance at namespace scope
617
+ /// in the library will register a factory for a scheme. Any library which uses
618
+ /// FileSystemRegistrars and which must be dynamically loaded should be loaded using
619
+ /// LoadFileSystemFactories(), which will additionally merge registries are if necessary
620
+ /// (static linkage to arrow can produce isolated registries).
621
+ ARROW_EXPORT Status LoadFileSystemFactories(const char* libpath);
622
+
623
+ struct ARROW_EXPORT FileSystemRegistrar {
624
+ /// \brief Register a FileSystem factory at load time
625
+ ///
626
+ /// Support for custom URI schemes can be added by registering a factory for the
627
+ /// corresponding FileSystem. An instance of this helper can be defined at namespace
628
+ /// scope to cause the factory to be registered at load time.
629
+ ///
630
+ /// Global constructors will finish execution before main() starts if the registrar is
631
+ /// linked into the same binary as main(), or before dlopen()/LoadLibrary() returns if
632
+ /// the library in which the registrar is defined is dynamically loaded.
633
+ ///
634
+ /// \code
635
+ /// FileSystemRegistrar kSlowFileSystemModule{
636
+ /// "slowfile",
637
+ /// [](const Uri& uri, const io::IOContext& io_context, std::string* out_path)
638
+ /// ->Result<std::shared_ptr<FileSystem>> {
639
+ /// auto local_uri = "file" + uri.ToString().substr(uri.scheme().size());
640
+ /// ARROW_ASSIGN_OR_RAISE(auto base_fs,
641
+ /// FileSystemFromUri(local_uri, io_context, out_path));
642
+ /// double average_latency = 1;
643
+ /// int32_t seed = 0xDEADBEEF;
644
+ /// ARROW_ASSIGN_OR_RAISE(auto params, uri.query_item());
645
+ /// for (const auto& [key, value] : params) {
646
+ /// if (key == "average_latency") {
647
+ /// average_latency = std::stod(value);
648
+ /// }
649
+ /// if (key == "seed") {
650
+ /// seed = std::stoi(value, nullptr, /*base=*/16);
651
+ /// }
652
+ /// }
653
+ /// return std::make_shared<SlowFileSystem>(base_fs, average_latency, seed);
654
+ /// }));
655
+ /// \endcode
656
+ ///
657
+ /// \param[in] scheme a Uri scheme which the factory will handle.
658
+ /// If a factory has already been registered for a scheme, the
659
+ /// new factory will be ignored.
660
+ /// \param[in] factory a function which can produce a FileSystem for Uris which match
661
+ /// scheme.
662
+ /// \param[in] finalizer a function which must be called to finalize the factory before
663
+ /// the process exits, or nullptr if no finalization is necessary.
664
+ FileSystemRegistrar(std::string scheme, FileSystemFactory factory,
665
+ std::function<void()> finalizer = {});
666
+ };
667
+
668
+ #define ARROW_REGISTER_FILESYSTEM(scheme, factory_function, finalizer) \
669
+ ::arrow::fs::FileSystemRegistrar { \
670
+ scheme, ::arrow::fs::FileSystemFactory{factory_function, __FILE__, __LINE__}, \
671
+ finalizer \
672
+ }
673
+
674
+ /// @}
675
+
676
+ namespace internal {
677
+ ARROW_EXPORT void* GetFileSystemRegistry();
678
+ } // namespace internal
679
+
680
+ /// \brief Copy files, including from one FileSystem to another
681
+ ///
682
+ /// If a source and destination are resident in the same FileSystem FileSystem::CopyFile
683
+ /// will be used, otherwise the file will be opened as a stream in both FileSystems and
684
+ /// chunks copied from the source to the destination. No directories will be created.
685
+ ARROW_EXPORT
686
+ Status CopyFiles(const std::vector<FileLocator>& sources,
687
+ const std::vector<FileLocator>& destinations,
688
+ const io::IOContext& io_context = io::default_io_context(),
689
+ int64_t chunk_size = 1024 * 1024, bool use_threads = true);
690
+
691
+ /// \brief Copy selected files, including from one FileSystem to another
692
+ ///
693
+ /// Directories will be created under the destination base directory as needed.
694
+ ARROW_EXPORT
695
+ Status CopyFiles(const std::shared_ptr<FileSystem>& source_fs,
696
+ const FileSelector& source_sel,
697
+ const std::shared_ptr<FileSystem>& destination_fs,
698
+ const std::string& destination_base_dir,
699
+ const io::IOContext& io_context = io::default_io_context(),
700
+ int64_t chunk_size = 1024 * 1024, bool use_threads = true);
701
+
702
+ struct FileSystemGlobalOptions {
703
+ /// Path to a single PEM file holding all TLS CA certificates
704
+ ///
705
+ /// If empty, the underlying TLS library's defaults will be used.
706
+ std::string tls_ca_file_path;
707
+
708
+ /// Path to a directory holding TLS CA certificates in individual PEM files
709
+ /// named along the OpenSSL "hashed" format.
710
+ ///
711
+ /// If empty, the underlying TLS library's defaults will be used.
712
+ std::string tls_ca_dir_path;
713
+ };
714
+
715
+ /// EXPERIMENTAL: optional global initialization routine
716
+ ///
717
+ /// This is for environments (such as manylinux) where the path
718
+ /// to TLS CA certificates needs to be configured at runtime.
719
+ ARROW_EXPORT
720
+ Status Initialize(const FileSystemGlobalOptions& options);
721
+
722
+ } // namespace fs
723
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/filesystem_library.h ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/filesystem/filesystem.h"
21
+
22
+ namespace arrow::fs {
23
+ extern "C" {
24
+
25
+ // ARROW_FORCE_EXPORT ensures this function's visibility is
26
+ // _declspec(dllexport)/[[gnu::visibility("default")]] even when
27
+ // this header is #included by a non-arrow source, as in a third
28
+ // party filesystem implementation.
29
+ ARROW_FORCE_EXPORT void* arrow_filesystem_get_registry();
30
+
31
+ void* arrow_filesystem_get_registry() {
32
+ // In the case where libarrow is linked statically both to the executable and to a
33
+ // dynamically loaded filesystem implementation library, the library contains a
34
+ // duplicate definition of the registry into which the library's instances of
35
+ // FileSystemRegistrar insert their factories. This function is made accessible to
36
+ // dlsym/GetProcAddress to enable detection of such duplicate registries and merging
37
+ // into the registry accessible to the executable.
38
+ return internal::GetFileSystemRegistry();
39
+ }
40
+ }
41
+ } // namespace arrow::fs
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/gcsfs.h ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <optional>
22
+ #include <string>
23
+ #include <vector>
24
+
25
+ #include "arrow/filesystem/filesystem.h"
26
+ #include "arrow/util/uri.h"
27
+
28
+ namespace arrow {
29
+ namespace fs {
30
+ namespace internal {
31
+
32
+ // Opaque wrapper for GCS's library credentials to avoid exposing in Arrow headers.
33
+ struct GcsCredentialsHolder;
34
+
35
+ } // namespace internal
36
+
37
+ class GcsFileSystem;
38
+
39
+ /// \brief Container for GCS Credentials and information necessary to recreate them.
40
+ class ARROW_EXPORT GcsCredentials {
41
+ public:
42
+ bool Equals(const GcsCredentials& other) const;
43
+ bool anonymous() const { return anonymous_; }
44
+ const std::string& access_token() const { return access_token_; }
45
+ TimePoint expiration() const { return expiration_; }
46
+ const std::string& target_service_account() const { return target_service_account_; }
47
+ const std::string& json_credentials() const { return json_credentials_; }
48
+ const std::shared_ptr<internal::GcsCredentialsHolder>& holder() const {
49
+ return holder_;
50
+ }
51
+
52
+ private:
53
+ GcsCredentials() = default;
54
+ bool anonymous_ = false;
55
+ std::string access_token_;
56
+ TimePoint expiration_;
57
+ std::string target_service_account_;
58
+ std::string json_credentials_;
59
+ std::shared_ptr<internal::GcsCredentialsHolder> holder_;
60
+ friend class GcsFileSystem;
61
+ friend struct GcsOptions;
62
+ };
63
+
64
+ /// Options for the GcsFileSystem implementation.
65
+ struct ARROW_EXPORT GcsOptions {
66
+ /// \brief Equivalent to GcsOptions::Defaults().
67
+ GcsOptions();
68
+ GcsCredentials credentials;
69
+
70
+ std::string endpoint_override;
71
+ std::string scheme;
72
+ /// \brief Location to use for creating buckets.
73
+ std::string default_bucket_location;
74
+
75
+ /// \brief If set used to control total time allowed for retrying underlying
76
+ /// errors.
77
+ ///
78
+ /// The default policy is to retry for up to 15 minutes.
79
+ std::optional<double> retry_limit_seconds;
80
+
81
+ /// \brief Default metadata for OpenOutputStream.
82
+ ///
83
+ /// This will be ignored if non-empty metadata is passed to OpenOutputStream.
84
+ std::shared_ptr<const KeyValueMetadata> default_metadata;
85
+
86
+ /// \brief The project to use for creating buckets.
87
+ ///
88
+ /// If not set, the library uses the GOOGLE_CLOUD_PROJECT environment
89
+ /// variable. Most I/O operations do not need a project id, only applications
90
+ /// that create new buckets need a project id.
91
+ std::optional<std::string> project_id;
92
+
93
+ bool Equals(const GcsOptions& other) const;
94
+
95
+ /// \brief Initialize with Google Default Credentials
96
+ ///
97
+ /// Create options configured to use [Application Default Credentials][aip/4110]. The
98
+ /// details of this mechanism are too involved to describe here, but suffice is to say
99
+ /// that applications can override any defaults using an environment variable
100
+ /// (`GOOGLE_APPLICATION_CREDENTIALS`), and that the defaults work with most Google
101
+ /// Cloud Platform deployment environments (GCE, GKE, Cloud Run, etc.), and that have
102
+ /// the same behavior as the `gcloud` CLI tool on your workstation.
103
+ ///
104
+ /// \see https://cloud.google.com/docs/authentication
105
+ ///
106
+ /// [aip/4110]: https://google.aip.dev/auth/4110
107
+ static GcsOptions Defaults();
108
+
109
+ /// \brief Initialize with anonymous credentials
110
+ static GcsOptions Anonymous();
111
+
112
+ /// \brief Initialize with access token
113
+ ///
114
+ /// These credentials are useful when using an out-of-band mechanism to fetch access
115
+ /// tokens. Note that access tokens are time limited, you will need to manually refresh
116
+ /// the tokens created by the out-of-band mechanism.
117
+ static GcsOptions FromAccessToken(const std::string& access_token,
118
+ TimePoint expiration);
119
+
120
+ /// \brief Initialize with service account impersonation
121
+ ///
122
+ /// Service account impersonation allows one principal (a user or service account) to
123
+ /// impersonate a service account. It requires that the calling principal has the
124
+ /// necessary permissions *on* the service account.
125
+ static GcsOptions FromImpersonatedServiceAccount(
126
+ const GcsCredentials& base_credentials, const std::string& target_service_account);
127
+
128
+ /// Creates service account credentials from a JSON object in string form.
129
+ ///
130
+ /// The @p json_object is expected to be in the format described by [aip/4112]. Such an
131
+ /// object contains the identity of a service account, as well as a private key that can
132
+ /// be used to sign tokens, showing the caller was holding the private key.
133
+ ///
134
+ /// In GCP one can create several "keys" for each service account, and these keys are
135
+ /// downloaded as a JSON "key file". The contents of such a file are in the format
136
+ /// required by this function. Remember that key files and their contents should be
137
+ /// treated as any other secret with security implications, think of them as passwords
138
+ /// (because they are!), don't store them or output them where unauthorized persons may
139
+ /// read them.
140
+ ///
141
+ /// Most applications should probably use default credentials, maybe pointing them to a
142
+ /// file with these contents. Using this function may be useful when the json object is
143
+ /// obtained from a Cloud Secret Manager or a similar service.
144
+ ///
145
+ /// [aip/4112]: https://google.aip.dev/auth/4112
146
+ static GcsOptions FromServiceAccountCredentials(const std::string& json_object);
147
+
148
+ /// Initialize from URIs such as "gs://bucket/object".
149
+ static Result<GcsOptions> FromUri(const arrow::util::Uri& uri, std::string* out_path);
150
+ static Result<GcsOptions> FromUri(const std::string& uri, std::string* out_path);
151
+ };
152
+
153
+ /// \brief GCS-backed FileSystem implementation.
154
+ ///
155
+ /// GCS (Google Cloud Storage - https://cloud.google.com/storage) is a scalable object
156
+ /// storage system for any amount of data. The main abstractions in GCS are buckets and
157
+ /// objects. A bucket is a namespace for objects, buckets can store any number of objects,
158
+ /// tens of millions and even billions is not uncommon. Each object contains a single
159
+ /// blob of data, up to 5TiB in size. Buckets are typically configured to keep a single
160
+ /// version of each object, but versioning can be enabled. Versioning is important because
161
+ /// objects are immutable, once created one cannot append data to the object or modify the
162
+ /// object data in any way.
163
+ ///
164
+ /// GCS buckets are in a global namespace, if a Google Cloud customer creates a bucket
165
+ /// named `foo` no other customer can create a bucket with the same name. Note that a
166
+ /// principal (a user or service account) may only list the buckets they are entitled to,
167
+ /// and then only within a project. It is not possible to list "all" the buckets.
168
+ ///
169
+ /// Within each bucket objects are in flat namespace. GCS does not have folders or
170
+ /// directories. However, following some conventions it is possible to emulate
171
+ /// directories. To this end, this class:
172
+ ///
173
+ /// - All buckets are treated as directories at the "root"
174
+ /// - Creating a root directory results in a new bucket being created, this may be slower
175
+ /// than most GCS operations.
176
+ /// - The class creates marker objects for a directory, using a metadata attribute to
177
+ /// annotate the file.
178
+ /// - GCS can list all the objects with a given prefix, this is used to emulate listing
179
+ /// of directories.
180
+ /// - In object lists GCS can summarize all the objects with a common prefix as a single
181
+ /// entry, this is used to emulate non-recursive lists. Note that GCS list time is
182
+ /// proportional to the number of objects in the prefix. Listing recursively takes
183
+ /// almost the same time as non-recursive lists.
184
+ ///
185
+ class ARROW_EXPORT GcsFileSystem : public FileSystem {
186
+ public:
187
+ ~GcsFileSystem() override = default;
188
+
189
+ std::string type_name() const override;
190
+ const GcsOptions& options() const;
191
+
192
+ bool Equals(const FileSystem& other) const override;
193
+ Result<std::string> PathFromUri(const std::string& uri_string) const override;
194
+
195
+ Result<FileInfo> GetFileInfo(const std::string& path) override;
196
+ Result<FileInfoVector> GetFileInfo(const FileSelector& select) override;
197
+
198
+ Status CreateDir(const std::string& path, bool recursive) override;
199
+
200
+ Status DeleteDir(const std::string& path) override;
201
+
202
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok = false) override;
203
+
204
+ /// This is not implemented in GcsFileSystem, as it would be too dangerous.
205
+ Status DeleteRootDirContents() override;
206
+
207
+ Status DeleteFile(const std::string& path) override;
208
+
209
+ Status Move(const std::string& src, const std::string& dest) override;
210
+
211
+ Status CopyFile(const std::string& src, const std::string& dest) override;
212
+
213
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
214
+ const std::string& path) override;
215
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(const FileInfo& info) override;
216
+
217
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
218
+ const std::string& path) override;
219
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
220
+ const FileInfo& info) override;
221
+
222
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
223
+ const std::string& path,
224
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
225
+
226
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
227
+ const std::string& path,
228
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
229
+
230
+ /// Create a GcsFileSystem instance from the given options.
231
+ static Result<std::shared_ptr<GcsFileSystem>> Make(
232
+ const GcsOptions& options, const io::IOContext& = io::default_io_context());
233
+
234
+ private:
235
+ explicit GcsFileSystem(const GcsOptions& options, const io::IOContext& io_context);
236
+
237
+ class Impl;
238
+ std::shared_ptr<Impl> impl_;
239
+ };
240
+
241
+ } // namespace fs
242
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/hdfs.h ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <string>
22
+ #include <vector>
23
+
24
+ #include "arrow/filesystem/filesystem.h"
25
+ #include "arrow/io/hdfs.h"
26
+ #include "arrow/util/uri.h"
27
+
28
+ namespace arrow::fs {
29
+
30
+ /// Options for the HDFS implementation.
31
+ struct ARROW_EXPORT HdfsOptions {
32
+ HdfsOptions() = default;
33
+ ~HdfsOptions() = default;
34
+
35
+ /// Hdfs configuration options, contains host, port, driver
36
+ io::HdfsConnectionConfig connection_config;
37
+
38
+ /// Used by Hdfs OpenWritable Interface.
39
+ int32_t buffer_size = 0;
40
+ int16_t replication = 3;
41
+ int64_t default_block_size = 0;
42
+
43
+ void ConfigureEndPoint(std::string host, int port);
44
+ void ConfigureReplication(int16_t replication);
45
+ void ConfigureUser(std::string user_name);
46
+ void ConfigureBufferSize(int32_t buffer_size);
47
+ void ConfigureBlockSize(int64_t default_block_size);
48
+ void ConfigureKerberosTicketCachePath(std::string path);
49
+ void ConfigureExtraConf(std::string key, std::string val);
50
+
51
+ bool Equals(const HdfsOptions& other) const;
52
+
53
+ static Result<HdfsOptions> FromUri(const ::arrow::util::Uri& uri);
54
+ static Result<HdfsOptions> FromUri(const std::string& uri);
55
+ };
56
+
57
+ /// HDFS-backed FileSystem implementation.
58
+ ///
59
+ /// implementation notes:
60
+ /// - This is a wrapper of arrow/io/hdfs, so we can use FileSystem API to handle hdfs.
61
+ class ARROW_EXPORT HadoopFileSystem : public FileSystem {
62
+ public:
63
+ ~HadoopFileSystem() override;
64
+
65
+ std::string type_name() const override { return "hdfs"; }
66
+ HdfsOptions options() const;
67
+ bool Equals(const FileSystem& other) const override;
68
+ Result<std::string> PathFromUri(const std::string& uri_string) const override;
69
+
70
+ /// \cond FALSE
71
+ using FileSystem::CreateDir;
72
+ using FileSystem::DeleteDirContents;
73
+ using FileSystem::GetFileInfo;
74
+ using FileSystem::OpenAppendStream;
75
+ using FileSystem::OpenOutputStream;
76
+ /// \endcond
77
+
78
+ Result<FileInfo> GetFileInfo(const std::string& path) override;
79
+ Result<std::vector<FileInfo>> GetFileInfo(const FileSelector& select) override;
80
+
81
+ Status CreateDir(const std::string& path, bool recursive) override;
82
+
83
+ Status DeleteDir(const std::string& path) override;
84
+
85
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok) override;
86
+
87
+ Status DeleteRootDirContents() override;
88
+
89
+ Status DeleteFile(const std::string& path) override;
90
+
91
+ Status Move(const std::string& src, const std::string& dest) override;
92
+
93
+ Status CopyFile(const std::string& src, const std::string& dest) override;
94
+
95
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
96
+ const std::string& path) override;
97
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
98
+ const std::string& path) override;
99
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
100
+ const std::string& path,
101
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
102
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
103
+ const std::string& path,
104
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
105
+
106
+ /// Create a HdfsFileSystem instance from the given options.
107
+ static Result<std::shared_ptr<HadoopFileSystem>> Make(
108
+ const HdfsOptions& options, const io::IOContext& = io::default_io_context());
109
+
110
+ protected:
111
+ HadoopFileSystem(const HdfsOptions& options, const io::IOContext&);
112
+
113
+ class Impl;
114
+ std::unique_ptr<Impl> impl_;
115
+ };
116
+
117
+ } // namespace arrow::fs
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/localfs.h ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <string>
22
+ #include <vector>
23
+
24
+ #include "arrow/filesystem/filesystem.h"
25
+
26
+ namespace arrow {
27
+ namespace internal {
28
+
29
+ class Uri;
30
+
31
+ }
32
+
33
+ namespace fs {
34
+
35
+ /// Options for the LocalFileSystem implementation.
36
+ struct ARROW_EXPORT LocalFileSystemOptions {
37
+ static constexpr int32_t kDefaultDirectoryReadahead = 16;
38
+ static constexpr int32_t kDefaultFileInfoBatchSize = 1000;
39
+
40
+ /// Whether OpenInputStream and OpenInputFile return a mmap'ed file,
41
+ /// or a regular one.
42
+ bool use_mmap = false;
43
+
44
+ /// Options related to `GetFileInfoGenerator` interface.
45
+
46
+ /// EXPERIMENTAL: The maximum number of directories processed in parallel
47
+ /// by `GetFileInfoGenerator`.
48
+ int32_t directory_readahead = kDefaultDirectoryReadahead;
49
+
50
+ /// EXPERIMENTAL: The maximum number of entries aggregated into each
51
+ /// FileInfoVector chunk by `GetFileInfoGenerator`.
52
+ ///
53
+ /// Since each FileInfo entry needs a separate `stat` system call, a
54
+ /// directory with a very large number of files may take a lot of time to
55
+ /// process entirely. By generating a FileInfoVector after this chunk
56
+ /// size is reached, we ensure FileInfo entries can start being consumed
57
+ /// from the FileInfoGenerator with less initial latency.
58
+ int32_t file_info_batch_size = kDefaultFileInfoBatchSize;
59
+
60
+ /// \brief Initialize with defaults
61
+ static LocalFileSystemOptions Defaults();
62
+
63
+ bool Equals(const LocalFileSystemOptions& other) const;
64
+
65
+ static Result<LocalFileSystemOptions> FromUri(const ::arrow::util::Uri& uri,
66
+ std::string* out_path);
67
+ };
68
+
69
+ /// \brief A FileSystem implementation accessing files on the local machine.
70
+ ///
71
+ /// This class handles only `/`-separated paths. If desired, conversion
72
+ /// from Windows backslash-separated paths should be done by the caller.
73
+ /// Details such as symlinks are abstracted away (symlinks are always
74
+ /// followed, except when deleting an entry).
75
+ class ARROW_EXPORT LocalFileSystem : public FileSystem {
76
+ public:
77
+ explicit LocalFileSystem(const io::IOContext& = io::default_io_context());
78
+ explicit LocalFileSystem(const LocalFileSystemOptions&,
79
+ const io::IOContext& = io::default_io_context());
80
+ ~LocalFileSystem() override;
81
+
82
+ std::string type_name() const override { return "local"; }
83
+
84
+ Result<std::string> NormalizePath(std::string path) override;
85
+ Result<std::string> PathFromUri(const std::string& uri_string) const override;
86
+ Result<std::string> MakeUri(std::string path) const override;
87
+
88
+ bool Equals(const FileSystem& other) const override;
89
+
90
+ LocalFileSystemOptions options() const { return options_; }
91
+
92
+ /// \cond FALSE
93
+ using FileSystem::CreateDir;
94
+ using FileSystem::DeleteDirContents;
95
+ using FileSystem::GetFileInfo;
96
+ using FileSystem::OpenAppendStream;
97
+ using FileSystem::OpenOutputStream;
98
+ /// \endcond
99
+
100
+ Result<FileInfo> GetFileInfo(const std::string& path) override;
101
+ Result<std::vector<FileInfo>> GetFileInfo(const FileSelector& select) override;
102
+ FileInfoGenerator GetFileInfoGenerator(const FileSelector& select) override;
103
+
104
+ Status CreateDir(const std::string& path, bool recursive) override;
105
+
106
+ Status DeleteDir(const std::string& path) override;
107
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok) override;
108
+ Status DeleteRootDirContents() override;
109
+
110
+ Status DeleteFile(const std::string& path) override;
111
+
112
+ Status Move(const std::string& src, const std::string& dest) override;
113
+
114
+ Status CopyFile(const std::string& src, const std::string& dest) override;
115
+
116
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
117
+ const std::string& path) override;
118
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
119
+ const std::string& path) override;
120
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
121
+ const std::string& path,
122
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
123
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
124
+ const std::string& path,
125
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
126
+
127
+ protected:
128
+ LocalFileSystemOptions options_;
129
+ };
130
+
131
+ } // namespace fs
132
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/mockfs.h ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <iosfwd>
21
+ #include <memory>
22
+ #include <string>
23
+ #include <string_view>
24
+ #include <vector>
25
+
26
+ #include "arrow/filesystem/filesystem.h"
27
+ #include "arrow/util/windows_fixup.h"
28
+
29
+ namespace arrow::fs::internal {
30
+
31
+ struct MockDirInfo {
32
+ std::string full_path;
33
+ TimePoint mtime;
34
+
35
+ bool operator==(const MockDirInfo& other) const {
36
+ return mtime == other.mtime && full_path == other.full_path;
37
+ }
38
+
39
+ ARROW_FRIEND_EXPORT friend std::ostream& operator<<(std::ostream&, const MockDirInfo&);
40
+ };
41
+
42
+ struct MockFileInfo {
43
+ std::string full_path;
44
+ TimePoint mtime;
45
+ std::string_view data;
46
+
47
+ bool operator==(const MockFileInfo& other) const {
48
+ return mtime == other.mtime && full_path == other.full_path && data == other.data;
49
+ }
50
+
51
+ ARROW_FRIEND_EXPORT friend std::ostream& operator<<(std::ostream&, const MockFileInfo&);
52
+ };
53
+
54
+ /// A mock FileSystem implementation that holds its contents in memory.
55
+ ///
56
+ /// Useful for validating the FileSystem API, writing conformance suite,
57
+ /// and bootstrapping FileSystem-based APIs.
58
+ class ARROW_EXPORT MockFileSystem : public FileSystem {
59
+ public:
60
+ explicit MockFileSystem(TimePoint current_time,
61
+ const io::IOContext& = io::default_io_context());
62
+ ~MockFileSystem() override;
63
+
64
+ std::string type_name() const override { return "mock"; }
65
+
66
+ bool Equals(const FileSystem& other) const override;
67
+ Result<std::string> PathFromUri(const std::string& uri_string) const override;
68
+
69
+ /// \cond FALSE
70
+ using FileSystem::CreateDir;
71
+ using FileSystem::DeleteDirContents;
72
+ using FileSystem::GetFileInfo;
73
+ using FileSystem::OpenAppendStream;
74
+ using FileSystem::OpenOutputStream;
75
+ /// \endcond
76
+
77
+ Result<FileInfo> GetFileInfo(const std::string& path) override;
78
+ Result<std::vector<FileInfo>> GetFileInfo(const FileSelector& select) override;
79
+
80
+ Status CreateDir(const std::string& path, bool recursive) override;
81
+
82
+ Status DeleteDir(const std::string& path) override;
83
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok) override;
84
+ Status DeleteRootDirContents() override;
85
+
86
+ Status DeleteFile(const std::string& path) override;
87
+
88
+ Status Move(const std::string& src, const std::string& dest) override;
89
+
90
+ Status CopyFile(const std::string& src, const std::string& dest) override;
91
+
92
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
93
+ const std::string& path) override;
94
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
95
+ const std::string& path) override;
96
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
97
+ const std::string& path,
98
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
99
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
100
+ const std::string& path,
101
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
102
+
103
+ // Contents-dumping helpers to ease testing.
104
+ // Output is lexicographically-ordered by full path.
105
+ std::vector<MockDirInfo> AllDirs();
106
+ std::vector<MockFileInfo> AllFiles();
107
+
108
+ // Create a File with a content from a string.
109
+ Status CreateFile(const std::string& path, std::string_view content,
110
+ bool recursive = true);
111
+
112
+ // Create a MockFileSystem out of (empty) FileInfo. The content of every
113
+ // file is empty and of size 0. All directories will be created recursively.
114
+ static Result<std::shared_ptr<FileSystem>> Make(TimePoint current_time,
115
+ const std::vector<FileInfo>& infos);
116
+
117
+ class Impl;
118
+
119
+ protected:
120
+ std::unique_ptr<Impl> impl_;
121
+ };
122
+
123
+ class ARROW_EXPORT MockAsyncFileSystem : public MockFileSystem {
124
+ public:
125
+ explicit MockAsyncFileSystem(TimePoint current_time,
126
+ const io::IOContext& io_context = io::default_io_context())
127
+ : MockFileSystem(current_time, io_context) {
128
+ default_async_is_sync_ = false;
129
+ }
130
+
131
+ FileInfoGenerator GetFileInfoGenerator(const FileSelector& select) override;
132
+ };
133
+
134
+ } // namespace arrow::fs::internal
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/path_util.h ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <optional>
21
+ #include <string>
22
+ #include <string_view>
23
+ #include <utility>
24
+ #include <vector>
25
+
26
+ #include "arrow/type_fwd.h"
27
+
28
+ namespace arrow {
29
+ namespace fs {
30
+ namespace internal {
31
+
32
+ constexpr char kSep = '/';
33
+
34
+ // Computations on abstract paths (not local paths with system-dependent behaviour).
35
+ // Abstract paths are typically used in URIs.
36
+
37
+ // Split an abstract path into its individual components.
38
+ ARROW_EXPORT
39
+ std::vector<std::string> SplitAbstractPath(const std::string& path, char sep = kSep);
40
+
41
+ // Slice the individual components of an abstract path and combine them
42
+ //
43
+ // If offset or length are negative then an empty string is returned
44
+ // If offset is >= the number of components then an empty string is returned
45
+ // If offset + length is >= the number of components then length is truncated
46
+ ARROW_EXPORT
47
+ std::string SliceAbstractPath(const std::string& path, int offset, int length,
48
+ char sep = kSep);
49
+
50
+ // Return the extension of the file
51
+ ARROW_EXPORT std::string GetAbstractPathExtension(const std::string& s);
52
+
53
+ // Return the depth (number of components) of an abstract path
54
+ //
55
+ // Trailing slashes do not count towards depth
56
+ // Leading slashes do not count towards depth
57
+ //
58
+ // The root path ("/") has depth 0
59
+ ARROW_EXPORT int GetAbstractPathDepth(std::string_view path);
60
+
61
+ // Return the parent directory and basename of an abstract path. Both values may be
62
+ // empty.
63
+ ARROW_EXPORT
64
+ std::pair<std::string, std::string> GetAbstractPathParent(const std::string& s);
65
+
66
+ // Validate an abstract path.
67
+ ARROW_EXPORT
68
+ Status ValidateAbstractPath(std::string_view path);
69
+
70
+ // Validate the components of an abstract path.
71
+ ARROW_EXPORT
72
+ Status ValidateAbstractPathParts(const std::vector<std::string>& parts);
73
+
74
+ // Append a non-empty stem to an abstract path.
75
+ ARROW_EXPORT
76
+ std::string ConcatAbstractPath(std::string_view base, std::string_view stem);
77
+
78
+ // Make path relative to base, if it starts with base. Otherwise error out.
79
+ ARROW_EXPORT
80
+ Result<std::string> MakeAbstractPathRelative(const std::string& base,
81
+ const std::string& path);
82
+
83
+ ARROW_EXPORT
84
+ std::string EnsureLeadingSlash(std::string_view s);
85
+
86
+ ARROW_EXPORT
87
+ std::string_view RemoveLeadingSlash(std::string_view s);
88
+
89
+ ARROW_EXPORT
90
+ std::string EnsureTrailingSlash(std::string_view s);
91
+
92
+ /// \brief remove the forward slash (if any) from the given path
93
+ /// \param s the input path
94
+ /// \param preserve_root if true, allow a path of just "/" to remain unchanged
95
+ ARROW_EXPORT
96
+ std::string_view RemoveTrailingSlash(std::string_view s, bool preserve_root = false);
97
+
98
+ ARROW_EXPORT
99
+ Status AssertNoTrailingSlash(std::string_view s);
100
+
101
+ inline bool HasTrailingSlash(std::string_view s) {
102
+ return !s.empty() && s.back() == kSep;
103
+ }
104
+
105
+ inline bool HasLeadingSlash(std::string_view s) {
106
+ return !s.empty() && s.front() == kSep;
107
+ }
108
+
109
+ ARROW_EXPORT
110
+ bool IsAncestorOf(std::string_view ancestor, std::string_view descendant);
111
+
112
+ ARROW_EXPORT
113
+ std::optional<std::string_view> RemoveAncestor(std::string_view ancestor,
114
+ std::string_view descendant);
115
+
116
+ /// Return a vector of ancestors between a base path and a descendant.
117
+ /// For example,
118
+ ///
119
+ /// AncestorsFromBasePath("a/b", "a/b/c/d/e") -> ["a/b/c", "a/b/c/d"]
120
+ ARROW_EXPORT
121
+ std::vector<std::string> AncestorsFromBasePath(std::string_view base_path,
122
+ std::string_view descendant);
123
+
124
+ /// Given a vector of paths of directories which must be created, produce a the minimal
125
+ /// subset for passing to CreateDir(recursive=true) by removing redundant parent
126
+ /// directories
127
+ ARROW_EXPORT
128
+ std::vector<std::string> MinimalCreateDirSet(std::vector<std::string> dirs);
129
+
130
+ // Join the components of an abstract path.
131
+ template <class StringIt>
132
+ std::string JoinAbstractPath(StringIt it, StringIt end, char sep = kSep) {
133
+ std::string path;
134
+ for (; it != end; ++it) {
135
+ if (it->empty()) continue;
136
+
137
+ if (!path.empty()) {
138
+ path += sep;
139
+ }
140
+ path += *it;
141
+ }
142
+ return path;
143
+ }
144
+
145
+ template <class StringRange>
146
+ std::string JoinAbstractPath(const StringRange& range, char sep = kSep) {
147
+ return JoinAbstractPath(range.begin(), range.end(), sep);
148
+ }
149
+
150
+ /// Convert slashes to backslashes, on all platforms. Mostly useful for testing.
151
+ ARROW_EXPORT
152
+ std::string ToBackslashes(std::string_view s);
153
+
154
+ /// Ensure a local path is abstract, by converting backslashes to regular slashes
155
+ /// on Windows. Return the path unchanged on other systems.
156
+ ARROW_EXPORT
157
+ std::string ToSlashes(std::string_view s);
158
+
159
+ ARROW_EXPORT
160
+ bool IsEmptyPath(std::string_view s);
161
+
162
+ ARROW_EXPORT
163
+ bool IsLikelyUri(std::string_view s);
164
+
165
+ class ARROW_EXPORT Globber {
166
+ public:
167
+ ~Globber();
168
+ explicit Globber(std::string pattern);
169
+ bool Matches(const std::string& path);
170
+
171
+ protected:
172
+ struct Impl;
173
+ std::unique_ptr<Impl> impl_;
174
+ };
175
+
176
+ } // namespace internal
177
+ } // namespace fs
178
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/s3_test_util.h ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <string>
22
+ #include <utility>
23
+
24
+ #include <gtest/gtest.h>
25
+
26
+ #include "arrow/filesystem/s3fs.h"
27
+ #include "arrow/status.h"
28
+ #include "arrow/testing/gtest_util.h"
29
+ #include "arrow/testing/util.h"
30
+ #include "arrow/util/checked_cast.h"
31
+ #include "arrow/util/macros.h"
32
+
33
+ namespace arrow {
34
+ namespace fs {
35
+
36
+ // A minio test server, managed as a child process
37
+
38
+ class MinioTestServer {
39
+ public:
40
+ MinioTestServer();
41
+ ~MinioTestServer();
42
+
43
+ Status Start(bool enable_tls = false);
44
+
45
+ Status Stop();
46
+
47
+ std::string connect_string() const;
48
+
49
+ std::string access_key() const;
50
+
51
+ std::string secret_key() const;
52
+
53
+ std::string ca_dir_path() const;
54
+
55
+ std::string ca_file_path() const;
56
+
57
+ std::string scheme() const;
58
+
59
+ private:
60
+ Status GenerateCertificateFile();
61
+ struct Impl;
62
+ std::unique_ptr<Impl> impl_;
63
+ };
64
+
65
+ // A Minio "environment" that spawns Minio processes in advances, such as
66
+ // to hide process launch latencies during testing.
67
+
68
+ class MinioTestEnvironment : public ::testing::Environment {
69
+ public:
70
+ explicit MinioTestEnvironment(bool enable_tls = false);
71
+ ~MinioTestEnvironment();
72
+
73
+ void SetUp() override;
74
+
75
+ Result<std::shared_ptr<MinioTestServer>> GetOneServer();
76
+
77
+ protected:
78
+ struct Impl;
79
+ std::unique_ptr<Impl> impl_;
80
+ };
81
+
82
+ // A global test "environment", to ensure that the S3 API is initialized before
83
+ // running unit tests.
84
+
85
+ class S3Environment : public ::testing::Environment {
86
+ public:
87
+ // We set this environment variable to speed up tests by ensuring
88
+ // DefaultAWSCredentialsProviderChain does not query (inaccessible)
89
+ // EC2 metadata endpoint.
90
+ // This must be done before spawning any Minio child process to avoid any race
91
+ // condition accessing environment variables.
92
+ S3Environment() : ec2_metadata_disabled_guard_("AWS_EC2_METADATA_DISABLED", "true") {}
93
+
94
+ void SetUp() override {
95
+ // Change this to increase logging during tests
96
+ S3GlobalOptions options;
97
+ options.log_level = S3LogLevel::Fatal;
98
+ ASSERT_OK(InitializeS3(options));
99
+ }
100
+
101
+ void TearDown() override { ASSERT_OK(FinalizeS3()); }
102
+
103
+ private:
104
+ EnvVarGuard ec2_metadata_disabled_guard_;
105
+ };
106
+
107
+ } // namespace fs
108
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/s3fs.h ADDED
@@ -0,0 +1,467 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <memory>
21
+ #include <string>
22
+ #include <vector>
23
+
24
+ #include "arrow/filesystem/filesystem.h"
25
+ #include "arrow/util/macros.h"
26
+ #include "arrow/util/uri.h"
27
+
28
+ namespace Aws::Auth {
29
+ class AWSCredentialsProvider;
30
+ class STSAssumeRoleCredentialsProvider;
31
+ } // namespace Aws::Auth
32
+
33
+ namespace Aws::STS {
34
+ class STSClient;
35
+ } // namespace Aws::STS
36
+
37
+ namespace arrow::fs {
38
+
39
+ /// Options for using a proxy for S3
40
+ struct ARROW_EXPORT S3ProxyOptions {
41
+ std::string scheme;
42
+ std::string host;
43
+ int port = -1;
44
+ std::string username;
45
+ std::string password;
46
+
47
+ /// Initialize from URI such as http://username:password@host:port
48
+ /// or http://host:port
49
+ static Result<S3ProxyOptions> FromUri(const std::string& uri);
50
+ static Result<S3ProxyOptions> FromUri(const ::arrow::util::Uri& uri);
51
+
52
+ bool Equals(const S3ProxyOptions& other) const;
53
+ };
54
+
55
+ enum class S3CredentialsKind : int8_t {
56
+ /// Anonymous access (no credentials used)
57
+ Anonymous,
58
+ /// Use default AWS credentials, configured through environment variables
59
+ Default,
60
+ /// Use explicitly-provided access key pair
61
+ Explicit,
62
+ /// Assume role through a role ARN
63
+ Role,
64
+ /// Use web identity token to assume role, configured through environment variables
65
+ WebIdentity
66
+ };
67
+
68
+ /// Pure virtual class for describing custom S3 retry strategies
69
+ class ARROW_EXPORT S3RetryStrategy {
70
+ public:
71
+ virtual ~S3RetryStrategy() = default;
72
+
73
+ /// Simple struct where each field corresponds to a field in Aws::Client::AWSError
74
+ struct AWSErrorDetail {
75
+ /// Corresponds to AWSError::GetErrorType()
76
+ int error_type;
77
+ /// Corresponds to AWSError::GetMessage()
78
+ std::string message;
79
+ /// Corresponds to AWSError::GetExceptionName()
80
+ std::string exception_name;
81
+ /// Corresponds to AWSError::ShouldRetry()
82
+ bool should_retry;
83
+ };
84
+ /// Returns true if the S3 request resulting in the provided error should be retried.
85
+ virtual bool ShouldRetry(const AWSErrorDetail& error, int64_t attempted_retries) = 0;
86
+ /// Returns the time in milliseconds the S3 client should sleep for until retrying.
87
+ virtual int64_t CalculateDelayBeforeNextRetry(const AWSErrorDetail& error,
88
+ int64_t attempted_retries) = 0;
89
+ /// Returns a stock AWS Default retry strategy.
90
+ static std::shared_ptr<S3RetryStrategy> GetAwsDefaultRetryStrategy(
91
+ int64_t max_attempts);
92
+ /// Returns a stock AWS Standard retry strategy.
93
+ static std::shared_ptr<S3RetryStrategy> GetAwsStandardRetryStrategy(
94
+ int64_t max_attempts);
95
+ };
96
+
97
+ /// Options for the S3FileSystem implementation.
98
+ struct ARROW_EXPORT S3Options {
99
+ /// \brief Smart defaults for option values
100
+ ///
101
+ /// The possible values for this setting are explained in the AWS docs:
102
+ /// https://docs.aws.amazon.com/sdkref/latest/guide/feature-smart-config-defaults.html
103
+ std::string smart_defaults = "standard";
104
+
105
+ /// \brief AWS region to connect to.
106
+ ///
107
+ /// If unset, the AWS SDK will choose a default value. The exact algorithm
108
+ /// depends on the SDK version. Before 1.8, the default is hardcoded
109
+ /// to "us-east-1". Since 1.8, several heuristics are used to determine
110
+ /// the region (environment variables, configuration profile, EC2 metadata
111
+ /// server).
112
+ std::string region;
113
+
114
+ /// \brief Socket connection timeout, in seconds
115
+ ///
116
+ /// If negative, the AWS SDK default value is used (typically 1 second).
117
+ double connect_timeout = -1;
118
+
119
+ /// \brief Socket read timeout on Windows and macOS, in seconds
120
+ ///
121
+ /// If negative, the AWS SDK default value is used (typically 3 seconds).
122
+ /// This option is ignored on non-Windows, non-macOS systems.
123
+ double request_timeout = -1;
124
+
125
+ /// If non-empty, override region with a connect string such as "localhost:9000"
126
+ // XXX perhaps instead take a URL like "http://localhost:9000"?
127
+ std::string endpoint_override;
128
+ /// S3 connection transport, default "https"
129
+ std::string scheme = "https";
130
+
131
+ /// ARN of role to assume
132
+ std::string role_arn;
133
+ /// Optional identifier for an assumed role session.
134
+ std::string session_name;
135
+ /// Optional external identifier to pass to STS when assuming a role
136
+ std::string external_id;
137
+ /// Frequency (in seconds) to refresh temporary credentials from assumed role
138
+ int load_frequency = 900;
139
+
140
+ /// If connection is through a proxy, set options here
141
+ S3ProxyOptions proxy_options;
142
+
143
+ /// AWS credentials provider
144
+ std::shared_ptr<Aws::Auth::AWSCredentialsProvider> credentials_provider;
145
+
146
+ /// Type of credentials being used. Set along with credentials_provider.
147
+ S3CredentialsKind credentials_kind = S3CredentialsKind::Default;
148
+
149
+ /// Whether to use virtual addressing of buckets
150
+ ///
151
+ /// If true, then virtual addressing is always enabled.
152
+ /// If false, then virtual addressing is only enabled if `endpoint_override` is empty.
153
+ ///
154
+ /// This can be used for non-AWS backends that only support virtual hosted-style access.
155
+ bool force_virtual_addressing = false;
156
+
157
+ /// Whether OutputStream writes will be issued in the background, without blocking.
158
+ bool background_writes = true;
159
+
160
+ /// Whether to allow creation of buckets
161
+ ///
162
+ /// When S3FileSystem creates new buckets, it does not pass any non-default settings.
163
+ /// In AWS S3, the bucket and all objects will be not publicly visible, and there
164
+ /// will be no bucket policies and no resource tags. To have more control over how
165
+ /// buckets are created, use a different API to create them.
166
+ bool allow_bucket_creation = false;
167
+
168
+ /// Whether to allow deletion of buckets
169
+ bool allow_bucket_deletion = false;
170
+
171
+ /// Whether to allow pessimistic directory creation in CreateDir function
172
+ ///
173
+ /// By default, CreateDir function will try to create the directory without checking its
174
+ /// existence. It's an optimization to try directory creation and catch the error,
175
+ /// rather than issue two dependent I/O calls.
176
+ /// Though for key/value storage like Google Cloud Storage, too many creation calls will
177
+ /// breach the rate limit for object mutation operations and cause serious consequences.
178
+ /// It's also possible you don't have creation access for the parent directory. Set it
179
+ /// to be true to address these scenarios.
180
+ bool check_directory_existence_before_creation = false;
181
+
182
+ /// Whether to allow file-open methods to return before the actual open.
183
+ ///
184
+ /// Enabling this may reduce the latency of `OpenInputStream`, `OpenOutputStream`,
185
+ /// and similar methods, by reducing the number of roundtrips necessary. It may also
186
+ /// allow usage of more efficient S3 APIs for small files.
187
+ /// The downside is that failure conditions such as attempting to open a file in a
188
+ /// non-existing bucket will only be reported when actual I/O is done (at worse,
189
+ /// when attempting to close the file).
190
+ bool allow_delayed_open = false;
191
+
192
+ /// \brief Default metadata for OpenOutputStream.
193
+ ///
194
+ /// This will be ignored if non-empty metadata is passed to OpenOutputStream.
195
+ std::shared_ptr<const KeyValueMetadata> default_metadata;
196
+
197
+ /// Optional retry strategy to determine which error types should be retried, and the
198
+ /// delay between retries.
199
+ std::shared_ptr<S3RetryStrategy> retry_strategy;
200
+
201
+ /// Optional customer-provided key for server-side encryption (SSE-C).
202
+ ///
203
+ /// This should be the 32-byte AES-256 key, unencoded.
204
+ std::string sse_customer_key;
205
+
206
+ /// Optional path to a single PEM file holding all TLS CA certificates
207
+ ///
208
+ /// If empty, global filesystem options will be used (see FileSystemGlobalOptions);
209
+ /// if the corresponding global filesystem option is also empty, the underlying
210
+ /// TLS library's defaults will be used.
211
+ ///
212
+ /// Note this option may be ignored on some systems (Windows, macOS).
213
+ std::string tls_ca_file_path;
214
+
215
+ /// Optional path to a directory holding TLS CA
216
+ ///
217
+ /// The given directory should contain CA certificates as individual PEM files
218
+ /// named along the OpenSSL "hashed" format.
219
+ ///
220
+ /// If empty, global filesystem options will be used (see FileSystemGlobalOptions);
221
+ /// if the corresponding global filesystem option is also empty, the underlying
222
+ /// TLS library's defaults will be used.
223
+ ///
224
+ /// Note this option may be ignored on some systems (Windows, macOS).
225
+ std::string tls_ca_dir_path;
226
+
227
+ /// Whether to verify the S3 endpoint's TLS certificate
228
+ ///
229
+ /// This option applies if the scheme is "https".
230
+ bool tls_verify_certificates = true;
231
+
232
+ S3Options();
233
+
234
+ /// Configure with the default AWS credentials provider chain.
235
+ void ConfigureDefaultCredentials();
236
+
237
+ /// Configure with anonymous credentials. This will only let you access public buckets.
238
+ void ConfigureAnonymousCredentials();
239
+
240
+ /// Configure with explicit access and secret key.
241
+ void ConfigureAccessKey(const std::string& access_key, const std::string& secret_key,
242
+ const std::string& session_token = "");
243
+
244
+ /// Configure with credentials from an assumed role.
245
+ void ConfigureAssumeRoleCredentials(
246
+ const std::string& role_arn, const std::string& session_name = "",
247
+ const std::string& external_id = "", int load_frequency = 900,
248
+ const std::shared_ptr<Aws::STS::STSClient>& stsClient = NULLPTR);
249
+
250
+ /// Configure with credentials from role assumed using a web identity token
251
+ void ConfigureAssumeRoleWithWebIdentityCredentials();
252
+
253
+ std::string GetAccessKey() const;
254
+ std::string GetSecretKey() const;
255
+ std::string GetSessionToken() const;
256
+
257
+ bool Equals(const S3Options& other) const;
258
+
259
+ /// \brief Initialize with default credentials provider chain
260
+ ///
261
+ /// This is recommended if you use the standard AWS environment variables
262
+ /// and/or configuration file.
263
+ static S3Options Defaults();
264
+
265
+ /// \brief Initialize with anonymous credentials.
266
+ ///
267
+ /// This will only let you access public buckets.
268
+ static S3Options Anonymous();
269
+
270
+ /// \brief Initialize with explicit access and secret key.
271
+ ///
272
+ /// Optionally, a session token may also be provided for temporary credentials
273
+ /// (from STS).
274
+ static S3Options FromAccessKey(const std::string& access_key,
275
+ const std::string& secret_key,
276
+ const std::string& session_token = "");
277
+
278
+ /// \brief Initialize from an assumed role.
279
+ static S3Options FromAssumeRole(
280
+ const std::string& role_arn, const std::string& session_name = "",
281
+ const std::string& external_id = "", int load_frequency = 900,
282
+ const std::shared_ptr<Aws::STS::STSClient>& stsClient = NULLPTR);
283
+
284
+ /// \brief Initialize from an assumed role with web-identity.
285
+ /// Uses the AWS SDK which uses environment variables to
286
+ /// generate temporary credentials.
287
+ static S3Options FromAssumeRoleWithWebIdentity();
288
+
289
+ static Result<S3Options> FromUri(const ::arrow::util::Uri& uri,
290
+ std::string* out_path = NULLPTR);
291
+ static Result<S3Options> FromUri(const std::string& uri,
292
+ std::string* out_path = NULLPTR);
293
+ };
294
+
295
+ /// S3-backed FileSystem implementation.
296
+ ///
297
+ /// Some implementation notes:
298
+ /// - buckets are special and the operations available on them may be limited
299
+ /// or more expensive than desired.
300
+ class ARROW_EXPORT S3FileSystem : public FileSystem {
301
+ public:
302
+ ~S3FileSystem() override;
303
+
304
+ std::string type_name() const override { return "s3"; }
305
+
306
+ /// Return the original S3 options when constructing the filesystem
307
+ S3Options options() const;
308
+ /// Return the actual region this filesystem connects to
309
+ std::string region() const;
310
+
311
+ bool Equals(const FileSystem& other) const override;
312
+ Result<std::string> PathFromUri(const std::string& uri_string) const override;
313
+ Result<std::string> MakeUri(std::string path) const override;
314
+
315
+ /// \cond FALSE
316
+ using FileSystem::CreateDir;
317
+ using FileSystem::DeleteDirContents;
318
+ using FileSystem::DeleteDirContentsAsync;
319
+ using FileSystem::GetFileInfo;
320
+ using FileSystem::OpenAppendStream;
321
+ using FileSystem::OpenOutputStream;
322
+ /// \endcond
323
+
324
+ Result<FileInfo> GetFileInfo(const std::string& path) override;
325
+ Result<std::vector<FileInfo>> GetFileInfo(const FileSelector& select) override;
326
+
327
+ FileInfoGenerator GetFileInfoGenerator(const FileSelector& select) override;
328
+
329
+ Status CreateDir(const std::string& path, bool recursive) override;
330
+
331
+ Status DeleteDir(const std::string& path) override;
332
+ Status DeleteDirContents(const std::string& path, bool missing_dir_ok) override;
333
+ Future<> DeleteDirContentsAsync(const std::string& path, bool missing_dir_ok) override;
334
+ Status DeleteRootDirContents() override;
335
+
336
+ Status DeleteFile(const std::string& path) override;
337
+
338
+ Status Move(const std::string& src, const std::string& dest) override;
339
+
340
+ Status CopyFile(const std::string& src, const std::string& dest) override;
341
+
342
+ /// Create a sequential input stream for reading from a S3 object.
343
+ ///
344
+ /// NOTE: Reads from the stream will be synchronous and unbuffered.
345
+ /// You way want to wrap the stream in a BufferedInputStream or use
346
+ /// a custom readahead strategy to avoid idle waits.
347
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(
348
+ const std::string& path) override;
349
+ /// Create a sequential input stream for reading from a S3 object.
350
+ ///
351
+ /// This override avoids a HEAD request by assuming the FileInfo
352
+ /// contains correct information.
353
+ Result<std::shared_ptr<io::InputStream>> OpenInputStream(const FileInfo& info) override;
354
+
355
+ /// Create a random access file for reading from a S3 object.
356
+ ///
357
+ /// See OpenInputStream for performance notes.
358
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
359
+ const std::string& path) override;
360
+ /// Create a random access file for reading from a S3 object.
361
+ ///
362
+ /// This override avoids a HEAD request by assuming the FileInfo
363
+ /// contains correct information.
364
+ Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(
365
+ const FileInfo& info) override;
366
+
367
+ /// Create a sequential output stream for writing to a S3 object.
368
+ ///
369
+ /// NOTE: Writes to the stream will be buffered. Depending on
370
+ /// S3Options.background_writes, they can be synchronous or not.
371
+ /// It is recommended to enable background_writes unless you prefer
372
+ /// implementing your own background execution strategy.
373
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
374
+ const std::string& path,
375
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
376
+
377
+ Result<std::shared_ptr<io::OutputStream>> OpenAppendStream(
378
+ const std::string& path,
379
+ const std::shared_ptr<const KeyValueMetadata>& metadata) override;
380
+
381
+ /// Create a S3FileSystem instance from the given options.
382
+ static Result<std::shared_ptr<S3FileSystem>> Make(
383
+ const S3Options& options, const io::IOContext& = io::default_io_context());
384
+
385
+ protected:
386
+ explicit S3FileSystem(const S3Options& options, const io::IOContext&);
387
+
388
+ class Impl;
389
+ std::shared_ptr<Impl> impl_;
390
+ };
391
+
392
+ enum class S3LogLevel : int8_t { Off, Fatal, Error, Warn, Info, Debug, Trace };
393
+
394
+ struct ARROW_EXPORT S3GlobalOptions {
395
+ /// The log level for S3-originating messages.
396
+ S3LogLevel log_level;
397
+
398
+ /// The number of threads to configure when creating AWS' I/O event loop
399
+ ///
400
+ /// Defaults to 1 as recommended by AWS' doc when the # of connections is
401
+ /// expected to be, at most, in the hundreds
402
+ ///
403
+ /// For more details see Aws::Crt::Io::EventLoopGroup
404
+ int num_event_loop_threads = 1;
405
+
406
+ /// Whether to install a process-wide SIGPIPE handler
407
+ ///
408
+ /// The AWS SDK may sometimes emit SIGPIPE signals for certain errors;
409
+ /// by default, they would abort the current process.
410
+ /// This option, if enabled, will install a process-wide signal handler
411
+ /// that logs and otherwise ignore incoming SIGPIPE signals.
412
+ ///
413
+ /// This option has no effect on Windows.
414
+ bool install_sigpipe_handler = false;
415
+
416
+ /// \brief Initialize with default options
417
+ ///
418
+ /// For log_level, this method first tries to extract a suitable value from the
419
+ /// environment variable ARROW_S3_LOG_LEVEL.
420
+ static S3GlobalOptions Defaults();
421
+ };
422
+
423
+ /// \brief Initialize the S3 APIs with the specified set of options.
424
+ ///
425
+ /// It is required to call this function at least once before using S3FileSystem.
426
+ ///
427
+ /// Once this function is called you MUST call FinalizeS3 before the end of the
428
+ /// application in order to avoid a segmentation fault at shutdown.
429
+ ARROW_EXPORT
430
+ Status InitializeS3(const S3GlobalOptions& options);
431
+
432
+ /// \brief Ensure the S3 APIs are initialized, but only if not already done.
433
+ ///
434
+ /// If necessary, this will call InitializeS3() with some default options.
435
+ ARROW_EXPORT
436
+ Status EnsureS3Initialized();
437
+
438
+ /// Whether S3 was initialized, and not finalized.
439
+ ARROW_EXPORT
440
+ bool IsS3Initialized();
441
+
442
+ /// Whether S3 was finalized.
443
+ ARROW_EXPORT
444
+ bool IsS3Finalized();
445
+
446
+ /// \brief Shutdown the S3 APIs.
447
+ ///
448
+ /// This can wait for some S3 concurrent calls to finish so as to avoid
449
+ /// race conditions.
450
+ /// After this function has been called, all S3 calls will fail with an error.
451
+ ///
452
+ /// Calls to InitializeS3() and FinalizeS3() should be serialized by the
453
+ /// application (this also applies to EnsureS3Initialized() and
454
+ /// EnsureS3Finalized()).
455
+ ARROW_EXPORT
456
+ Status FinalizeS3();
457
+
458
+ /// \brief Ensure the S3 APIs are shutdown, but only if not already done.
459
+ ///
460
+ /// If necessary, this will call FinalizeS3().
461
+ ARROW_EXPORT
462
+ Status EnsureS3Finalized();
463
+
464
+ ARROW_EXPORT
465
+ Result<std::string> ResolveS3BucketRegion(const std::string& bucket);
466
+
467
+ } // namespace arrow::fs
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/test_util.h ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <chrono>
21
+ #include <memory>
22
+ #include <string>
23
+ #include <vector>
24
+
25
+ #include "arrow/filesystem/filesystem.h"
26
+ #include "arrow/filesystem/mockfs.h"
27
+ #include "arrow/testing/visibility.h"
28
+ #include "arrow/util/counting_semaphore_internal.h"
29
+
30
+ namespace arrow {
31
+ namespace fs {
32
+
33
+ static constexpr double kTimeSlack = 2.0; // In seconds
34
+
35
+ static inline FileInfo File(std::string path) {
36
+ return FileInfo(std::move(path), FileType::File);
37
+ }
38
+
39
+ static inline FileInfo Dir(std::string path) {
40
+ return FileInfo(std::move(path), FileType::Directory);
41
+ }
42
+
43
+ // A subclass of MockFileSystem that blocks operations until an unlock method is
44
+ // called.
45
+ //
46
+ // This is intended for testing fine-grained ordering of filesystem operations.
47
+ //
48
+ // N.B. Only OpenOutputStream supports gating at the moment but this is simply because
49
+ // it is all that has been needed so far. Feel free to add support for more methods
50
+ // as required.
51
+ class ARROW_TESTING_EXPORT GatedMockFilesystem : public internal::MockFileSystem {
52
+ public:
53
+ GatedMockFilesystem(TimePoint current_time,
54
+ const io::IOContext& = io::default_io_context());
55
+ ~GatedMockFilesystem() override;
56
+
57
+ Result<std::shared_ptr<io::OutputStream>> OpenOutputStream(
58
+ const std::string& path,
59
+ const std::shared_ptr<const KeyValueMetadata>& metadata = {}) override;
60
+
61
+ // Wait until at least num_waiters are waiting on OpenOutputStream
62
+ Status WaitForOpenOutputStream(uint32_t num_waiters);
63
+ // Unlock `num_waiters` individual calls to OpenOutputStream
64
+ Status UnlockOpenOutputStream(uint32_t num_waiters);
65
+
66
+ private:
67
+ util::CountingSemaphore open_output_sem_;
68
+ };
69
+
70
+ ARROW_TESTING_EXPORT
71
+ void CreateFile(FileSystem* fs, const std::string& path, const std::string& data);
72
+
73
+ // Sort a vector of FileInfo by lexicographic path order
74
+ ARROW_TESTING_EXPORT
75
+ void SortInfos(FileInfoVector* infos);
76
+
77
+ // Create a copy of a FileInfo vector sorted by lexicographic path order
78
+ ARROW_TESTING_EXPORT
79
+ FileInfoVector SortedInfos(const FileInfoVector& infos);
80
+
81
+ ARROW_TESTING_EXPORT
82
+ void CollectFileInfoGenerator(FileInfoGenerator gen, FileInfoVector* out_infos);
83
+
84
+ ARROW_TESTING_EXPORT
85
+ void AssertFileInfo(const FileInfo& info, const std::string& path, FileType type);
86
+
87
+ ARROW_TESTING_EXPORT
88
+ void AssertFileInfo(const FileInfo& info, const std::string& path, FileType type,
89
+ TimePoint mtime);
90
+
91
+ ARROW_TESTING_EXPORT
92
+ void AssertFileInfo(const FileInfo& info, const std::string& path, FileType type,
93
+ TimePoint mtime, int64_t size);
94
+
95
+ ARROW_TESTING_EXPORT
96
+ void AssertFileInfo(const FileInfo& info, const std::string& path, FileType type,
97
+ int64_t size);
98
+
99
+ ARROW_TESTING_EXPORT
100
+ void AssertFileInfo(FileSystem* fs, const std::string& path, FileType type);
101
+
102
+ ARROW_TESTING_EXPORT
103
+ void AssertFileInfo(FileSystem* fs, const std::string& path, FileType type,
104
+ TimePoint mtime);
105
+
106
+ ARROW_TESTING_EXPORT
107
+ void AssertFileInfo(FileSystem* fs, const std::string& path, FileType type,
108
+ TimePoint mtime, int64_t size);
109
+
110
+ ARROW_TESTING_EXPORT
111
+ void AssertFileInfo(FileSystem* fs, const std::string& path, FileType type, int64_t size);
112
+
113
+ ARROW_TESTING_EXPORT
114
+ void AssertFileContents(FileSystem* fs, const std::string& path,
115
+ const std::string& expected_data);
116
+
117
+ template <typename Duration>
118
+ void AssertDurationBetween(Duration d, double min_secs, double max_secs) {
119
+ auto seconds = std::chrono::duration_cast<std::chrono::duration<double>>(d);
120
+ ASSERT_GE(seconds.count(), min_secs);
121
+ ASSERT_LE(seconds.count(), max_secs);
122
+ }
123
+
124
+ // Generic tests for FileSystem implementations.
125
+ // To use this class, subclass both from it and ::testing::Test,
126
+ // implement GetEmptyFileSystem(), and use GENERIC_FS_TEST_FUNCTIONS()
127
+ // to define the various tests.
128
+ class ARROW_TESTING_EXPORT GenericFileSystemTest {
129
+ public:
130
+ virtual ~GenericFileSystemTest();
131
+
132
+ void TestEmpty();
133
+ void TestNormalizePath();
134
+ void TestCreateDir();
135
+ void TestDeleteDir();
136
+ void TestDeleteDirContents();
137
+ void TestDeleteRootDirContents();
138
+ void TestDeleteFile();
139
+ void TestDeleteFiles();
140
+ void TestMoveFile();
141
+ void TestMoveDir();
142
+ void TestCopyFile();
143
+ void TestCopyFiles();
144
+ void TestGetFileInfo();
145
+ void TestGetFileInfoVector();
146
+ void TestGetFileInfoSelector();
147
+ void TestGetFileInfoSelectorWithRecursion();
148
+ void TestGetFileInfoAsync();
149
+ void TestGetFileInfoGenerator();
150
+ void TestOpenOutputStream();
151
+ void TestOpenAppendStream();
152
+ void TestOpenInputStream();
153
+ void TestOpenInputStreamWithFileInfo();
154
+ void TestOpenInputStreamAsync();
155
+ void TestOpenInputFile();
156
+ void TestOpenInputFileWithFileInfo();
157
+ void TestOpenInputFileAsync();
158
+ void TestSpecialChars();
159
+
160
+ protected:
161
+ // This function should return the filesystem under test.
162
+ virtual std::shared_ptr<FileSystem> GetEmptyFileSystem() = 0;
163
+
164
+ // Override the following functions to specify deviations from expected
165
+ // filesystem semantics.
166
+ // - Whether the filesystem may "implicitly" create intermediate directories
167
+ virtual bool have_implicit_directories() const { return false; }
168
+ // - Whether the filesystem may allow writing a file "over" a directory
169
+ virtual bool allow_write_file_over_dir() const { return false; }
170
+ // - Whether the filesystem may allow writing a directory "over" a file,
171
+ // for example copying file "A" to "B/C" while "B" exists and is a file.
172
+ virtual bool allow_write_implicit_dir_over_file() const { return false; }
173
+ // - Whether the filesystem allows reading a directory
174
+ virtual bool allow_read_dir_as_file() const { return false; }
175
+ // - Whether the filesystem allows moving a file
176
+ virtual bool allow_move_file() const { return true; }
177
+ // - Whether the filesystem allows moving a directory
178
+ virtual bool allow_move_dir() const { return true; }
179
+ // - Whether the filesystem allows moving a directory "over" a non-empty destination
180
+ virtual bool allow_move_dir_over_non_empty_dir() const { return false; }
181
+ // - Whether the filesystem allows appending to a file
182
+ virtual bool allow_append_to_file() const { return true; }
183
+ // - Whether the filesystem allows appending to a nonexistent file
184
+ virtual bool allow_append_to_new_file() const { return true; }
185
+ // - Whether the filesystem supports directory modification times
186
+ virtual bool have_directory_mtimes() const { return true; }
187
+ // - Whether some directory tree deletion tests may fail randomly
188
+ virtual bool have_flaky_directory_tree_deletion() const { return false; }
189
+ // - Whether the filesystem stores some metadata alongside files
190
+ virtual bool have_file_metadata() const { return false; }
191
+ // - Whether the filesystem has a false positive memory leak with generator
192
+ virtual bool have_false_positive_memory_leak_with_generator() const { return false; }
193
+ // - Whether the filesystem has a false positive memory leak in async close
194
+ virtual bool have_false_positive_memory_leak_with_async_close() const { return false; }
195
+
196
+ void TestEmpty(FileSystem* fs);
197
+ void TestNormalizePath(FileSystem* fs);
198
+ void TestCreateDir(FileSystem* fs);
199
+ void TestDeleteDir(FileSystem* fs);
200
+ void TestDeleteDirContents(FileSystem* fs);
201
+ void TestDeleteRootDirContents(FileSystem* fs);
202
+ void TestDeleteFile(FileSystem* fs);
203
+ void TestDeleteFiles(FileSystem* fs);
204
+ void TestMoveFile(FileSystem* fs);
205
+ void TestMoveDir(FileSystem* fs);
206
+ void TestCopyFile(FileSystem* fs);
207
+ void TestCopyFiles(FileSystem* fs);
208
+ void TestGetFileInfo(FileSystem* fs);
209
+ void TestGetFileInfoVector(FileSystem* fs);
210
+ void TestGetFileInfoSelector(FileSystem* fs);
211
+ void TestGetFileInfoSelectorWithRecursion(FileSystem* fs);
212
+ void TestGetFileInfoAsync(FileSystem* fs);
213
+ void TestGetFileInfoGenerator(FileSystem* fs);
214
+ void TestOpenOutputStream(FileSystem* fs);
215
+ void TestOpenAppendStream(FileSystem* fs);
216
+ void TestOpenInputStream(FileSystem* fs);
217
+ void TestOpenInputStreamWithFileInfo(FileSystem* fs);
218
+ void TestOpenInputStreamAsync(FileSystem* fs);
219
+ void TestOpenInputFile(FileSystem* fs);
220
+ void TestOpenInputFileWithFileInfo(FileSystem* fs);
221
+ void TestOpenInputFileAsync(FileSystem* fs);
222
+ void TestSpecialChars(FileSystem* fs);
223
+ };
224
+
225
+ #define GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, NAME) \
226
+ TEST_MACRO(TEST_CLASS, NAME) { this->Test##NAME(); }
227
+
228
+ #define GENERIC_FS_TEST_FUNCTIONS_MACROS(TEST_MACRO, TEST_CLASS) \
229
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, Empty) \
230
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, NormalizePath) \
231
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, CreateDir) \
232
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, DeleteDir) \
233
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, DeleteDirContents) \
234
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, DeleteRootDirContents) \
235
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, DeleteFile) \
236
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, DeleteFiles) \
237
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, MoveFile) \
238
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, MoveDir) \
239
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, CopyFile) \
240
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, CopyFiles) \
241
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, GetFileInfo) \
242
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, GetFileInfoVector) \
243
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, GetFileInfoSelector) \
244
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, GetFileInfoSelectorWithRecursion) \
245
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, GetFileInfoAsync) \
246
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, GetFileInfoGenerator) \
247
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, OpenOutputStream) \
248
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, OpenAppendStream) \
249
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, OpenInputStream) \
250
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, OpenInputStreamWithFileInfo) \
251
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, OpenInputStreamAsync) \
252
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, OpenInputFile) \
253
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, OpenInputFileWithFileInfo) \
254
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, OpenInputFileAsync) \
255
+ GENERIC_FS_TEST_FUNCTION(TEST_MACRO, TEST_CLASS, SpecialChars)
256
+
257
+ #define GENERIC_FS_TEST_FUNCTIONS(TEST_CLASS) \
258
+ GENERIC_FS_TEST_FUNCTIONS_MACROS(TEST_F, TEST_CLASS)
259
+
260
+ #define GENERIC_FS_TYPED_TEST_FUNCTIONS(TEST_CLASS) \
261
+ GENERIC_FS_TEST_FUNCTIONS_MACROS(TYPED_TEST, TEST_CLASS)
262
+
263
+ } // namespace fs
264
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/filesystem/type_fwd.h ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <cstdint>
21
+
22
+ namespace arrow {
23
+ namespace fs {
24
+
25
+ /// \brief FileSystem entry type
26
+ enum class FileType : int8_t {
27
+ /// Entry is not found
28
+ NotFound,
29
+ /// Entry exists but its type is unknown
30
+ ///
31
+ /// This can designate a special file such as a Unix socket or character
32
+ /// device, or Windows NUL / CON / ...
33
+ Unknown,
34
+ /// Entry is a regular file
35
+ File,
36
+ /// Entry is a directory
37
+ Directory
38
+ };
39
+
40
+ struct FileInfo;
41
+
42
+ struct FileSelector;
43
+
44
+ class FileSystem;
45
+ class AzureFileSystem;
46
+ class GcsFileSystem;
47
+ class LocalFileSystem;
48
+ class S3FileSystem;
49
+ class SlowFileSystem;
50
+ class SubTreeFileSystem;
51
+
52
+ } // namespace fs
53
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/api.h ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/flight/client.h"
21
+ #include "arrow/flight/client_auth.h"
22
+ #include "arrow/flight/client_middleware.h"
23
+ #include "arrow/flight/client_tracing_middleware.h"
24
+ #include "arrow/flight/middleware.h"
25
+ #include "arrow/flight/server.h"
26
+ #include "arrow/flight/server_auth.h"
27
+ #include "arrow/flight/server_middleware.h"
28
+ #include "arrow/flight/server_tracing_middleware.h"
29
+ #include "arrow/flight/types.h"
30
+ #include "arrow/flight/types_async.h"
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client.h ADDED
@@ -0,0 +1,434 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ /// \brief Implementation of Flight RPC client.
19
+
20
+ #pragma once
21
+
22
+ #include <chrono>
23
+ #include <memory>
24
+ #include <string>
25
+ #include <utility>
26
+ #include <variant>
27
+ #include <vector>
28
+
29
+ #include "arrow/ipc/options.h"
30
+ #include "arrow/ipc/reader.h"
31
+ #include "arrow/ipc/writer.h"
32
+ #include "arrow/result.h"
33
+ #include "arrow/status.h"
34
+ #include "arrow/util/cancel.h"
35
+
36
+ #include "arrow/flight/type_fwd.h"
37
+ #include "arrow/flight/types.h" // IWYU pragma: keep
38
+ #include "arrow/flight/visibility.h"
39
+
40
+ namespace arrow {
41
+
42
+ class RecordBatch;
43
+ class Schema;
44
+
45
+ namespace flight {
46
+
47
+ /// \brief A duration type for Flight call timeouts.
48
+ typedef std::chrono::duration<double, std::chrono::seconds::period> TimeoutDuration;
49
+
50
+ /// \brief Hints to the underlying RPC layer for Arrow Flight calls.
51
+ class ARROW_FLIGHT_EXPORT FlightCallOptions {
52
+ public:
53
+ /// Create a default set of call options.
54
+ FlightCallOptions();
55
+
56
+ /// \brief An optional timeout for this call. Negative durations
57
+ /// mean an implementation-defined default behavior will be used
58
+ /// instead. This is the default value.
59
+ TimeoutDuration timeout;
60
+
61
+ /// \brief IPC reader options, if applicable for the call.
62
+ ipc::IpcReadOptions read_options;
63
+
64
+ /// \brief IPC writer options, if applicable for the call.
65
+ ipc::IpcWriteOptions write_options;
66
+
67
+ /// \brief Headers for client to add to context.
68
+ std::vector<std::pair<std::string, std::string>> headers;
69
+
70
+ /// \brief A token to enable interactive user cancellation of long-running requests.
71
+ StopToken stop_token;
72
+
73
+ /// \brief An optional memory manager to control where to allocate incoming data.
74
+ std::shared_ptr<MemoryManager> memory_manager;
75
+ };
76
+
77
+ /// \brief Indicate that the client attempted to write a message
78
+ /// larger than the soft limit set via write_size_limit_bytes.
79
+ class ARROW_FLIGHT_EXPORT FlightWriteSizeStatusDetail : public arrow::StatusDetail {
80
+ public:
81
+ explicit FlightWriteSizeStatusDetail(int64_t limit, int64_t actual)
82
+ : limit_(limit), actual_(actual) {}
83
+ const char* type_id() const override;
84
+ std::string ToString() const override;
85
+ int64_t limit() const { return limit_; }
86
+ int64_t actual() const { return actual_; }
87
+
88
+ /// \brief Extract this status detail from a status, or return
89
+ /// nullptr if the status doesn't contain this status detail.
90
+ static std::shared_ptr<FlightWriteSizeStatusDetail> UnwrapStatus(
91
+ const arrow::Status& status);
92
+
93
+ private:
94
+ int64_t limit_;
95
+ int64_t actual_;
96
+ };
97
+
98
+ struct ARROW_FLIGHT_EXPORT FlightClientOptions {
99
+ /// \brief Root certificates to use for validating server
100
+ /// certificates.
101
+ std::string tls_root_certs;
102
+ /// \brief Override the hostname checked by TLS. Use with caution.
103
+ std::string override_hostname;
104
+ /// \brief The client certificate to use if using Mutual TLS
105
+ std::string cert_chain;
106
+ /// \brief The private key associated with the client certificate for Mutual TLS
107
+ std::string private_key;
108
+ /// \brief A list of client middleware to apply.
109
+ std::vector<std::shared_ptr<ClientMiddlewareFactory>> middleware;
110
+ /// \brief A soft limit on the number of bytes to write in a single
111
+ /// batch when sending Arrow data to a server.
112
+ ///
113
+ /// Used to help limit server memory consumption. Only enabled if
114
+ /// positive. When enabled, FlightStreamWriter.Write* may yield a
115
+ /// IOError with error detail FlightWriteSizeStatusDetail.
116
+ int64_t write_size_limit_bytes = 0;
117
+
118
+ /// \brief Generic connection options, passed to the underlying
119
+ /// transport; interpretation is implementation-dependent.
120
+ std::vector<std::pair<std::string, std::variant<int, std::string>>> generic_options;
121
+
122
+ /// \brief Use TLS without validating the server certificate. Use with caution.
123
+ bool disable_server_verification = false;
124
+
125
+ /// \brief Get default options.
126
+ static FlightClientOptions Defaults();
127
+ };
128
+
129
+ /// \brief A RecordBatchReader exposing Flight metadata and cancel
130
+ /// operations.
131
+ class ARROW_FLIGHT_EXPORT FlightStreamReader : public MetadataRecordBatchReader {
132
+ public:
133
+ /// \brief Try to cancel the call.
134
+ virtual void Cancel() = 0;
135
+
136
+ using MetadataRecordBatchReader::ToRecordBatches;
137
+ /// \brief Consume entire stream as a vector of record batches
138
+ virtual arrow::Result<std::vector<std::shared_ptr<RecordBatch>>> ToRecordBatches(
139
+ const StopToken& stop_token) = 0;
140
+
141
+ using MetadataRecordBatchReader::ToTable;
142
+ /// \brief Consume entire stream as a Table
143
+ arrow::Result<std::shared_ptr<Table>> ToTable(const StopToken& stop_token);
144
+
145
+ using MetadataRecordBatchReader::stats;
146
+ /// \brief Return current read statistics
147
+ virtual arrow::ipc::ReadStats stats() const = 0;
148
+ };
149
+
150
+ // Silence warning
151
+ // "non dll-interface class RecordBatchReader used as base for dll-interface class"
152
+ #ifdef _MSC_VER
153
+ # pragma warning(push)
154
+ # pragma warning(disable : 4275)
155
+ #endif
156
+
157
+ /// \brief A RecordBatchWriter that also allows sending
158
+ /// application-defined metadata via the Flight protocol.
159
+ class ARROW_FLIGHT_EXPORT FlightStreamWriter : public MetadataRecordBatchWriter {
160
+ public:
161
+ /// \brief Indicate that the application is done writing to this stream.
162
+ ///
163
+ /// The application may not write to this stream after calling
164
+ /// this. This differs from closing the stream because this writer
165
+ /// may represent only one half of a readable and writable stream.
166
+ virtual Status DoneWriting() = 0;
167
+ };
168
+
169
+ #ifdef _MSC_VER
170
+ # pragma warning(pop)
171
+ #endif
172
+
173
+ /// \brief A reader for application-specific metadata sent back to the
174
+ /// client during an upload.
175
+ class ARROW_FLIGHT_EXPORT FlightMetadataReader {
176
+ public:
177
+ virtual ~FlightMetadataReader();
178
+ /// \brief Read a message from the server.
179
+ virtual Status ReadMetadata(std::shared_ptr<Buffer>* out) = 0;
180
+ };
181
+
182
+ /// \brief Client class for Arrow Flight RPC services.
183
+ class ARROW_FLIGHT_EXPORT FlightClient {
184
+ public:
185
+ ~FlightClient();
186
+
187
+ /// \brief Connect to an unauthenticated flight service
188
+ /// \param[in] location the URI
189
+ /// \return Arrow result with the created FlightClient, OK status may not indicate that
190
+ /// the connection was successful
191
+ static arrow::Result<std::unique_ptr<FlightClient>> Connect(const Location& location);
192
+
193
+ /// \brief Connect to an unauthenticated flight service
194
+ /// \param[in] location the URI
195
+ /// \param[in] options Other options for setting up the client
196
+ /// \return Arrow result with the created FlightClient, OK status may not indicate that
197
+ /// the connection was successful
198
+ static arrow::Result<std::unique_ptr<FlightClient>> Connect(
199
+ const Location& location, const FlightClientOptions& options);
200
+
201
+ /// \brief Authenticate to the server using the given handler.
202
+ /// \param[in] options Per-RPC options
203
+ /// \param[in] auth_handler The authentication mechanism to use
204
+ /// \return Status OK if the client authenticated successfully
205
+ Status Authenticate(const FlightCallOptions& options,
206
+ std::unique_ptr<ClientAuthHandler> auth_handler);
207
+
208
+ /// \brief Authenticate to the server using basic HTTP style authentication.
209
+ /// \param[in] options Per-RPC options
210
+ /// \param[in] username Username to use
211
+ /// \param[in] password Password to use
212
+ /// \return Arrow result with bearer token and status OK if client authenticated
213
+ /// successfully
214
+ arrow::Result<std::pair<std::string, std::string>> AuthenticateBasicToken(
215
+ const FlightCallOptions& options, const std::string& username,
216
+ const std::string& password);
217
+
218
+ /// \brief Perform the indicated action, returning an iterator to the stream
219
+ /// of results, if any
220
+ /// \param[in] options Per-RPC options
221
+ /// \param[in] action the action to be performed
222
+ /// \return Arrow result with an iterator object for reading the returned results
223
+ arrow::Result<std::unique_ptr<ResultStream>> DoAction(const FlightCallOptions& options,
224
+ const Action& action);
225
+ arrow::Result<std::unique_ptr<ResultStream>> DoAction(const Action& action) {
226
+ return DoAction({}, action);
227
+ }
228
+
229
+ /// \brief Perform the CancelFlightInfo action, returning a
230
+ /// CancelFlightInfoResult
231
+ ///
232
+ /// \param[in] options Per-RPC options
233
+ /// \param[in] request The CancelFlightInfoRequest
234
+ /// \return Arrow result with a CancelFlightInfoResult
235
+ arrow::Result<CancelFlightInfoResult> CancelFlightInfo(
236
+ const FlightCallOptions& options, const CancelFlightInfoRequest& request);
237
+ arrow::Result<CancelFlightInfoResult> CancelFlightInfo(
238
+ const CancelFlightInfoRequest& request) {
239
+ return CancelFlightInfo({}, request);
240
+ }
241
+
242
+ /// \brief Perform the RenewFlightEndpoint action, returning a renewed
243
+ /// FlightEndpoint
244
+ ///
245
+ /// \param[in] options Per-RPC options
246
+ /// \param[in] request The RenewFlightEndpointRequest
247
+ /// \return Arrow result with a renewed FlightEndpoint
248
+ arrow::Result<FlightEndpoint> RenewFlightEndpoint(
249
+ const FlightCallOptions& options, const RenewFlightEndpointRequest& request);
250
+ arrow::Result<FlightEndpoint> RenewFlightEndpoint(
251
+ const RenewFlightEndpointRequest& request) {
252
+ return RenewFlightEndpoint({}, request);
253
+ }
254
+
255
+ /// \brief Retrieve a list of available Action types
256
+ /// \param[in] options Per-RPC options
257
+ /// \return Arrow result with the available actions
258
+ arrow::Result<std::vector<ActionType>> ListActions(const FlightCallOptions& options);
259
+ arrow::Result<std::vector<ActionType>> ListActions() {
260
+ return ListActions(FlightCallOptions());
261
+ }
262
+
263
+ /// \brief Request access plan for a single flight, which may be an existing
264
+ /// dataset or a command to be executed
265
+ /// \param[in] options Per-RPC options
266
+ /// \param[in] descriptor the dataset request, whether a named dataset or
267
+ /// command
268
+ /// \return Arrow result with the FlightInfo describing where to access the dataset
269
+ arrow::Result<std::unique_ptr<FlightInfo>> GetFlightInfo(
270
+ const FlightCallOptions& options, const FlightDescriptor& descriptor);
271
+ arrow::Result<std::unique_ptr<FlightInfo>> GetFlightInfo(
272
+ const FlightDescriptor& descriptor) {
273
+ return GetFlightInfo({}, descriptor);
274
+ }
275
+
276
+ /// \brief Asynchronous GetFlightInfo.
277
+ /// \param[in] options Per-RPC options
278
+ /// \param[in] descriptor the dataset request
279
+ /// \param[in] listener Callbacks for response and RPC completion
280
+ void GetFlightInfoAsync(const FlightCallOptions& options,
281
+ const FlightDescriptor& descriptor,
282
+ std::shared_ptr<AsyncListener<FlightInfo>> listener);
283
+ void GetFlightInfoAsync(const FlightDescriptor& descriptor,
284
+ std::shared_ptr<AsyncListener<FlightInfo>> listener) {
285
+ return GetFlightInfoAsync({}, descriptor, std::move(listener));
286
+ }
287
+
288
+ /// \brief Asynchronous GetFlightInfo returning a Future.
289
+ /// \param[in] options Per-RPC options
290
+ /// \param[in] descriptor the dataset request
291
+ arrow::Future<FlightInfo> GetFlightInfoAsync(const FlightCallOptions& options,
292
+ const FlightDescriptor& descriptor);
293
+ arrow::Future<FlightInfo> GetFlightInfoAsync(const FlightDescriptor& descriptor) {
294
+ return GetFlightInfoAsync({}, descriptor);
295
+ }
296
+
297
+ /// \brief Request and poll a long running query
298
+ /// \param[in] options Per-RPC options
299
+ /// \param[in] descriptor the dataset request or a descriptor returned by a
300
+ /// prior PollFlightInfo call
301
+ /// \return Arrow result with the PollInfo describing the status of
302
+ /// the requested query
303
+ arrow::Result<std::unique_ptr<PollInfo>> PollFlightInfo(
304
+ const FlightCallOptions& options, const FlightDescriptor& descriptor);
305
+ arrow::Result<std::unique_ptr<PollInfo>> PollFlightInfo(
306
+ const FlightDescriptor& descriptor) {
307
+ return PollFlightInfo({}, descriptor);
308
+ }
309
+
310
+ /// \brief Request schema for a single flight, which may be an existing
311
+ /// dataset or a command to be executed
312
+ /// \param[in] options Per-RPC options
313
+ /// \param[in] descriptor the dataset request, whether a named dataset or
314
+ /// command
315
+ /// \return Arrow result with the SchemaResult describing the dataset schema
316
+ arrow::Result<std::unique_ptr<SchemaResult>> GetSchema(
317
+ const FlightCallOptions& options, const FlightDescriptor& descriptor);
318
+
319
+ arrow::Result<std::unique_ptr<SchemaResult>> GetSchema(
320
+ const FlightDescriptor& descriptor) {
321
+ return GetSchema({}, descriptor);
322
+ }
323
+
324
+ /// \brief List all available flights known to the server
325
+ /// \return Arrow result with an iterator that returns a FlightInfo for each flight
326
+ arrow::Result<std::unique_ptr<FlightListing>> ListFlights();
327
+
328
+ /// \brief List available flights given indicated filter criteria
329
+ /// \param[in] options Per-RPC options
330
+ /// \param[in] criteria the filter criteria (opaque)
331
+ /// \return Arrow result with an iterator that returns a FlightInfo for each flight
332
+ arrow::Result<std::unique_ptr<FlightListing>> ListFlights(
333
+ const FlightCallOptions& options, const Criteria& criteria);
334
+
335
+ /// \brief Given a flight ticket and schema, request to be sent the
336
+ /// stream. Returns record batch stream reader
337
+ /// \param[in] options Per-RPC options
338
+ /// \param[in] ticket The flight ticket to use
339
+ /// \return Arrow result with the returned RecordBatchReader
340
+ arrow::Result<std::unique_ptr<FlightStreamReader>> DoGet(
341
+ const FlightCallOptions& options, const Ticket& ticket);
342
+ arrow::Result<std::unique_ptr<FlightStreamReader>> DoGet(const Ticket& ticket) {
343
+ return DoGet({}, ticket);
344
+ }
345
+
346
+ /// \brief DoPut return value
347
+ struct DoPutResult {
348
+ /// \brief a writer to write record batches to
349
+ std::unique_ptr<FlightStreamWriter> writer;
350
+ /// \brief a reader for application metadata from the server
351
+ std::unique_ptr<FlightMetadataReader> reader;
352
+ };
353
+ /// \brief Upload data to a Flight described by the given
354
+ /// descriptor. The caller must call Close() on the returned stream
355
+ /// once they are done writing.
356
+ ///
357
+ /// The reader and writer are linked; closing the writer will also
358
+ /// close the reader. Use \a DoneWriting to only close the write
359
+ /// side of the channel.
360
+ ///
361
+ /// \param[in] options Per-RPC options
362
+ /// \param[in] descriptor the descriptor of the stream
363
+ /// \param[in] schema the schema for the data to upload
364
+ /// \return Arrow result with a DoPutResult struct holding a reader and a writer
365
+ arrow::Result<DoPutResult> DoPut(const FlightCallOptions& options,
366
+ const FlightDescriptor& descriptor,
367
+ const std::shared_ptr<Schema>& schema);
368
+
369
+ arrow::Result<DoPutResult> DoPut(const FlightDescriptor& descriptor,
370
+ const std::shared_ptr<Schema>& schema) {
371
+ return DoPut({}, descriptor, schema);
372
+ }
373
+
374
+ struct DoExchangeResult {
375
+ std::unique_ptr<FlightStreamWriter> writer;
376
+ std::unique_ptr<FlightStreamReader> reader;
377
+ };
378
+ arrow::Result<DoExchangeResult> DoExchange(const FlightCallOptions& options,
379
+ const FlightDescriptor& descriptor);
380
+ arrow::Result<DoExchangeResult> DoExchange(const FlightDescriptor& descriptor) {
381
+ return DoExchange({}, descriptor);
382
+ }
383
+
384
+ /// \brief Set server session option(s) by name/value. Sessions are generally
385
+ /// persisted via HTTP cookies.
386
+ /// \param[in] options Per-RPC options
387
+ /// \param[in] request The server session options to set
388
+ ::arrow::Result<SetSessionOptionsResult> SetSessionOptions(
389
+ const FlightCallOptions& options, const SetSessionOptionsRequest& request);
390
+
391
+ /// \brief Get the current server session options. The session is generally
392
+ /// accessed via an HTTP cookie.
393
+ /// \param[in] options Per-RPC options
394
+ /// \param[in] request The (empty) GetSessionOptions request object.
395
+ ::arrow::Result<GetSessionOptionsResult> GetSessionOptions(
396
+ const FlightCallOptions& options, const GetSessionOptionsRequest& request);
397
+
398
+ /// \brief Close/invalidate the current server session. The session is generally
399
+ /// accessed via an HTTP cookie.
400
+ /// \param[in] options Per-RPC options
401
+ /// \param[in] request The (empty) CloseSession request object.
402
+ ::arrow::Result<CloseSessionResult> CloseSession(const FlightCallOptions& options,
403
+ const CloseSessionRequest& request);
404
+
405
+ /// \brief Explicitly shut down and clean up the client.
406
+ ///
407
+ /// For backwards compatibility, this will be implicitly called by
408
+ /// the destructor if not already called, but this gives the
409
+ /// application no chance to handle errors, so it is recommended to
410
+ /// explicitly close the client.
411
+ ///
412
+ /// \since 8.0.0
413
+ Status Close();
414
+
415
+ /// \brief Whether this client supports asynchronous methods.
416
+ bool supports_async() const;
417
+
418
+ /// \brief Check whether this client supports asynchronous methods.
419
+ ///
420
+ /// This is like supports_async(), except that a detailed error message
421
+ /// is returned if async support is not available. If async support is
422
+ /// available, this function returns successfully.
423
+ Status CheckAsyncSupport() const;
424
+
425
+ private:
426
+ FlightClient();
427
+ Status CheckOpen() const;
428
+ std::unique_ptr<internal::ClientTransport> transport_;
429
+ bool closed_;
430
+ int64_t write_size_limit_bytes_;
431
+ };
432
+
433
+ } // namespace flight
434
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client_auth.h ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include <string>
21
+
22
+ #include "arrow/flight/visibility.h"
23
+ #include "arrow/status.h"
24
+
25
+ namespace arrow {
26
+
27
+ namespace flight {
28
+
29
+ /// \brief A reader for messages from the server during an
30
+ /// authentication handshake.
31
+ class ARROW_FLIGHT_EXPORT ClientAuthReader {
32
+ public:
33
+ virtual ~ClientAuthReader() = default;
34
+ virtual Status Read(std::string* response) = 0;
35
+ };
36
+
37
+ /// \brief A writer for messages to the server during an
38
+ /// authentication handshake.
39
+ class ARROW_FLIGHT_EXPORT ClientAuthSender {
40
+ public:
41
+ virtual ~ClientAuthSender() = default;
42
+ virtual Status Write(const std::string& token) = 0;
43
+ };
44
+
45
+ /// \brief An authentication implementation for a Flight service.
46
+ /// Authentication includes both an initial negotiation and a per-call
47
+ /// token validation. Implementations may choose to use either or both
48
+ /// mechanisms.
49
+ class ARROW_FLIGHT_EXPORT ClientAuthHandler {
50
+ public:
51
+ virtual ~ClientAuthHandler() = default;
52
+ /// \brief Authenticate the client on initial connection. The client
53
+ /// can send messages to/read responses from the server at any time.
54
+ /// \return Status OK if authenticated successfully
55
+ virtual Status Authenticate(ClientAuthSender* outgoing, ClientAuthReader* incoming) = 0;
56
+ /// \brief Get a per-call token.
57
+ /// \param[out] token The token to send to the server.
58
+ virtual Status GetToken(std::string* token) = 0;
59
+ };
60
+
61
+ } // namespace flight
62
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client_cookie_middleware.h ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Middleware implementation for sending and receiving HTTP cookies.
19
+
20
+ #pragma once
21
+
22
+ #include <memory>
23
+
24
+ #include "arrow/flight/client_middleware.h"
25
+
26
+ namespace arrow {
27
+ namespace flight {
28
+
29
+ /// \brief Returns a ClientMiddlewareFactory that handles sending and receiving cookies.
30
+ ARROW_FLIGHT_EXPORT std::shared_ptr<ClientMiddlewareFactory> GetCookieFactory();
31
+
32
+ } // namespace flight
33
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client_middleware.h ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Interfaces for defining middleware for Flight clients. Currently
19
+ // experimental.
20
+
21
+ #pragma once
22
+
23
+ #include <memory>
24
+
25
+ #include "arrow/flight/middleware.h"
26
+ #include "arrow/flight/visibility.h" // IWYU pragma: keep
27
+ #include "arrow/status.h"
28
+
29
+ namespace arrow {
30
+ namespace flight {
31
+
32
+ /// \brief Client-side middleware for a call, instantiated per RPC.
33
+ ///
34
+ /// Middleware should be fast and must be infallible: there is no way
35
+ /// to reject the call or report errors from the middleware instance.
36
+ class ARROW_FLIGHT_EXPORT ClientMiddleware {
37
+ public:
38
+ virtual ~ClientMiddleware() = default;
39
+
40
+ /// \brief A callback before headers are sent. Extra headers can be
41
+ /// added, but existing ones cannot be read.
42
+ virtual void SendingHeaders(AddCallHeaders* outgoing_headers) = 0;
43
+
44
+ /// \brief A callback when headers are received from the server.
45
+ ///
46
+ /// This may be called more than once, since servers send both
47
+ /// headers and trailers. Some implementations (e.g. gRPC-Java, and
48
+ /// hence Arrow Flight in Java) may consolidate headers into
49
+ /// trailers if the RPC errored.
50
+ virtual void ReceivedHeaders(const CallHeaders& incoming_headers) = 0;
51
+
52
+ /// \brief A callback after the call has completed.
53
+ virtual void CallCompleted(const Status& status) = 0;
54
+ };
55
+
56
+ /// \brief A factory for new middleware instances.
57
+ ///
58
+ /// If added to a client, this will be called for each RPC (including
59
+ /// Handshake) to give the opportunity to intercept the call.
60
+ ///
61
+ /// It is guaranteed that all client middleware methods are called
62
+ /// from the same thread that calls the RPC method implementation.
63
+ class ARROW_FLIGHT_EXPORT ClientMiddlewareFactory {
64
+ public:
65
+ virtual ~ClientMiddlewareFactory() = default;
66
+
67
+ /// \brief A callback for the start of a new call.
68
+ ///
69
+ /// \param info Information about the call.
70
+ /// \param[out] middleware The middleware instance for this call. If
71
+ /// unset, will not add middleware to this call instance from
72
+ /// this factory.
73
+ virtual void StartCall(const CallInfo& info,
74
+ std::unique_ptr<ClientMiddleware>* middleware) = 0;
75
+ };
76
+
77
+ } // namespace flight
78
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/client_tracing_middleware.h ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Middleware implementation for propagating OpenTelemetry spans.
19
+
20
+ #pragma once
21
+
22
+ #include <memory>
23
+
24
+ #include "arrow/flight/client_middleware.h"
25
+
26
+ namespace arrow {
27
+ namespace flight {
28
+
29
+ /// \brief Returns a ClientMiddlewareFactory that handles sending OpenTelemetry spans.
30
+ ARROW_FLIGHT_EXPORT std::shared_ptr<ClientMiddlewareFactory>
31
+ MakeTracingClientMiddlewareFactory();
32
+
33
+ } // namespace flight
34
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/middleware.h ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Interfaces for defining middleware for Flight clients and
19
+ // servers.
20
+
21
+ #pragma once
22
+
23
+ #include <memory>
24
+ #include <string>
25
+ #include <string_view>
26
+ #include <utility>
27
+
28
+ #include "arrow/flight/types.h"
29
+ #include "arrow/status.h"
30
+
31
+ namespace arrow {
32
+ namespace flight {
33
+
34
+ /// \brief A write-only wrapper around headers for an RPC call.
35
+ class ARROW_FLIGHT_EXPORT AddCallHeaders {
36
+ public:
37
+ virtual ~AddCallHeaders() = default;
38
+
39
+ /// \brief Add a header to be sent to the client.
40
+ ///
41
+ /// \param[in] key The header name. Must be lowercase ASCII; some
42
+ /// transports may reject invalid header names.
43
+ /// \param[in] value The header value. Some transports may only
44
+ /// accept binary header values if the header name ends in "-bin".
45
+ virtual void AddHeader(const std::string& key, const std::string& value) = 0;
46
+ };
47
+
48
+ /// \brief An enumeration of the RPC methods Flight implements.
49
+ enum class FlightMethod : char {
50
+ Invalid = 0,
51
+ Handshake = 1,
52
+ ListFlights = 2,
53
+ GetFlightInfo = 3,
54
+ GetSchema = 4,
55
+ DoGet = 5,
56
+ DoPut = 6,
57
+ DoAction = 7,
58
+ ListActions = 8,
59
+ DoExchange = 9,
60
+ PollFlightInfo = 10,
61
+ };
62
+
63
+ /// \brief Get a human-readable name for a Flight method.
64
+ ARROW_FLIGHT_EXPORT
65
+ std::string ToString(FlightMethod method);
66
+
67
+ /// \brief Information about an instance of a Flight RPC.
68
+ struct ARROW_FLIGHT_EXPORT CallInfo {
69
+ public:
70
+ /// \brief The RPC method of this call.
71
+ FlightMethod method;
72
+ };
73
+
74
+ } // namespace flight
75
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/otel_logging.h ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ #pragma once
19
+
20
+ #include "arrow/util/config.h"
21
+
22
+ #ifdef ARROW_WITH_OPENTELEMETRY
23
+ # include "arrow/status.h"
24
+ # include "arrow/telemetry/logging.h"
25
+ # include "arrow/util/macros.h"
26
+
27
+ namespace arrow::flight {
28
+
29
+ ARROW_EXPORT Status
30
+ RegisterFlightOtelLoggers(const telemetry::OtelLoggingOptions& options);
31
+
32
+ } // namespace arrow::flight
33
+ #endif
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/platform.h ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Internal header. Platform-specific definitions for Flight.
19
+
20
+ #pragma once
21
+
22
+ #ifdef _MSC_VER
23
+
24
+ // The protobuf documentation says that C4251 warnings when using the
25
+ // library are spurious and suppressed when the build the library and
26
+ // compiler, but must be also suppressed in downstream projects
27
+ # pragma warning(disable : 4251)
28
+
29
+ #endif // _MSC_VER
30
+
31
+ #include "arrow/util/config.h" // IWYU pragma: keep
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/server.h ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ // Interfaces to use for defining Flight RPC servers.
19
+
20
+ #pragma once
21
+
22
+ #include <chrono>
23
+ #include <functional>
24
+ #include <memory>
25
+ #include <string>
26
+ #include <utility>
27
+ #include <vector>
28
+
29
+ #include "arrow/flight/server_auth.h"
30
+ #include "arrow/flight/type_fwd.h"
31
+ #include "arrow/flight/types.h" // IWYU pragma: keep
32
+ #include "arrow/flight/visibility.h" // IWYU pragma: keep
33
+ #include "arrow/ipc/dictionary.h"
34
+ #include "arrow/ipc/options.h"
35
+ #include "arrow/record_batch.h"
36
+
37
+ namespace arrow {
38
+
39
+ class Schema;
40
+ class Status;
41
+
42
+ namespace flight {
43
+
44
+ /// \brief Interface that produces a sequence of IPC payloads to be sent in
45
+ /// FlightData protobuf messages
46
+ class ARROW_FLIGHT_EXPORT FlightDataStream {
47
+ public:
48
+ virtual ~FlightDataStream();
49
+
50
+ virtual std::shared_ptr<Schema> schema() = 0;
51
+
52
+ /// \brief Compute FlightPayload containing serialized RecordBatch schema
53
+ virtual arrow::Result<FlightPayload> GetSchemaPayload() = 0;
54
+
55
+ // When the stream is completed, the last payload written will have null
56
+ // metadata
57
+ virtual arrow::Result<FlightPayload> Next() = 0;
58
+
59
+ virtual Status Close();
60
+ };
61
+
62
+ /// \brief A basic implementation of FlightDataStream that will provide
63
+ /// a sequence of FlightData messages to be written to a stream
64
+ class ARROW_FLIGHT_EXPORT RecordBatchStream : public FlightDataStream {
65
+ public:
66
+ /// \param[in] reader produces a sequence of record batches
67
+ /// \param[in] options IPC options for writing
68
+ explicit RecordBatchStream(
69
+ const std::shared_ptr<RecordBatchReader>& reader,
70
+ const ipc::IpcWriteOptions& options = ipc::IpcWriteOptions::Defaults());
71
+ ~RecordBatchStream() override;
72
+
73
+ // inherit deprecated API
74
+ using FlightDataStream::GetSchemaPayload;
75
+ using FlightDataStream::Next;
76
+
77
+ std::shared_ptr<Schema> schema() override;
78
+ arrow::Result<FlightPayload> GetSchemaPayload() override;
79
+
80
+ arrow::Result<FlightPayload> Next() override;
81
+ Status Close() override;
82
+
83
+ private:
84
+ class RecordBatchStreamImpl;
85
+ std::unique_ptr<RecordBatchStreamImpl> impl_;
86
+ };
87
+
88
+ /// \brief A reader for IPC payloads uploaded by a client. Also allows
89
+ /// reading application-defined metadata via the Flight protocol.
90
+ class ARROW_FLIGHT_EXPORT FlightMessageReader : public MetadataRecordBatchReader {
91
+ public:
92
+ /// \brief Get the descriptor for this upload.
93
+ virtual const FlightDescriptor& descriptor() const = 0;
94
+ };
95
+
96
+ /// \brief A writer for application-specific metadata sent back to the
97
+ /// client during an upload.
98
+ class ARROW_FLIGHT_EXPORT FlightMetadataWriter {
99
+ public:
100
+ virtual ~FlightMetadataWriter();
101
+ /// \brief Send a message to the client.
102
+ virtual Status WriteMetadata(const Buffer& app_metadata) = 0;
103
+ };
104
+
105
+ /// \brief A writer for IPC payloads to a client. Also allows sending
106
+ /// application-defined metadata via the Flight protocol.
107
+ ///
108
+ /// This class offers more control compared to FlightDataStream,
109
+ /// including the option to write metadata without data and the
110
+ /// ability to interleave reading and writing.
111
+ class ARROW_FLIGHT_EXPORT FlightMessageWriter : public MetadataRecordBatchWriter {
112
+ public:
113
+ virtual ~FlightMessageWriter() = default;
114
+ };
115
+
116
+ /// \brief Call state/contextual data.
117
+ class ARROW_FLIGHT_EXPORT ServerCallContext {
118
+ public:
119
+ virtual ~ServerCallContext() = default;
120
+ /// \brief The name of the authenticated peer (may be the empty string)
121
+ virtual const std::string& peer_identity() const = 0;
122
+ /// \brief The peer address (not validated)
123
+ virtual const std::string& peer() const = 0;
124
+ /// \brief Add a response header. This is only valid before the server
125
+ /// starts sending the response; generally this isn't an issue unless you
126
+ /// are implementing FlightDataStream, ResultStream, or similar interfaces
127
+ /// yourself, or during a DoExchange or DoPut.
128
+ virtual void AddHeader(const std::string& key, const std::string& value) const = 0;
129
+ /// \brief Add a response trailer. This is only valid before the server
130
+ /// sends the final status; generally this isn't an issue unless your RPC
131
+ /// handler launches a thread or similar.
132
+ virtual void AddTrailer(const std::string& key, const std::string& value) const = 0;
133
+ /// \brief Look up a middleware by key. Do not maintain a reference
134
+ /// to the object beyond the request body.
135
+ /// \return The middleware, or nullptr if not found.
136
+ virtual ServerMiddleware* GetMiddleware(const std::string& key) const = 0;
137
+ /// \brief Check if the current RPC has been cancelled (by the client, by
138
+ /// a network error, etc.).
139
+ virtual bool is_cancelled() const = 0;
140
+ /// \brief The headers sent by the client for this call.
141
+ virtual const CallHeaders& incoming_headers() const = 0;
142
+ };
143
+
144
+ class ARROW_FLIGHT_EXPORT FlightServerOptions {
145
+ public:
146
+ explicit FlightServerOptions(const Location& location_);
147
+
148
+ ~FlightServerOptions();
149
+
150
+ /// \brief The host & port (or domain socket path) to listen on.
151
+ /// Use port 0 to bind to an available port.
152
+ Location location;
153
+ /// \brief The authentication handler to use.
154
+ std::shared_ptr<ServerAuthHandler> auth_handler;
155
+ /// \brief A list of TLS certificate+key pairs to use.
156
+ std::vector<CertKeyPair> tls_certificates;
157
+ /// \brief Enable mTLS and require that the client present a certificate.
158
+ bool verify_client;
159
+ /// \brief If using mTLS, the PEM-encoded root certificate to use.
160
+ std::string root_certificates;
161
+ /// \brief A list of server middleware to apply, along with a key to
162
+ /// identify them by.
163
+ ///
164
+ /// Middleware are always applied in the order provided. Duplicate
165
+ /// keys are an error.
166
+ std::vector<std::pair<std::string, std::shared_ptr<ServerMiddlewareFactory>>>
167
+ middleware;
168
+
169
+ /// \brief An optional memory manager to control where to allocate incoming data.
170
+ std::shared_ptr<MemoryManager> memory_manager;
171
+
172
+ /// \brief A Flight implementation-specific callback to customize
173
+ /// transport-specific options.
174
+ ///
175
+ /// Not guaranteed to be called. The type of the parameter is
176
+ /// specific to the Flight implementation. Users should take care to
177
+ /// link to the same transport implementation as Flight to avoid
178
+ /// runtime problems. See "Using Arrow C++ in your own project" in
179
+ /// the documentation for more details.
180
+ std::function<void(void*)> builder_hook;
181
+ };
182
+
183
+ /// \brief Skeleton RPC server implementation which can be used to create
184
+ /// custom servers by implementing its abstract methods
185
+ class ARROW_FLIGHT_EXPORT FlightServerBase {
186
+ public:
187
+ FlightServerBase();
188
+ virtual ~FlightServerBase();
189
+
190
+ // Lifecycle methods.
191
+
192
+ /// \brief Initialize a Flight server listening at the given location.
193
+ /// This method must be called before any other method.
194
+ /// \param[in] options The configuration for this server.
195
+ Status Init(const FlightServerOptions& options);
196
+
197
+ /// \brief Get the port that the Flight server is listening on.
198
+ /// This method must only be called after Init(). Will return a
199
+ /// non-positive value if no port exists (e.g. when listening on a
200
+ /// domain socket).
201
+ int port() const;
202
+
203
+ /// \brief Get the address that the Flight server is listening on.
204
+ /// This method must only be called after Init().
205
+ Location location() const;
206
+
207
+ /// \brief Set the server to stop when receiving any of the given signal
208
+ /// numbers.
209
+ /// This method must be called before Serve().
210
+ Status SetShutdownOnSignals(const std::vector<int> sigs);
211
+
212
+ /// \brief Start serving.
213
+ /// This method blocks until the server shuts down.
214
+ ///
215
+ /// The server will start to shut down when either Shutdown() is called
216
+ /// or one of the signals registered in SetShutdownOnSignals() is received.
217
+ Status Serve();
218
+
219
+ /// \brief Query whether Serve() was interrupted by a signal.
220
+ /// This method must be called after Serve() has returned.
221
+ ///
222
+ /// \return int the signal number that interrupted Serve(), if any, otherwise 0
223
+ int GotSignal() const;
224
+
225
+ /// \brief Shut down the server, blocking until current requests finish.
226
+ ///
227
+ /// Can be called from a signal handler or another thread while Serve()
228
+ /// blocks. Optionally a deadline can be set. Once the deadline expires
229
+ /// server will wait until remaining running calls complete.
230
+ ///
231
+ /// Should only be called once.
232
+ Status Shutdown(const std::chrono::system_clock::time_point* deadline = NULLPTR);
233
+
234
+ /// \brief Block until server shuts down with Shutdown.
235
+ ///
236
+ /// Does not respond to signals like Serve().
237
+ Status Wait();
238
+
239
+ // Implement these methods to create your own server. The default
240
+ // implementations will return a not-implemented result to the client
241
+
242
+ /// \brief Retrieve a list of available fields given an optional opaque
243
+ /// criteria
244
+ /// \param[in] context The call context.
245
+ /// \param[in] criteria may be null
246
+ /// \param[out] listings the returned listings iterator
247
+ /// \return Status
248
+ virtual Status ListFlights(const ServerCallContext& context, const Criteria* criteria,
249
+ std::unique_ptr<FlightListing>* listings);
250
+
251
+ /// \brief Retrieve the schema and an access plan for the indicated
252
+ /// descriptor
253
+ /// \param[in] context The call context.
254
+ /// \param[in] request the dataset request, whether a named dataset or command
255
+ /// \param[out] info the returned flight info provider
256
+ /// \return Status
257
+ virtual Status GetFlightInfo(const ServerCallContext& context,
258
+ const FlightDescriptor& request,
259
+ std::unique_ptr<FlightInfo>* info);
260
+
261
+ /// \brief Retrieve the current status of the target query
262
+ /// \param[in] context The call context.
263
+ /// \param[in] request the dataset request or a descriptor returned by a
264
+ /// prior PollFlightInfo call
265
+ /// \param[out] info the returned retry info provider
266
+ /// \return Status
267
+ virtual Status PollFlightInfo(const ServerCallContext& context,
268
+ const FlightDescriptor& request,
269
+ std::unique_ptr<PollInfo>* info);
270
+
271
+ /// \brief Retrieve the schema for the indicated descriptor
272
+ /// \param[in] context The call context.
273
+ /// \param[in] request the dataset request, whether a named dataset or command
274
+ /// \param[out] schema the returned flight schema provider
275
+ /// \return Status
276
+ virtual Status GetSchema(const ServerCallContext& context,
277
+ const FlightDescriptor& request,
278
+ std::unique_ptr<SchemaResult>* schema);
279
+
280
+ /// \brief Get a stream of IPC payloads to put on the wire
281
+ /// \param[in] context The call context.
282
+ /// \param[in] request an opaque ticket
283
+ /// \param[out] stream the returned stream provider
284
+ /// \return Status
285
+ virtual Status DoGet(const ServerCallContext& context, const Ticket& request,
286
+ std::unique_ptr<FlightDataStream>* stream);
287
+
288
+ /// \brief Process a stream of IPC payloads sent from a client
289
+ /// \param[in] context The call context.
290
+ /// \param[in] reader a sequence of uploaded record batches
291
+ /// \param[in] writer send metadata back to the client
292
+ /// \return Status
293
+ virtual Status DoPut(const ServerCallContext& context,
294
+ std::unique_ptr<FlightMessageReader> reader,
295
+ std::unique_ptr<FlightMetadataWriter> writer);
296
+
297
+ /// \brief Process a bidirectional stream of IPC payloads
298
+ /// \param[in] context The call context.
299
+ /// \param[in] reader a sequence of uploaded record batches
300
+ /// \param[in] writer send data back to the client
301
+ /// \return Status
302
+ virtual Status DoExchange(const ServerCallContext& context,
303
+ std::unique_ptr<FlightMessageReader> reader,
304
+ std::unique_ptr<FlightMessageWriter> writer);
305
+
306
+ /// \brief Execute an action, return stream of zero or more results
307
+ /// \param[in] context The call context.
308
+ /// \param[in] action the action to execute, with type and body
309
+ /// \param[out] result the result iterator
310
+ /// \return Status
311
+ virtual Status DoAction(const ServerCallContext& context, const Action& action,
312
+ std::unique_ptr<ResultStream>* result);
313
+
314
+ /// \brief Retrieve the list of available actions
315
+ /// \param[in] context The call context.
316
+ /// \param[out] actions a vector of available action types
317
+ /// \return Status
318
+ virtual Status ListActions(const ServerCallContext& context,
319
+ std::vector<ActionType>* actions);
320
+
321
+ private:
322
+ struct Impl;
323
+ std::unique_ptr<Impl> impl_;
324
+ };
325
+
326
+ } // namespace flight
327
+ } // namespace arrow
miniconda3/envs/active_proaction/lib/python3.10/site-packages/pyarrow/include/arrow/flight/server_auth.h ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Licensed to the Apache Software Foundation (ASF) under one
2
+ // or more contributor license agreements. See the NOTICE file
3
+ // distributed with this work for additional information
4
+ // regarding copyright ownership. The ASF licenses this file
5
+ // to you under the Apache License, Version 2.0 (the
6
+ // "License"); you may not use this file except in compliance
7
+ // with the License. You may obtain a copy of the License at
8
+ //
9
+ // http://www.apache.org/licenses/LICENSE-2.0
10
+ //
11
+ // Unless required by applicable law or agreed to in writing,
12
+ // software distributed under the License is distributed on an
13
+ // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ // KIND, either express or implied. See the License for the
15
+ // specific language governing permissions and limitations
16
+ // under the License.
17
+
18
+ /// \brief Server-side APIs to implement authentication for Flight.
19
+
20
+ #pragma once
21
+
22
+ #include <string>
23
+
24
+ #include "arrow/flight/type_fwd.h"
25
+ #include "arrow/flight/visibility.h"
26
+ #include "arrow/status.h"
27
+
28
+ namespace arrow {
29
+
30
+ namespace flight {
31
+
32
+ /// \brief A reader for messages from the client during an
33
+ /// authentication handshake.
34
+ class ARROW_FLIGHT_EXPORT ServerAuthReader {
35
+ public:
36
+ virtual ~ServerAuthReader() = default;
37
+ virtual Status Read(std::string* token) = 0;
38
+ };
39
+
40
+ /// \brief A writer for messages to the client during an
41
+ /// authentication handshake.
42
+ class ARROW_FLIGHT_EXPORT ServerAuthSender {
43
+ public:
44
+ virtual ~ServerAuthSender() = default;
45
+ virtual Status Write(const std::string& message) = 0;
46
+ };
47
+
48
+ /// \brief An authentication implementation for a Flight service.
49
+ /// Authentication includes both an initial negotiation and a per-call
50
+ /// token validation. Implementations may choose to use either or both
51
+ /// mechanisms.
52
+ /// An implementation may need to track some state, e.g. a mapping of
53
+ /// client tokens to authenticated identities.
54
+ class ARROW_FLIGHT_EXPORT ServerAuthHandler {
55
+ public:
56
+ virtual ~ServerAuthHandler();
57
+ /// \brief Authenticate the client on initial connection. The server
58
+ /// can send and read responses from the client at any time.
59
+ /// \param[in] context The call context.
60
+ /// \param[in] outgoing The writer for messages to the client.
61
+ /// \param[in] incoming The reader for messages from the client.
62
+ /// \return Status OK if this authentication is succeeded.
63
+ virtual Status Authenticate(const ServerCallContext& context,
64
+ ServerAuthSender* outgoing, ServerAuthReader* incoming) = 0;
65
+ /// \brief Validate a per-call client token.
66
+ /// \param[in] context The call context.
67
+ /// \param[in] token The client token. May be the empty string if
68
+ /// the client does not provide a token.
69
+ /// \param[out] peer_identity The identity of the peer, if this
70
+ /// authentication method supports it.
71
+ /// \return Status OK if the token is valid, any other status if
72
+ /// validation failed
73
+ virtual Status IsValid(const ServerCallContext& context, const std::string& token,
74
+ std::string* peer_identity) {
75
+ // TODO: We can make this pure virtual function when we remove
76
+ // the deprecated version.
77
+ ARROW_SUPPRESS_DEPRECATION_WARNING
78
+ return IsValid(token, peer_identity);
79
+ ARROW_UNSUPPRESS_DEPRECATION_WARNING
80
+ }
81
+ /// \brief Validate a per-call client token.
82
+ /// \param[in] token The client token. May be the empty string if
83
+ /// the client does not provide a token.
84
+ /// \param[out] peer_identity The identity of the peer, if this
85
+ /// authentication method supports it.
86
+ /// \return Status OK if the token is valid, any other status if
87
+ /// validation failed
88
+ /// \deprecated Deprecated in 13.0.0. Implement the IsValid()
89
+ /// with ServerCallContext version instead.
90
+ ARROW_DEPRECATED("Deprecated in 13.0.0. Use ServerCallContext overload instead.")
91
+ virtual Status IsValid(const std::string& token, std::string* peer_identity) {
92
+ return Status::NotImplemented(typeid(this).name(), "::IsValid() isn't implemented");
93
+ }
94
+ };
95
+
96
+ /// \brief An authentication mechanism that does nothing.
97
+ class ARROW_FLIGHT_EXPORT NoOpAuthHandler : public ServerAuthHandler {
98
+ public:
99
+ ~NoOpAuthHandler() override;
100
+ Status Authenticate(const ServerCallContext& context, ServerAuthSender* outgoing,
101
+ ServerAuthReader* incoming) override;
102
+ Status IsValid(const ServerCallContext& context, const std::string& token,
103
+ std::string* peer_identity) override;
104
+ };
105
+
106
+ } // namespace flight
107
+ } // namespace arrow