libcudf
24.02.00
|
Column APIs for gather, scatter, split, slice, etc. More...
#include <cudf/column/column_view.hpp>
#include <cudf/lists/lists_column_view.hpp>
#include <cudf/scalar/scalar.hpp>
#include <cudf/strings/strings_column_view.hpp>
#include <cudf/structs/structs_column_view.hpp>
#include <cudf/table/table.hpp>
#include <cudf/types.hpp>
#include <rmm/mr/device/per_device_resource.hpp>
#include <memory>
#include <vector>
Go to the source code of this file.
Namespaces | |
cudf | |
cuDF interfaces | |
Enumerations | |
enum class | cudf::out_of_bounds_policy : bool { cudf::NULLIFY , cudf::DONT_CHECK } |
Policy to account for possible out-of-bounds indices. More... | |
enum class | cudf::mask_allocation_policy : int32_t { cudf::NEVER , cudf::RETAIN , cudf::ALWAYS } |
Indicates when to allocate a mask, based on an existing mask. More... | |
enum class | cudf::sample_with_replacement : bool { cudf::FALSE , cudf::TRUE } |
Indicates whether a row can be sampled more than once. More... | |
Functions | |
std::unique_ptr< table > | cudf::gather (table_view const &source_table, column_view const &gather_map, out_of_bounds_policy bounds_policy=out_of_bounds_policy::DONT_CHECK, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Gathers the specified rows (including null values) of a set of columns. More... | |
std::unique_ptr< table > | cudf::reverse (table_view const &source_table, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Reverses the rows within a table. More... | |
std::unique_ptr< column > | cudf::reverse (column_view const &source_column, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Reverses the elements of a column. More... | |
std::unique_ptr< table > | cudf::scatter (table_view const &source, column_view const &scatter_map, table_view const &target, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Scatters the rows of the source table into a copy of the target table according to a scatter map. More... | |
std::unique_ptr< table > | cudf::scatter (std::vector< std::reference_wrapper< scalar const >> const &source, column_view const &indices, table_view const &target, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Scatters a row of scalar values into a copy of the target table according to a scatter map. More... | |
std::unique_ptr< column > | cudf::empty_like (column_view const &input) |
Initializes and returns an empty column of the same type as the input . More... | |
std::unique_ptr< column > | cudf::empty_like (scalar const &input) |
Initializes and returns an empty column of the same type as the input . More... | |
std::unique_ptr< column > | cudf::allocate_like (column_view const &input, mask_allocation_policy mask_alloc=mask_allocation_policy::RETAIN, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Creates an uninitialized new column of the same size and type as the input . More... | |
std::unique_ptr< column > | cudf::allocate_like (column_view const &input, size_type size, mask_allocation_policy mask_alloc=mask_allocation_policy::RETAIN, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Creates an uninitialized new column of the specified size and same type as the input . More... | |
std::unique_ptr< table > | cudf::empty_like (table_view const &input_table) |
Creates a table of empty columns with the same types as the input_table More... | |
void | cudf::copy_range_in_place (column_view const &source, mutable_column_view &target, size_type source_begin, size_type source_end, size_type target_begin, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Copies a range of elements in-place from one column to another. More... | |
std::unique_ptr< column > | cudf::copy_range (column_view const &source, column_view const &target, size_type source_begin, size_type source_end, size_type target_begin, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Copies a range of elements out-of-place from one column to another. More... | |
std::unique_ptr< column > | cudf::shift (column_view const &input, size_type offset, scalar const &fill_value, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Creates a new column by shifting all values by an offset. More... | |
std::vector< column_view > | cudf::slice (column_view const &input, host_span< size_type const > indices, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Slices a column_view into a set of column_view s according to a set of indices. More... | |
std::vector< column_view > | cudf::slice (column_view const &input, std::initializer_list< size_type > indices, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Slices a column_view into a set of column_view s according to a set of indices. More... | |
std::vector< table_view > | cudf::slice (table_view const &input, host_span< size_type const > indices, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Slices a table_view into a set of table_view s according to a set of indices. More... | |
std::vector< table_view > | cudf::slice (table_view const &input, std::initializer_list< size_type > indices, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Slices a table_view into a set of table_view s according to a set of indices. More... | |
std::vector< column_view > | cudf::split (column_view const &input, host_span< size_type const > splits, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Splits a column_view into a set of column_view s according to a set of indices derived from expected splits. More... | |
std::vector< column_view > | cudf::split (column_view const &input, std::initializer_list< size_type > splits, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Splits a column_view into a set of column_view s according to a set of indices derived from expected splits. More... | |
std::vector< table_view > | cudf::split (table_view const &input, host_span< size_type const > splits, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Splits a table_view into a set of table_view s according to a set of indices derived from expected splits. More... | |
std::vector< table_view > | cudf::split (table_view const &input, std::initializer_list< size_type > splits, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Splits a table_view into a set of table_view s according to a set of indices derived from expected splits. More... | |
std::unique_ptr< column > | cudf::copy_if_else (column_view const &lhs, column_view const &rhs, column_view const &boolean_mask, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Returns a new column, where each element is selected from either lhs or rhs based on the value of the corresponding element in boolean_mask . More... | |
std::unique_ptr< column > | cudf::copy_if_else (scalar const &lhs, column_view const &rhs, column_view const &boolean_mask, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Returns a new column, where each element is selected from either lhs or rhs based on the value of the corresponding element in boolean_mask . More... | |
std::unique_ptr< column > | cudf::copy_if_else (column_view const &lhs, scalar const &rhs, column_view const &boolean_mask, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Returns a new column, where each element is selected from either lhs or rhs based on the value of the corresponding element in boolean_mask . More... | |
std::unique_ptr< column > | cudf::copy_if_else (scalar const &lhs, scalar const &rhs, column_view const &boolean_mask, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Returns a new column, where each element is selected from either lhs or rhs based on the value of the corresponding element in boolean_mask . More... | |
std::unique_ptr< table > | cudf::boolean_mask_scatter (table_view const &input, table_view const &target, column_view const &boolean_mask, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Scatters rows from the input table to rows of the output corresponding to true values in a boolean mask. More... | |
std::unique_ptr< table > | cudf::boolean_mask_scatter (std::vector< std::reference_wrapper< scalar const >> const &input, table_view const &target, column_view const &boolean_mask, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Scatters scalar values to rows of the output corresponding to true values in a boolean mask. More... | |
std::unique_ptr< scalar > | cudf::get_element (column_view const &input, size_type index, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Get the element at specified index from a column. More... | |
std::unique_ptr< table > | cudf::sample (table_view const &input, size_type const n, sample_with_replacement replacement=sample_with_replacement::FALSE, int64_t const seed=0, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Gather n samples from given input randomly. More... | |
bool | cudf::has_nonempty_nulls (column_view const &input, rmm::cuda_stream_view stream=cudf::get_default_stream()) |
Checks if a column or its descendants have non-empty null rows. More... | |
bool | cudf::may_have_nonempty_nulls (column_view const &input) |
Approximates if a column or its descendants may have non-empty null elements. More... | |
std::unique_ptr< column > | cudf::purge_nonempty_nulls (column_view const &input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Copy input into output while purging any non-empty null rows in the column or its descendants. More... | |
Column APIs for gather, scatter, split, slice, etc.
Definition in file copying.hpp.