pub struct SegmentMeta {
pub path: String,
pub format: FileFormat,
pub entity_layout: SegmentEntityLayout,
pub index_min: IndexValue,
pub index_max: IndexValue,
pub row_count: u64,
pub file_size: Option<u64>,
pub coverage_path: Option<String>,
}Expand description
Metadata about a single physical segment.
In v0.1, a “segment” corresponds to one stored data object.
Fields§
§path: StringCanonical file path relative to the table root and the segment identity.
format: FileFormatFile format for this segment.
entity_layout: SegmentEntityLayoutExact entity distribution derived before the segment is committed.
index_min: IndexValueMinimum observed ordered-index value in this segment (inclusive).
index_max: IndexValueMaximum observed ordered-index value in this segment (inclusive).
row_count: u64Number of rows in this segment.
file_size: Option<u64>Optional file size in bytes at the time metadata was captured.
coverage_path: Option<String>Coverage sidecar pointer.
Implementations§
Source§impl SegmentMeta
impl SegmentMeta
Sourcepub fn with_coverage_path(self, path: impl Into<String>) -> Self
pub fn with_coverage_path(self, path: impl Into<String>) -> Self
Set the coverage sidecar path for this segment metadata.
Sourcepub fn validate_bounds(&self, kind: &IndexKind) -> Result<(), SegmentMetaError>
pub fn validate_bounds(&self, kind: &IndexKind) -> Result<(), SegmentMetaError>
Validate the segment’s inclusive ordered-index bounds.
§Errors
Returns SegmentMetaError::InvalidIndexBounds when either bound has
the wrong domain or the minimum is greater than the maximum.
Trait Implementations§
Source§impl Clone for SegmentMeta
impl Clone for SegmentMeta
Source§fn clone(&self) -> SegmentMeta
fn clone(&self) -> SegmentMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SegmentMeta
impl Debug for SegmentMeta
Source§impl<'de> Deserialize<'de> for SegmentMeta
impl<'de> Deserialize<'de> for SegmentMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SegmentMeta
Source§impl PartialEq for SegmentMeta
impl PartialEq for SegmentMeta
Source§impl Serialize for SegmentMeta
impl Serialize for SegmentMeta
impl StructuralPartialEq for SegmentMeta
Auto Trait Implementations§
impl Freeze for SegmentMeta
impl RefUnwindSafe for SegmentMeta
impl Send for SegmentMeta
impl Sync for SegmentMeta
impl Unpin for SegmentMeta
impl UnsafeUnpin for SegmentMeta
impl UnwindSafe for SegmentMeta
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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