Trait flechasdb::partitions::Partitioning
source · pub trait Partitioning<T, VS>where
Self: Sized,{
// Required method
fn partition_with_events<EV>(
self,
p: NonZeroUsize,
event_handler: EV
) -> Result<Partitions<T, VS>, Error>
where EV: FnMut(ClusterEvent<'_, T>);
// Provided method
fn partition(self, p: NonZeroUsize) -> Result<Partitions<T, VS>, Error> { ... }
}Expand description
Implementation of partitioning in place.
Required Methods§
sourcefn partition_with_events<EV>(
self,
p: NonZeroUsize,
event_handler: EV
) -> Result<Partitions<T, VS>, Error>where
EV: FnMut(ClusterEvent<'_, T>),
fn partition_with_events<EV>( self, p: NonZeroUsize, event_handler: EV ) -> Result<Partitions<T, VS>, Error>where EV: FnMut(ClusterEvent<'_, T>),
Partitions the vector set in place.
Provided Methods§
sourcefn partition(self, p: NonZeroUsize) -> Result<Partitions<T, VS>, Error>
fn partition(self, p: NonZeroUsize) -> Result<Partitions<T, VS>, Error>
Partitions the vector set in place.