risingwave_common::hash

Type Alias Crc32HashCode

source
pub type Crc32HashCode = HashCode<Crc32FastBuilder>;
Expand description

Hash code from the Crc32 hasher. Used for hash-shuffle exchange.

Aliased Type§

struct Crc32HashCode {
    value: u64,
    _phantom: PhantomData<&'static Crc32FastBuilder>,
}

Fields§

§value: u64§_phantom: PhantomData<&'static Crc32FastBuilder>

Trait Implementations§

source§

impl Crc32HashCodeToVnodeExt for Crc32HashCode

source§

fn to_vnode(self, vnode_count: usize) -> VirtualNode

Converts the hash code to a virtual node, based on the given total count of vnodes.