libcudf
23.12.00
|
Column factory APIs. More...
#include <cudf/column/column.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/default_stream.hpp>
#include <cudf/utilities/span.hpp>
#include <cudf/utilities/traits.hpp>
#include <rmm/cuda_stream_view.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <thrust/pair.h>
Go to the source code of this file.
Namespaces | |
cudf | |
cuDF interfaces | |
Functions | |
std::unique_ptr< column > | cudf::make_empty_column (data_type type) |
Creates an empty column of the specified type . More... | |
std::unique_ptr< column > | cudf::make_empty_column (type_id id) |
Creates an empty column of the specified type. More... | |
std::unique_ptr< column > | cudf::make_numeric_column (data_type type, size_type size, mask_state state=mask_state::UNALLOCATED, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified numeric data_type with an optional null mask. More... | |
template<typename B > | |
std::unique_ptr< column > | cudf::make_numeric_column (data_type type, size_type size, B &&null_mask, size_type null_count, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified numeric data_type with a null mask. More... | |
std::unique_ptr< column > | cudf::make_fixed_point_column (data_type type, size_type size, mask_state state=mask_state::UNALLOCATED, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified fixed_point data_type with an optional null mask. More... | |
template<typename B > | |
std::unique_ptr< column > | cudf::make_fixed_point_column (data_type type, size_type size, B &&null_mask, size_type null_count, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified fixed_point data_type with a null mask. More... | |
std::unique_ptr< column > | cudf::make_timestamp_column (data_type type, size_type size, mask_state state=mask_state::UNALLOCATED, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified timestamp data_type with an optional null mask. More... | |
template<typename B > | |
std::unique_ptr< column > | cudf::make_timestamp_column (data_type type, size_type size, B &&null_mask, size_type null_count, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified timestamp data_type with a null mask. More... | |
std::unique_ptr< column > | cudf::make_duration_column (data_type type, size_type size, mask_state state=mask_state::UNALLOCATED, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified duration data_type with an optional null mask. More... | |
template<typename B > | |
std::unique_ptr< column > | cudf::make_duration_column (data_type type, size_type size, B &&null_mask, size_type null_count, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified duration data_type with a null mask. More... | |
std::unique_ptr< column > | cudf::make_fixed_width_column (data_type type, size_type size, mask_state state=mask_state::UNALLOCATED, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified fixed width data_type with an optional null mask. More... | |
template<typename B > | |
std::unique_ptr< column > | cudf::make_fixed_width_column (data_type type, size_type size, B &&null_mask, size_type null_count, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct column with sufficient uninitialized storage to hold size elements of the specified fixed width data_type with a null mask. More... | |
std::unique_ptr< column > | cudf::make_strings_column (cudf::device_span< thrust::pair< char const *, size_type > const > strings, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct a STRING type column given a device span of pointer/size pairs. More... | |
std::unique_ptr< column > | cudf::make_strings_column (cudf::device_span< string_view const > string_views, string_view const null_placeholder, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct a STRING type column given a device span of string_view. More... | |
std::unique_ptr< column > | cudf::make_strings_column (cudf::device_span< char const > strings, cudf::device_span< size_type const > offsets, cudf::device_span< bitmask_type const > null_mask, size_type null_count, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct a STRING type column given a device span of chars encoded as UTF-8, a device span of byte offsets identifying individual strings within the char vector, and an optional null bitmask. More... | |
std::unique_ptr< column > | cudf::make_strings_column (size_type num_strings, std::unique_ptr< column > offsets_column, std::unique_ptr< column > chars_column, size_type null_count, rmm::device_buffer &&null_mask) |
Construct a STRING type column given offsets column, chars columns, and null mask and null count. More... | |
std::unique_ptr< column > | cudf::make_strings_column (size_type num_strings, rmm::device_uvector< size_type > &&offsets, rmm::device_uvector< char > &&chars, rmm::device_buffer &&null_mask, size_type null_count) |
Construct a STRING type column given offsets, columns, and optional null count and null mask. More... | |
std::unique_ptr< cudf::column > | cudf::make_lists_column (size_type num_rows, std::unique_ptr< column > offsets_column, std::unique_ptr< column > child_column, size_type null_count, rmm::device_buffer &&null_mask, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct a LIST type column given offsets column, child column, null mask and null count. More... | |
std::unique_ptr< cudf::column > | cudf::make_structs_column (size_type num_rows, std::vector< std::unique_ptr< column >> &&child_columns, size_type null_count, rmm::device_buffer &&null_mask, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct a STRUCT column using specified child columns as members. More... | |
std::unique_ptr< column > | cudf::make_column_from_scalar (scalar const &s, size_type size, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct a column with size elements that are all equal to the given scalar. More... | |
std::unique_ptr< column > | cudf::make_dictionary_from_scalar (scalar const &s, size_type size, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Construct a dictionary column with size elements that are all equal to the given scalar. More... | |
Column factory APIs.
Definition in file column_factories.hpp.