pub struct DistributedNumericalDataset { /* private fields */ }Expand description
Example distributed dataset implementation for numerical data
Implementations§
Trait Implementations§
Source§impl Debug for DistributedNumericalDataset
impl Debug for DistributedNumericalDataset
Source§impl DistributedDataset for DistributedNumericalDataset
impl DistributedDataset for DistributedNumericalDataset
Source§type PartitionStrategy = PartitioningStrategy
type PartitionStrategy = PartitioningStrategy
Associated type for partitioning strategy
Source§fn partition_count(&self) -> u32
fn partition_count(&self) -> u32
Get the number of partitions
Source§fn partition<'a>(
&'a mut self,
cluster: &'a dyn DistributedCluster,
strategy: Self::PartitionStrategy,
) -> BoxFuture<'a, Result<Vec<DistributedPartition<Self::Item>>>>
fn partition<'a>( &'a mut self, cluster: &'a dyn DistributedCluster, strategy: Self::PartitionStrategy, ) -> BoxFuture<'a, Result<Vec<DistributedPartition<Self::Item>>>>
Partition the dataset across cluster nodes
Source§fn get_partition(
&self,
partition_id: u32,
) -> BoxFuture<'_, Result<DistributedPartition<Self::Item>>>
fn get_partition( &self, partition_id: u32, ) -> BoxFuture<'_, Result<DistributedPartition<Self::Item>>>
Get a specific partition
Source§fn repartition<'a>(
&'a mut self,
cluster: &'a dyn DistributedCluster,
new_strategy: Self::PartitionStrategy,
) -> BoxFuture<'a, Result<()>>
fn repartition<'a>( &'a mut self, cluster: &'a dyn DistributedCluster, new_strategy: Self::PartitionStrategy, ) -> BoxFuture<'a, Result<()>>
Repartition the dataset with a new strategy
Auto Trait Implementations§
impl Freeze for DistributedNumericalDataset
impl RefUnwindSafe for DistributedNumericalDataset
impl Send for DistributedNumericalDataset
impl Sync for DistributedNumericalDataset
impl Unpin for DistributedNumericalDataset
impl UnwindSafe for DistributedNumericalDataset
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more