Files | Classes | Functions

Files

file  interop.hpp
 

Classes

struct  cudf::column_metadata
 Detailed meta data information for arrow array. More...
 

Functions

std::shared_ptr< arrow::Table > cudf::to_arrow (table_view input, std::vector< column_metadata > const &metadata={}, arrow::MemoryPool *ar_mr=arrow::default_memory_pool())
 Create arrow::Table from cudf table input More...
 
std::unique_ptr< tablecudf::from_arrow (arrow::Table const &input, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Create cudf::table from given arrow Table input. More...
 

Detailed Description

Function Documentation

◆ from_arrow()

std::unique_ptr<table> cudf::from_arrow ( arrow::Table const &  input,
rmm::mr::device_memory_resource mr = rmm::mr::get_current_device_resource() 
)

Create cudf::table from given arrow Table input.

Parameters
inputarrow:Table that needs to be converted to cudf::table
mrDevice memory resource used to allocate cudf::table
Returns
cudf table generated from given arrow Table.

◆ to_arrow()

std::shared_ptr<arrow::Table> cudf::to_arrow ( table_view  input,
std::vector< column_metadata > const &  metadata = {},
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.

Exceptions
cudf::logic_errorif column_names size doesn't match with number of columns.
Parameters
inputtable_view that needs to be converted to arrow Table
metadataContains hierarchy of names of columns and children
ar_mrarrow memory pool to allocate memory for arrow Table
Returns
arrow Table generated from input