pub enum Distribution {
UnspecifiedDistribution,
SinglePartition,
HashPartitioned(Vec<Arc<dyn PhysicalExpr>>),
}
Expand description
How data is distributed amongst partitions. See Partitioning
for more
details.
Variants§
UnspecifiedDistribution
Unspecified distribution
SinglePartition
A single partition is required
HashPartitioned(Vec<Arc<dyn PhysicalExpr>>)
Requires children to be distributed in such a way that the same values of the keys end up in the same partition
Implementations§
source§impl Distribution
impl Distribution
sourcepub fn create_partitioning(self, partition_count: usize) -> Partitioning
pub fn create_partitioning(self, partition_count: usize) -> Partitioning
Creates a Partitioning
that satisfies this Distribution
Trait Implementations§
source§impl Clone for Distribution
impl Clone for Distribution
source§fn clone(&self) -> Distribution
fn clone(&self) -> Distribution
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 moreAuto Trait Implementations§
impl Freeze for Distribution
impl !RefUnwindSafe for Distribution
impl Send for Distribution
impl Sync for Distribution
impl Unpin for Distribution
impl !UnwindSafe for Distribution
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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