Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcasale committed May 7, 2024
1 parent de4077c commit e2a453d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vortex-array/src/stats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ pub trait Statistics {
/// Computes the value of the stat if it's not present
fn compute(&self, stat: Stat) -> Option<Scalar>;

/// Applies the given function to the statistic if it's present
fn with_stat_value<'a>(
&self,
stat: Stat,
f: &'a mut dyn FnMut(&Scalar) -> VortexResult<()>,
) -> VortexResult<()>;

/// Applies the given function to the statistic, computing it if it's not already present
fn with_computed_stat_value<'a>(
&self,
stat: Stat,
Expand Down

0 comments on commit e2a453d

Please sign in to comment.