libcudf
23.12.00
|
Files | |
file | interop.hpp |
Classes | |
struct | cudf::column_metadata |
Detailed metadata information for arrow array. More... | |
Functions | |
std::shared_ptr< arrow::Table > | cudf::to_arrow (table_view input, std::vector< column_metadata > const &metadata={}, rmm::cuda_stream_view stream=cudf::get_default_stream(), arrow::MemoryPool *ar_mr=arrow::default_memory_pool()) |
Create arrow::Table from cudf table input More... | |
std::shared_ptr< arrow::Scalar > | cudf::to_arrow (cudf::scalar const &input, column_metadata const &metadata={}, rmm::cuda_stream_view stream=cudf::get_default_stream(), arrow::MemoryPool *ar_mr=arrow::default_memory_pool()) |
Create arrow::Scalar from cudf scalar input More... | |
std::unique_ptr< table > | cudf::from_arrow (arrow::Table const &input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Create cudf::table from given arrow Table input. More... | |
std::unique_ptr< cudf::scalar > | cudf::from_arrow (arrow::Scalar const &input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Create cudf::scalar from given arrow Scalar input. More... | |
std::unique_ptr<cudf::scalar> cudf::from_arrow | ( | arrow::Scalar const & | input, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Create cudf::scalar
from given arrow Scalar input.
input | arrow::Scalar that needs to be converted to cudf::scalar |
stream | CUDA stream used for device memory operations and kernel launches |
mr | Device memory resource used to allocate cudf::scalar |
std::unique_ptr<table> cudf::from_arrow | ( | arrow::Table const & | input, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Create cudf::table
from given arrow Table input.
input | arrow:Table that needs to be converted to cudf::table |
stream | CUDA stream used for device memory operations and kernel launches |
mr | Device memory resource used to allocate cudf::table |
std::shared_ptr<arrow::Scalar> cudf::to_arrow | ( | cudf::scalar const & | input, |
column_metadata const & | metadata = {} , |
||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
arrow::MemoryPool * | ar_mr = arrow::default_memory_pool() |
||
) |
Create arrow::Scalar
from cudf scalar input
Converts the cudf::scalar
to arrow::Scalar
.
input | scalar that needs to be converted to arrow Scalar |
metadata | Contains hierarchy of names of columns and children |
stream | CUDA stream used for device memory operations and kernel launches |
ar_mr | arrow memory pool to allocate memory for arrow Scalar |
input
std::shared_ptr<arrow::Table> cudf::to_arrow | ( | table_view | input, |
std::vector< column_metadata > const & | metadata = {} , |
||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
arrow::MemoryPool * | ar_mr = arrow::default_memory_pool() |
||
) |
Create arrow::Table
from cudf table input
Converts the cudf::table_view
to arrow::Table
with the provided metadata column_names
.
cudf::logic_error | if column_names size doesn't match with number of columns. |
input | table_view that needs to be converted to arrow Table |
metadata | Contains hierarchy of names of columns and children |
stream | CUDA stream used for device memory operations and kernel launches |
ar_mr | arrow memory pool to allocate memory for arrow Table |
input