pub struct PartitionTable { /* private fields */ }
Expand description
Partition table for data distribution
Implementations§
Source§impl PartitionTable
impl PartitionTable
pub fn new() -> Self
Sourcepub fn get_partition(&self, key: &[u8]) -> PartitionId
pub fn get_partition(&self, key: &[u8]) -> PartitionId
Get partition for a key using consistent hashing
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PartitionTable
impl RefUnwindSafe for PartitionTable
impl Send for PartitionTable
impl Sync for PartitionTable
impl Unpin for PartitionTable
impl UnwindSafe for PartitionTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more