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§
Sourcefn metadata_version(&self) -> MetadataVersion
fn metadata_version(&self) -> MetadataVersion
The control-plane metadata version this plan is pinned to.
Sourcefn table_stats(&self, table: &str) -> DistributedResult<TableStats>
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".