pub enum PartitionSearchMode {
Linear,
PartiallySorted(Vec<usize>),
Sorted,
}
Expand description
Specifies aggregation grouping and/or window partitioning properties of a
set of expressions in terms of the existing ordering.
For example, if the existing ordering is [a ASC, b ASC, c ASC]
:
- A
PARTITION BY b
clause will result inLinear
mode. - A
PARTITION BY a, c
or aPARTITION BY c, a
clause will result inPartiallySorted([0])
orPartiallySorted([1])
modes, respectively. The vector stores the index ofa
in the respective PARTITION BY expression. - A
PARTITION BY a, b
or aPARTITION BY b, a
clause will result inSorted
mode. Note that the examples above are applicable forGROUP BY
clauses too.
Variants§
Linear
There is no partial permutation of the expressions satisfying the existing ordering.
PartiallySorted(Vec<usize>)
There is a partial permutation of the expressions satisfying the existing ordering. Indices describing the longest partial permutation are stored in the vector.
Sorted
There is a (full) permutation of the expressions satisfying the existing ordering.
Trait Implementations§
source§impl Clone for PartitionSearchMode
impl Clone for PartitionSearchMode
source§fn clone(&self) -> PartitionSearchMode
fn clone(&self) -> PartitionSearchMode
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 PartitionSearchMode
impl Debug for PartitionSearchMode
source§impl PartialEq for PartitionSearchMode
impl PartialEq for PartitionSearchMode
source§fn eq(&self, other: &PartitionSearchMode) -> bool
fn eq(&self, other: &PartitionSearchMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PartitionSearchMode
Auto Trait Implementations§
impl RefUnwindSafe for PartitionSearchMode
impl Send for PartitionSearchMode
impl Sync for PartitionSearchMode
impl Unpin for PartitionSearchMode
impl UnwindSafe for PartitionSearchMode
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