pub struct StatisticsCatalog {
pub tables: HashMap<String, TableStatistics>,
}Expand description
A catalog of table statistics for an entire schema.
This is the top-level document a
StatisticsProvider
produces and the shape a JSON/YAML statistics file is expected to
have.
§Examples
use vlorql_core::statistics::{StatisticsCatalog, TableStatistics};
let mut catalog = StatisticsCatalog::default();
catalog
.tables
.insert("users".to_owned(), TableStatistics::default());
assert!(catalog.tables.contains_key("users"));Fields§
§tables: HashMap<String, TableStatistics>Per-table statistics, keyed by table name.
Implementations§
Trait Implementations§
Source§impl Clone for StatisticsCatalog
impl Clone for StatisticsCatalog
Source§fn clone(&self) -> StatisticsCatalog
fn clone(&self) -> StatisticsCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatisticsCatalog
impl Debug for StatisticsCatalog
Source§impl Default for StatisticsCatalog
impl Default for StatisticsCatalog
Source§fn default() -> StatisticsCatalog
fn default() -> StatisticsCatalog
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatisticsCatalogwhere
StatisticsCatalog: Default,
impl<'de> Deserialize<'de> for StatisticsCatalogwhere
StatisticsCatalog: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StatisticsCatalog
impl PartialEq for StatisticsCatalog
Source§impl Serialize for StatisticsCatalog
impl Serialize for StatisticsCatalog
impl StructuralPartialEq for StatisticsCatalog
Auto Trait Implementations§
impl Freeze for StatisticsCatalog
impl RefUnwindSafe for StatisticsCatalog
impl Send for StatisticsCatalog
impl Sync for StatisticsCatalog
impl Unpin for StatisticsCatalog
impl UnsafeUnpin for StatisticsCatalog
impl UnwindSafe for StatisticsCatalog
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request