garage/src/model/k2v/counter_table.rs

21 lines
458 B
Rust
Raw Normal View History

use garage_util::data::*;
use crate::index_counter::*;
2022-04-22 16:05:42 +00:00
pub const ENTRIES: &str = "entries";
pub const CONFLICTS: &str = "conflicts";
pub const VALUES: &str = "values";
pub const BYTES: &str = "bytes";
2022-04-22 14:32:00 +00:00
#[derive(PartialEq, Clone)]
pub struct K2VCounterTable;
impl CounterSchema for K2VCounterTable {
const NAME: &'static str = "k2v_index_counter";
// Partition key = bucket id
type P = Uuid;
// Sort key = K2V item's partition key
type S = String;
}