# 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§

source

#### 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§

source

#### fn partition(self, p: NonZeroUsize) -> Result<Partitions<T, VS>, Error>

Partitions the vector set in place.

## Implementors§

source§

### impl<T> Partitioning<T, BlockVectorSet<T>> for BlockVectorSet<T>where T: Scalar,