mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 01:09:50 +08:00
Stop vendoring pyarrow (#7233)
This commit is contained in:
@@ -10,8 +10,8 @@ cdef class Buffer:
|
||||
"""Cython wrapper class of C++ `ray::Buffer`.
|
||||
|
||||
This class implements the Python 'buffer protocol', which allows
|
||||
us to use it for calls into pyarrow (and other Python libraries
|
||||
down the line) without having to copy the data.
|
||||
us to use it for calls into Python libraries without having to
|
||||
copy the data.
|
||||
|
||||
See https://docs.python.org/3/c-api/buffer.html for details.
|
||||
"""
|
||||
|
||||
@@ -45,6 +45,9 @@ ctypedef void (*ray_callback_function) \
|
||||
(shared_ptr[CRayObject] result_object,
|
||||
CObjectID object_id, void* user_data)
|
||||
|
||||
ctypedef void (*plasma_callback_function) \
|
||||
(CObjectID object_id, int64_t data_size, int64_t metadata_size)
|
||||
|
||||
cdef extern from "ray/core_worker/profiling.h" nogil:
|
||||
cdef cppclass CProfiler "ray::worker::Profiler":
|
||||
void Start()
|
||||
@@ -194,3 +197,5 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
|
||||
CRayStatus SetResource(const c_string &resource_name,
|
||||
const double capacity,
|
||||
const CClientID &client_Id)
|
||||
|
||||
void SubscribeToAsyncPlasma(plasma_callback_function callback)
|
||||
|
||||
Reference in New Issue
Block a user