Enum datafusion::physical_plan::Partitioning
source · pub enum Partitioning {
RoundRobinBatch(usize),
Hash(Vec<Arc<dyn PhysicalExpr>>, usize),
UnknownPartitioning(usize),
}
Expand description
Partitioning schemes supported by operators.
Variants§
RoundRobinBatch(usize)
Allocate batches using a round-robin algorithm and the specified number of partitions
Hash(Vec<Arc<dyn PhysicalExpr>>, usize)
Allocate rows based on a hash of one of more expressions and the specified number of partitions
UnknownPartitioning(usize)
Unknown partitioning scheme with a known number of partitions
Implementations§
source§impl Partitioning
impl Partitioning
sourcepub fn partition_count(&self) -> usize
pub fn partition_count(&self) -> usize
Returns the number of partitions in this partitioning scheme
sourcepub fn satisfy<F: FnOnce() -> EquivalenceProperties>(
&self,
required: Distribution,
equal_properties: F
) -> bool
pub fn satisfy<F: FnOnce() -> EquivalenceProperties>( &self, required: Distribution, equal_properties: F ) -> bool
Returns true when the guarantees made by this [Partitioning] are sufficient to
satisfy the partitioning scheme mandated by the required
[Distribution]
Trait Implementations§
source§impl Clone for Partitioning
impl Clone for Partitioning
source§fn clone(&self) -> Partitioning
fn clone(&self) -> Partitioning
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Partitioning
impl Debug for Partitioning
source§impl PartialEq<Partitioning> for Partitioning
impl PartialEq<Partitioning> for Partitioning
source§fn eq(&self, other: &Partitioning) -> bool
fn eq(&self, other: &Partitioning) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.