pub struct KvConfig {
pub schema: StrictSchema,
pub ttl: Option<KvTtlPolicy>,
pub capacity_hint: u32,
pub inline_threshold: u16,
}Expand description
Configuration for a Key-Value collection.
KV collections use a hash-indexed primary key for O(1) point lookups. Value fields are encoded as Binary Tuples (same codec as strict mode) providing O(1) field extraction by byte offset.
Fields§
§schema: StrictSchemaTyped schema for this KV collection (key + value columns).
The PRIMARY KEY column is the hash key. Remaining columns are value
fields encoded as Binary Tuples with O(1) field extraction.
The schema reuses StrictSchema from the strict document engine.
ttl: Option<KvTtlPolicy>TTL policy for automatic key expiration. None = keys never expire.
capacity_hint: u32Initial capacity hint for the hash table. Avoids early rehash churn
for known-size workloads. 0 = use engine default (from KvTuning).
inline_threshold: u16Inline value threshold in bytes. Values at or below this size are stored directly in the hash entry (no pointer chase). Larger values overflow to slab-allocated Binary Tuples referenced by slab ID.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KvConfig
impl<'de> Deserialize<'de> for KvConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for KvConfig
impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for KvConfig
Source§impl ToMessagePack for KvConfig
impl ToMessagePack for KvConfig
impl Eq for KvConfig
impl StructuralPartialEq for KvConfig
Auto Trait Implementations§
impl Freeze for KvConfig
impl RefUnwindSafe for KvConfig
impl Send for KvConfig
impl Sync for KvConfig
impl Unpin for KvConfig
impl UnsafeUnpin for KvConfig
impl UnwindSafe for KvConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.