pub struct Partition {
pub idx: u64,
pub count: u64,
pub start_ord: u64,
pub end_ord: u64,
pub start_pct: f64,
pub end_pct: f64,
pub base_extent: u64,
}Expand description
A single resolved partition: an absolute ordinal range with derived percentage and index metadata.
cardinality() returns end_ord - start_ord — the number
of ordinals the partition covers.
Fields§
§idx: u640-based position in the resolved partition list (generation order — stable under spec-level reordering).
count: u64Total number of partitions in the list this one was
resolved as part of. 1 for a single-partition spec.
Carried per-partition so an iter-var or q.cursor
projection can answer partition_count (and the status
banner can render i/n) without the originating list.
start_ord: u64Absolute ordinal at partition start (inclusive).
end_ord: u64Absolute ordinal at partition end (exclusive).
start_pct: f64Start as a percentage of the base extent, [0.0, 100.0).
end_pct: f64End as a percentage of the base extent, (0.0, 100.0].
base_extent: u64The base extent the partition was resolved against. Stored so consumers can recompute pcts or compare partitions resolved against different extents.
Implementations§
Trait Implementations§
impl Copy for Partition
Source§impl ReflectedValue for Partition
impl ReflectedValue for Partition
Source§fn display(&self) -> String
fn display(&self) -> String
Source§fn to_json_value(&self) -> Value
fn to_json_value(&self) -> Value
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Source§fn clone_reflected(&self) -> Box<dyn ReflectedValue>
fn clone_reflected(&self) -> Box<dyn ReflectedValue>
Source§fn try_as_str(&self) -> Option<String>
fn try_as_str(&self) -> Option<String>
Source§fn try_as_u64(&self) -> Option<u64>
fn try_as_u64(&self) -> Option<u64>
Source§fn try_as_f64(&self) -> Option<f64>
fn try_as_f64(&self) -> Option<f64>
Source§fn try_as_bytes(&self) -> Option<&[u8]>
fn try_as_bytes(&self) -> Option<&[u8]>
impl StructuralPartialEq for Partition
Auto Trait Implementations§
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnsafeUnpin for Partition
impl UnwindSafe for Partition
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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