risingwave_common::hash::consistent_hash::vnode

Trait Crc32HashCodeToVnodeExt

source
trait Crc32HashCodeToVnodeExt {
    // Required method
    fn to_vnode(self, _: usize) -> VirtualNode;
}

Required Methods§

source

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

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

Implementors§