pub struct DataSetState {Show 19 fields
pub latest_written_timestamp: Option<i64>,
pub retention_floor: Option<i64>,
pub open_data_segments: u32,
pub data_segments: u32,
pub total_record_count: u64,
pub total_data_size: u64,
pub total_uncompressed_size: u64,
pub total_invalid_record_count: u64,
pub min_timestamp: Option<i64>,
pub max_timestamp: Option<i64>,
pub open_index_segments: u32,
pub index_segments: u32,
pub pending_index_entries: u32,
pub base_timestamp: Option<i64>,
pub read_only: bool,
pub has_block_cache: bool,
pub has_journal: bool,
pub has_queue: bool,
pub queue_consumer_groups: u32,
}Expand description
Mutable dataset state info.
These values reflect the current runtime state of the dataset.
Fields§
§latest_written_timestamp: Option<i64>Highest written timestamp (not latest valid record, deletion doesn’t roll back)
retention_floor: Option<i64>Persisted wall-clock retention floor; None = never advanced
open_data_segments: u32Number of currently open data segments
data_segments: u32Total number of data segments
total_record_count: u64Total record count across all data segments (includes deleted and expired)
total_data_size: u64Total used space across all data segments (bytes, excluding header)
total_uncompressed_size: u64Total uncompressed size across all data segments (bytes)
total_invalid_record_count: u64Total invalid record count across all data segments (deleted/expired/overwritten)
min_timestamp: Option<i64>Global minimum timestamp from the index-visible range
max_timestamp: Option<i64>Global maximum timestamp from the index-visible range
open_index_segments: u32Number of currently open index segments
index_segments: u32Total number of index segments
pending_index_entries: u32Number of index entries pending materialization into index segments.
TimeIndex appends entries directly to mmap-backed index segments, so this is currently always 0 and is kept for inspect ABI compatibility.
base_timestamp: Option<i64>Index base timestamp (first entry’s timestamp), None if no data
read_only: boolWhether the dataset is in read-only mode
has_block_cache: boolWhether BlockCache is enabled
has_journal: boolWhether Journal is enabled
has_queue: boolWhether the dataset has an associated Queue
queue_consumer_groups: u32Number of queue consumer groups (only meaningful when has_queue=true)