pub struct SegmentMeta {
pub path: PathBuf,
pub min_timestamp: i64,
pub max_timestamp: i64,
pub row_count: u64,
pub series_count: u32,
pub byte_size: u64,
pub row_group_count: u32,
pub column_count: u16,
pub uncompressed_bytes: u64,
pub header: SegmentHeader,
pub column_metas: Vec<ColumnMeta>,
pub series_keys: Vec<SeriesKey>,
}Expand description
Metadata returned after a segment is finalized.
Fields§
§path: PathBufPath to the segment file.
min_timestamp: i64Minimum timestamp in the segment.
max_timestamp: i64Maximum timestamp in the segment.
row_count: u64Total number of rows.
series_count: u32Number of unique series.
byte_size: u64File size in bytes.
row_group_count: u32Number of row groups.
column_count: u16Number of columns.
uncompressed_bytes: u64Total uncompressed payload bytes (before LZ4/Zstd), for compression ratio tracking.
header: SegmentHeaderSegment header (available from the write path, avoids re-reading the file).
column_metas: Vec<ColumnMeta>Per-column metadata with stats (available from the write path).
series_keys: Vec<SeriesKey>The distinct series the segment holds, in series-major order — the writer knows them, so nothing has to decode the segment to learn them.
Trait Implementations§
Source§impl Clone for SegmentMeta
impl Clone for SegmentMeta
Source§fn clone(&self) -> SegmentMeta
fn clone(&self) -> SegmentMeta
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 SegmentMeta
impl Debug for SegmentMeta
Source§impl PartialEq for SegmentMeta
impl PartialEq 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
Mutably borrows from an owned value. Read more
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> ⓘ
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