24 #include <rmm/cuda_stream_view.hpp>
25 #include <rmm/mr/device/per_device_resource.hpp>
27 #include <thrust/pair.h>
80 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
106 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource())
109 return std::make_unique<column>(type,
112 std::forward<B>(null_mask),
138 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
156 template <
typename B>
163 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource())
166 return std::make_unique<column>(type,
169 std::forward<B>(null_mask),
196 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
215 template <
typename B>
222 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource())
225 return std::make_unique<column>(type,
228 std::forward<B>(null_mask),
255 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
274 template <
typename B>
281 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource())
284 return std::make_unique<column>(type,
287 std::forward<B>(null_mask),
314 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
333 template <
typename B>
340 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource())
379 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
411 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
431 std::unique_ptr<column> offsets_column,
432 rmm::device_buffer&& chars_buffer,
434 rmm::device_buffer&& null_mask);
494 std::unique_ptr<column> offsets_column,
495 std::unique_ptr<column> child_column,
497 rmm::device_buffer&& null_mask,
499 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
526 std::vector<std::unique_ptr<column>>&& child_columns,
528 rmm::device_buffer&& null_mask,
530 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
550 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
570 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
Indicator for the logical data type of an element in a column.
An owning class to represent a singular value.
A non-owning, immutable view of device data that is a variable length char array representing a UTF-8...
Class definition for cudf::column.
std::unique_ptr< column > 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.
std::unique_ptr< column > 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 duratio...
std::unique_ptr< cudf::column > 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.
std::unique_ptr< column > 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.
std::unique_ptr< column > 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...
std::unique_ptr< column > make_empty_column(data_type type)
Creates an empty column of the specified type.
std::unique_ptr< column > 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_p...
std::unique_ptr< column > 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 w...
std::unique_ptr< cudf::column > 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.
std::unique_ptr< column > 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.
std::unique_ptr< column > 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 timesta...
cudf::size_type null_count(bitmask_type const *bitmask, size_type start, size_type stop, rmm::cuda_stream_view stream=cudf::get_default_stream())
Given a validity bitmask, counts the number of null elements (unset bits) in the range [start,...
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
#define CUDF_EXPECTS(...)
Macro for checking (pre-)conditions that throws an exception when a condition is violated.
constexpr bool is_fixed_point()
Indicates whether the type T is a fixed-point type.
int32_t size_type
Row index type for columns and tables.
mask_state
Controls the allocation/initialization of a null mask.
constexpr bool is_duration()
Indicates whether the type T is a duration type.
std::size_t size_of(data_type t)
Returns the size in bytes of elements of the specified data_type
constexpr bool is_numeric()
Indicates whether the type T is a numeric type.
constexpr bool is_timestamp()
Indicates whether the type T is a timestamp type.
constexpr bool is_fixed_width()
Indicates whether elements of type T are fixed-width.
type_id
Identifies a column's logical element type.
@ UNALLOCATED
Null mask not allocated, (all elements are valid)
Device version of C++20 std::span with reduced feature set.
Type declarations for libcudf.