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§
Sourcefn is_singleton(&self) -> bool
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.