Functions | |
| std::unique_ptr< column > | cudf::lists::segmented_gather (lists_column_view const &source_column, lists_column_view const &gather_map_list, out_of_bounds_policy bounds_policy=out_of_bounds_policy::DONT_CHECK, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Segmented gather of the elements within a list element in each row of a list column. More... | |
| std::unique_ptr<column> cudf::lists::segmented_gather | ( | lists_column_view const & | source_column, |
| lists_column_view const & | gather_map_list, | ||
| out_of_bounds_policy | bounds_policy = out_of_bounds_policy::DONT_CHECK, |
||
| rmm::cuda_stream_view | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/lists/gather.hpp>
Segmented gather of the elements within a list element in each row of a list column.
source_column with any depth and gather_map_list with depth 1 are only supported.
| cudf::logic_error | if gather_map_list size is not same as source_column size. |
| std::invalid_argument | if gather_map contains null values. |
| cudf::logic_error | if gather_map is not list column of an index type. |
If indices in gather_map_list are outside the range [-n, n), where n is the number of elements in corresponding row of the source column, the behavior is as follows:
bounds_policy is set to DONT_CHECK, the behavior is undefined.bounds_policy is set to NULLIFY, the corresponding element in the list row is set to null in the output column.| source_column | View into the list column to gather from |
| gather_map_list | View into a non-nullable list column of integral indices that maps the element in list of each row in the source columns to rows of lists in the destination columns. |
| bounds_policy | Can be DONT_CHECK or NULLIFY. Selects whether or not to nullify the output list row's element, when the gather index falls outside the range [-n, n), where n is the number of elements in list row corresponding to the gather-map row. |
| stream | CUDA stream used for device memory operations and kernel launches. |
| mr | Device memory resource to allocate any returned objects |
gather_map_list