From 7bc0934eb316f274f12d01971a29f6337d034feb Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" <6406592+v0y4g3r@users.noreply.github.com> Date: Fri, 26 Dec 2025 17:57:18 +0800 Subject: [PATCH] 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 --- src/mito2/src/memtable.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mito2/src/memtable.rs b/src/mito2/src/memtable.rs index 74d73a7a89..a352a10805 100644 --- a/src/mito2/src/memtable.rs +++ b/src/mito2/src/memtable.rs @@ -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 {