pub struct SplitPoint { /* private fields */ }Expand description
A boundary between adjacent range partitions.
A split point is a tuple with one ScalarValue per partitioning
expression. Split points are interpreted lexicographically according to the
ordering of the range partitioning that owns them.
N split points define N + 1 partitions:
partition 0: key < split_points[0]
partition 1: split_points[0] <= key < split_points[1]
...
partition N - 1: split_points[N - 2] <= key < split_points[N - 1]
partition N: split_points[N - 1] <= keyValues equal to split point i belong to partition i + 1, so interior
partitions are lower-inclusive and upper-exclusive.
Implementations§
Source§impl SplitPoint
impl SplitPoint
Sourcepub fn new(values: Vec<ScalarValue>) -> Self
pub fn new(values: Vec<ScalarValue>) -> Self
Creates a new split point from its tuple values.
Sourcepub fn values(&self) -> &[ScalarValue]
pub fn values(&self) -> &[ScalarValue]
Returns the tuple values for this split point.
Trait Implementations§
Source§impl Clone for SplitPoint
impl Clone for SplitPoint
Source§fn clone(&self) -> SplitPoint
fn clone(&self) -> SplitPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SplitPoint
impl Debug for SplitPoint
Source§impl Display for SplitPoint
impl Display for SplitPoint
impl Eq for SplitPoint
Source§impl Hash for SplitPoint
impl Hash for SplitPoint
Source§impl PartialEq for SplitPoint
impl PartialEq for SplitPoint
Source§impl PartialOrd for SplitPoint
impl PartialOrd for SplitPoint
impl StructuralPartialEq for SplitPoint
Auto Trait Implementations§
impl !RefUnwindSafe for SplitPoint
impl !UnwindSafe for SplitPoint
impl Freeze for SplitPoint
impl Send for SplitPoint
impl Sync for SplitPoint
impl Unpin for SplitPoint
impl UnsafeUnpin for SplitPoint
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.