Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
arrow_to_python.h
Go to the documentation of this file.
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 #ifndef ARROW_PYTHON_ARROW_TO_PYTHON_H
19 #define ARROW_PYTHON_ARROW_TO_PYTHON_H
20 
21 #include "arrow/python/platform.h"
22 
23 #include <cstdint>
24 #include <memory>
25 #include <vector>
26 
28 #include "arrow/status.h"
29 #include "arrow/util/visibility.h"
30 
31 namespace arrow {
32 
33 class RecordBatch;
34 class Tensor;
35 
36 namespace io {
37 
38 class RandomAccessFile;
39 
40 } // namespace io
41 
42 namespace py {
43 
48 ARROW_EXPORT
49 Status ReadSerializedObject(io::RandomAccessFile* src, SerializedPyObject* out);
50 
63 ARROW_EXPORT
64 Status DeserializeObject(PyObject* context, const SerializedPyObject& object,
65  PyObject* base, PyObject** out);
66 
67 } // namespace py
68 } // namespace arrow
69 
70 #endif // ARROW_PYTHON_ARROW_TO_PYTHON_H
Status ReadSerializedObject(io::RandomAccessFile *src, SerializedPyObject *out)
Read serialized Python sequence from file interface using Arrow IPC.
Top-level namespace for Apache Arrow C++ API.
Definition: allocator.h:29
Status DeserializeObject(PyObject *context, const SerializedPyObject &object, PyObject *base, PyObject **out)
Reconstruct Python object from Arrow-serialized representation.