aboutsummaryrefslogtreecommitdiff
path: root/src/model/k2v/counter_table.rs
blob: 4856eb2bc90838ce08fdbd363be7ada59f50616e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use garage_util::data::*;

use crate::index_counter::*;

pub const ENTRIES: &str = "entries";
pub const CONFLICTS: &str = "conflicts";
pub const VALUES: &str = "values";
pub const BYTES: &str = "bytes";

#[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;
}