10 #include <cudf/utilities/export.hpp>
18 namespace CUDF_EXPORT
cudf {
68 std::pair<std::unique_ptr<table>, std::vector<size_type>>
partition(
99 std::vector<size_type>
const& columns_to_hash,
101 hash_id hash_function = hash_id::HASH_MURMUR3,
102 uint32_t seed = DEFAULT_HASH_SEED,
133 hash_id hash_function = hash_id::HASH_MURMUR3,
134 uint32_t seed = DEFAULT_HASH_SEED,
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
A set of cudf::column_view's of the same size.
APIs for querying the default CUDA stream and per-thread default stream status.
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
cuda::mr::resource_ref< cuda::mr::device_accessible > device_async_resource_ref
hash_id
Identifies the hash function to be used in hash partitioning.
std::pair< std::unique_ptr< cudf::table >, std::vector< cudf::size_type > > round_robin_partition(table_view const &input, cudf::size_type num_partitions, cudf::size_type start_partition=0, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Round-robin partition.
std::pair< std::unique_ptr< table >, std::vector< size_type > > hash_partition(table_view const &input, table_view const &keys, int num_partitions, hash_id hash_function=hash_id::HASH_MURMUR3, uint32_t seed=DEFAULT_HASH_SEED, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Partitions rows from the input table into multiple output tables.
std::pair< std::unique_ptr< table >, std::vector< size_type > > partition(table_view const &t, column_view const &partition_map, size_type num_partitions, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Partitions rows of t according to the mapping specified by partition_map.
@ HASH_IDENTITY
Identity hash function that simply returns the key to be hashed.
@ HASH_MURMUR3
Murmur3 hash function.
int32_t size_type
Row index type for columns and tables.
APIs for computing hash values of columns and tables using various hash algorithms.
APIs for getting and setting the current device memory resource.