risingwave_common::hash

Trait IsSingleton

source
pub trait IsSingleton {
    // Required method
    fn is_singleton(&self) -> bool;
}
Expand description

A trait for checking whether a table/fragment is a singleton.

Required Methods§

source

fn is_singleton(&self) -> bool

Returns true if the table/fragment is a singleton.

By singleton, we mean that all data read from or written to the storage belongs to the only SINGLETON_VNODE. This must be consistent with the behavior of TableDistribution. As a result, the vnode_count of such table/fragment can be 1.

Implementations on Foreign Types§

source§

impl IsSingleton for Table

source§

impl IsSingleton for Fragment

source§

impl IsSingleton for StorageTableDesc

Implementors§