Trait mz_catalog::durable::debug::Collection

source ·
pub trait Collection: Debug {
    type Key;
    type Value;

    // Required methods
    fn collection_type() -> CollectionType;
    fn collection_trace(trace: Trace) -> CollectionTrace<Self>;
    fn update(key: Self::Key, value: Self::Value) -> StateUpdateKind;

    // Provided method
    fn name() -> String { ... }
}
Expand description

The contents of the catalog are logically separated into separate Collections, which describe the category of data that the content belongs to.

Required Associated Types§

source

type Key

Type used to stores keys for Collection.

source

type Value

Type used to stores values for Collection.

Required Methods§

source

fn collection_type() -> CollectionType

CollectionType corresponding to Collection.

source

fn collection_trace(trace: Trace) -> CollectionTrace<Self>

Extract the CollectionTrace from a Trace that corresponds to Collection.

source

fn update(key: Self::Key, value: Self::Value) -> StateUpdateKind

Generate a StateUpdateKind with key and value that corresponds to Collection.

Provided Methods§

source

fn name() -> String

The human-readable name of this collection.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Collection for AuditLogCollection

source§

impl Collection for ClusterCollection

source§

impl Collection for ClusterIntrospectionSourceIndexCollection

source§

impl Collection for ClusterReplicaCollection

source§

impl Collection for CommentCollection

source§

impl Collection for ConfigCollection

source§

impl Collection for DatabaseCollection

source§

impl Collection for DefaultPrivilegeCollection

source§

impl Collection for IdAllocatorCollection

source§

impl Collection for ItemCollection

source§

impl Collection for NetworkPolicyCollection

source§

impl Collection for RoleCollection

source§

impl Collection for SchemaCollection

source§

impl Collection for SettingCollection

source§

impl Collection for SourceReferencesCollection

source§

impl Collection for StorageCollectionMetadataCollection

source§

impl Collection for SystemConfigurationCollection

source§

impl Collection for SystemItemMappingCollection

source§

impl Collection for SystemPrivilegeCollection

source§

impl Collection for TxnWalShardCollection

source§

impl Collection for UnfinalizedShardsCollection