pub struct TimestampStatistics {
pub min_timestamp: i64,
pub max_timestamp: Option<i64>,
pub min_deletion_time: i64,
pub max_deletion_time: i64,
pub min_ttl: Option<i64>,
pub max_ttl: Option<i64>,
pub rows_with_ttl: Option<u64>,
}Expand description
Timestamp range and TTL statistics
Fields§
§min_timestamp: i64Minimum timestamp in the SSTable (microseconds since epoch)
max_timestamp: Option<i64>Maximum timestamp in the SSTable (microseconds since epoch), or None
when it is NOT authoritatively available from Statistics.db (issue
#1653). The enhanced (nb) parser leaves this None until the best-effort
STATS post-pass recovers the real maxTimestamp (#1729); a None here is
an honest “unavailable”, NOT a fabricated placeholder (it previously
aliased min_timestamp/i64::MIN, both of which lied about the max). A
consumer that needs a real maximum MUST treat None as unavailable and
fail closed (see write_engine::merge::fully_expired).
min_deletion_time: i64Minimum deletion time (for tombstones)
max_deletion_time: i64Maximum deletion time (for tombstones). Genuinely decoded from STATS by the
best-effort post-pass (#1073/#1011); before it runs the enhanced parser
uses the authoritative NO_DELETION_TIME (i64::MAX) “no deletions
recorded” value, so a post-pass failure fails CLOSED (never classified
fully-expired) rather than the old = min_deletion_time lie (issue #1653).
min_ttl: Option<i64>Minimum TTL value
max_ttl: Option<i64>Maximum TTL value, or None when not authoritatively available (issue
#1653 — the enhanced parser previously aliased this to min_ttl, a lie).
rows_with_ttl: Option<u64>Number of rows with TTL, or None when not authoritatively available from
Statistics.db (issue #1653). The enhanced (nb) parser does not decode a
per-SSTable rows-with-TTL count, so it is honestly None rather than a
fabricated 0 (which claimed “no rows have a TTL”).
Trait Implementations§
Source§impl Clone for TimestampStatistics
impl Clone for TimestampStatistics
Source§fn clone(&self) -> TimestampStatistics
fn clone(&self) -> TimestampStatistics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more