Skip to main content

ClusterMetadata

Trait ClusterMetadata 

Source
pub trait ClusterMetadata: Send + Sync {
    // Required methods
    fn metadata_version(&self) -> MetadataVersion;
    fn table_stats(&self, table: &str) -> DistributedResult<TableStats>;
}
Expand description

Control-plane metadata the planner pins against (spec section 12.10: “coordinator plans using metadata version”).

Required Methods§

Source

fn metadata_version(&self) -> MetadataVersion

The control-plane metadata version this plan is pinned to.

Source

fn table_stats(&self, table: &str) -> DistributedResult<TableStats>

Planner statistics for one table.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§