You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
458 B
20 lines
458 B
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;
|
|
}
|
|
|