reifydb-core 0.4.13

Core database interfaces and data structures for ReifyDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB

use std::collections::HashMap;

use crate::interface::catalog::shape::ShapeId;

define_event! {
	/// Emitted after a row TTL scan cycle completes.
	pub struct RowsExpiredEvent {
		pub shapes_scanned: u64,
		pub shapes_skipped: u64,
		pub rows_expired: u64,
		pub versions_dropped: u64,
		pub bytes_discovered: HashMap<ShapeId, u64>,
		pub bytes_reclaimed: HashMap<ShapeId, u64>,
	}
}