refactor(mito2): make MemtableStats fields public (#7488)

Change visibility of estimated_bytes, time_range, max_sequence, and
series_count fields from private to public for external access.

Signed-off-by: Lei, HUANG <mrsatangel@gmail.com>
This commit is contained in:
Lei, HUANG
2025-12-26 17:57:18 +08:00
committed by GitHub
parent 89b9469250
commit 7bc0934eb3

View File

@@ -136,18 +136,18 @@ impl RangesOptions {
#[derive(Debug, Default, Clone)]
pub struct MemtableStats {
/// The estimated bytes allocated by this memtable from heap.
estimated_bytes: usize,
pub estimated_bytes: usize,
/// The inclusive time range that this memtable contains. It is None if
/// and only if the memtable is empty.
time_range: Option<(Timestamp, Timestamp)>,
pub time_range: Option<(Timestamp, Timestamp)>,
/// Total rows in memtable
pub num_rows: usize,
/// Total number of ranges in the memtable.
pub num_ranges: usize,
/// The maximum sequence number in the memtable.
max_sequence: SequenceNumber,
pub max_sequence: SequenceNumber,
/// Number of estimated timeseries in memtable.
series_count: usize,
pub series_count: usize,
}
impl MemtableStats {