pub struct LabelStatistics {
pub node_count: u64,
pub avg_out_degree: f64,
pub avg_in_degree: f64,
pub properties: HashMap<PropertyKey, ColumnStatistics>,
}Expand description
Statistics for a single label (node type).
Fields§
§node_count: u64Number of nodes with this label.
avg_out_degree: f64Average outgoing degree.
avg_in_degree: f64Average incoming degree.
properties: HashMap<PropertyKey, ColumnStatistics>Per-property statistics for nodes with this label.
Implementations§
Source§impl LabelStatistics
impl LabelStatistics
Sourcepub fn with_degrees(self, out_degree: f64, in_degree: f64) -> Self
pub fn with_degrees(self, out_degree: f64, in_degree: f64) -> Self
Sets the average degrees.
Sourcepub fn with_property(self, property: &str, stats: ColumnStatistics) -> Self
pub fn with_property(self, property: &str, stats: ColumnStatistics) -> Self
Adds property statistics.
Trait Implementations§
Source§impl Clone for LabelStatistics
impl Clone for LabelStatistics
Source§fn clone(&self) -> LabelStatistics
fn clone(&self) -> LabelStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LabelStatistics
impl RefUnwindSafe for LabelStatistics
impl Send for LabelStatistics
impl Sync for LabelStatistics
impl Unpin for LabelStatistics
impl UnwindSafe for LabelStatistics
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