use once_cell::sync::Lazy;
use reifydb_core::encoded::shape::{RowShape, RowShapeField};
use reifydb_type::value::r#type::Type;
pub(crate) mod dictionary {
use super::*;
pub(crate) const ID: usize = 0;
pub(crate) const NAMESPACE: usize = 1;
pub(crate) const NAME: usize = 2;
pub(crate) const VALUE_TYPE: usize = 3;
pub(crate) const ID_TYPE: usize = 4;
pub(crate) static SHAPE: Lazy<RowShape> = Lazy::new(|| {
RowShape::new(vec![
RowShapeField::unconstrained("id", Type::Uint8),
RowShapeField::unconstrained("namespace", Type::Uint8),
RowShapeField::unconstrained("name", Type::Utf8),
RowShapeField::unconstrained("value_type", Type::Uint1),
RowShapeField::unconstrained("id_type", Type::Uint1),
])
});
}
pub(crate) mod dictionary_namespace {
use super::*;
pub(crate) const ID: usize = 0;
pub(crate) const NAME: usize = 1;
pub(crate) static SHAPE: Lazy<RowShape> = Lazy::new(|| {
RowShape::new(vec![
RowShapeField::unconstrained("id", Type::Uint8),
RowShapeField::unconstrained("name", Type::Utf8),
])
});
}