pub trait DistributedArray: ArrayProtocol {
// Required methods
fn distribution_info(&self) -> HashMap<String, String>;
fn gather(&self) -> CoreResult<Box<dyn ArrayProtocol>>;
fn scatter(&self, chunks: usize) -> CoreResult<Box<dyn DistributedArray>>;
fn is_distributed(&self) -> bool;
}
Expand description
Trait for distributed arrays that can span multiple machines.
Required Methods§
Sourcefn distribution_info(&self) -> HashMap<String, String>
fn distribution_info(&self) -> HashMap<String, String>
Get information about the distribution of this array.
Sourcefn gather(&self) -> CoreResult<Box<dyn ArrayProtocol>>
fn gather(&self) -> CoreResult<Box<dyn ArrayProtocol>>
Gather the distributed array to a single node.
Sourcefn scatter(&self, chunks: usize) -> CoreResult<Box<dyn DistributedArray>>
fn scatter(&self, chunks: usize) -> CoreResult<Box<dyn DistributedArray>>
Scatter a regular array to a distributed array.
Sourcefn is_distributed(&self) -> bool
fn is_distributed(&self) -> bool
Check if this array is distributed.