Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::RadixPartitioning Struct Reference

Generic radix partitioning functions. More...

Static Public Member Functions

static constexpr idx_t NumberOfPartitions (idx_t radix_bits)
 The number of partitions for a given number of radix bits.
template<class T>
static idx_t RadixBits (T n)
static idx_t RadixBitsOfPowerOfTwo (idx_t n_partitions)
 Inverse of NumberOfPartitions, given a number of partitions, get the number of radix bits.
static constexpr idx_t Shift (idx_t radix_bits)
 Radix bits begin after uint16_t because these bits are used as salt in the aggregate HT.
static constexpr hash_t Mask (idx_t radix_bits)
 Mask of the radix bits of the hash.
static idx_t Select (Vector &hashes, const SelectionVector *sel, idx_t count, idx_t radix_bits, const ValidityMask &partition_mask, SelectionVector *true_sel, SelectionVector *false_sel)
 Select using a cutoff on the radix bits of the hash.

Static Public Attributes

static constexpr const idx_t MAX_RADIX_BITS = 12
 4096 partitions ought to be enough to go out-of-core properly

Detailed Description

Generic radix partitioning functions.

Member Function Documentation

◆ NumberOfPartitions()

constexpr idx_t duckdb::RadixPartitioning::NumberOfPartitions ( idx_t radix_bits)
inlinestaticconstexpr

The number of partitions for a given number of radix bits.

93425 {
93426 return idx_t(1) << radix_bits;
93427 }
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
Here is the caller graph for this function:

◆ RadixBits()

template<class T>
idx_t duckdb::RadixPartitioning::RadixBits ( T n)
inlinestatic
93430 {
93431 return sizeof(T) * 8 - CountZeros<T>::Leading(n);
93432 }

◆ RadixBitsOfPowerOfTwo()

idx_t duckdb::RadixPartitioning::RadixBitsOfPowerOfTwo ( idx_t n_partitions)
inlinestatic

Inverse of NumberOfPartitions, given a number of partitions, get the number of radix bits.

93435 {
93436 D_ASSERT(IsPowerOfTwo(n_partitions));
93437 return RadixBits(n_partitions) - 1;
93438 }
Here is the caller graph for this function:

◆ Shift()

constexpr idx_t duckdb::RadixPartitioning::Shift ( idx_t radix_bits)
inlinestaticconstexpr

Radix bits begin after uint16_t because these bits are used as salt in the aggregate HT.

93441 {
93442 return (sizeof(hash_t) - sizeof(uint16_t)) * 8 - radix_bits;
93443 }
uint64_t hash_t
The type used for hashes.
Definition duckdb.hpp:243
Here is the caller graph for this function:

◆ Mask()

constexpr hash_t duckdb::RadixPartitioning::Mask ( idx_t radix_bits)
inlinestaticconstexpr

Mask of the radix bits of the hash.

93446 {
93447 return (hash_t(1 << radix_bits) - 1) << Shift(radix_bits);
93448 }
static constexpr idx_t Shift(idx_t radix_bits)
Radix bits begin after uint16_t because these bits are used as salt in the aggregate HT.
Definition duckdb.cpp:93441
Here is the call graph for this function:

◆ Select()

idx_t duckdb::RadixPartitioning::Select ( Vector & hashes,
const SelectionVector * sel,
idx_t count,
idx_t radix_bits,
const ValidityMask & partition_mask,
SelectionVector * true_sel,
SelectionVector * false_sel )
static

Select using a cutoff on the radix bits of the hash.

93623 {
93624 return RadixBitsSwitch<SelectFunctor, idx_t>(radix_bits, hashes, sel, count, partition_mask, true_sel, false_sel);
93625}
Here is the caller graph for this function:

The documentation for this struct was generated from the following file: