mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-14 01:02:55 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user