From e2a453dd273035ed44c900bdf436d9db1f30e7d8 Mon Sep 17 00:00:00 2001 From: Josh Casale Date: Mon, 6 May 2024 23:12:30 -0400 Subject: [PATCH] comments --- vortex-array/src/stats/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vortex-array/src/stats/mod.rs b/vortex-array/src/stats/mod.rs index d3c3b9b824..6a323906fd 100644 --- a/vortex-array/src/stats/mod.rs +++ b/vortex-array/src/stats/mod.rs @@ -52,12 +52,14 @@ pub trait Statistics { /// Computes the value of the stat if it's not present fn compute(&self, stat: Stat) -> Option; + /// 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,