1- use vortex_array:: stats:: { Precision , Stat , StatsSet } ;
1+ use vortex_array:: stats:: { Precision , Stat , Statistics , StatsSet } ;
22use vortex_array:: vtable:: StatisticsVTable ;
33use vortex_error:: VortexResult ;
44
@@ -10,27 +10,27 @@ impl StatisticsVTable<DictArray> for DictEncoding {
1010
1111 match stat {
1212 Stat :: RunCount => {
13- if let Some ( rc) = array. codes ( ) . statistics ( ) . compute ( Stat :: RunCount ) {
13+ if let Some ( rc) = array. codes ( ) . compute_stat ( Stat :: RunCount ) {
1414 stats. set ( Stat :: RunCount , Precision :: exact ( rc) ) ;
1515 }
1616 }
1717 Stat :: Min => {
18- if let Some ( min) = array. values ( ) . statistics ( ) . compute ( Stat :: Min ) {
18+ if let Some ( min) = array. values ( ) . compute_stat ( Stat :: Min ) {
1919 stats. set ( Stat :: Min , Precision :: exact ( min) ) ;
2020 }
2121 }
2222 Stat :: Max => {
23- if let Some ( max) = array. values ( ) . statistics ( ) . compute ( Stat :: Max ) {
23+ if let Some ( max) = array. values ( ) . compute_stat ( Stat :: Max ) {
2424 stats. set ( Stat :: Max , Precision :: exact ( max) ) ;
2525 }
2626 }
2727 Stat :: IsConstant => {
28- if let Some ( is_constant) = array. codes ( ) . statistics ( ) . compute ( Stat :: IsConstant ) {
28+ if let Some ( is_constant) = array. codes ( ) . compute_stat ( Stat :: IsConstant ) {
2929 stats. set ( Stat :: IsConstant , Precision :: exact ( is_constant) ) ;
3030 }
3131 }
3232 Stat :: NullCount => {
33- if let Some ( null_count) = array. codes ( ) . statistics ( ) . compute ( Stat :: NullCount ) {
33+ if let Some ( null_count) = array. codes ( ) . compute_stat ( Stat :: NullCount ) {
3434 stats. set ( Stat :: NullCount , Precision :: exact ( null_count) ) ;
3535 }
3636 }
@@ -42,14 +42,12 @@ impl StatisticsVTable<DictArray> for DictEncoding {
4242 . compute_is_sorted ( )
4343 . unwrap_or ( false )
4444 {
45- if let Some ( codes_are_sorted) =
46- array. codes ( ) . statistics ( ) . compute ( Stat :: IsSorted )
47- {
45+ if let Some ( codes_are_sorted) = array. codes ( ) . compute_stat ( Stat :: IsSorted ) {
4846 stats. set ( Stat :: IsSorted , Precision :: exact ( codes_are_sorted) ) ;
4947 }
5048
5149 if let Some ( codes_are_strict_sorted) =
52- array. codes ( ) . statistics ( ) . compute ( Stat :: IsStrictSorted )
50+ array. codes ( ) . compute_stat ( Stat :: IsStrictSorted )
5351 {
5452 stats. set (
5553 Stat :: IsStrictSorted ,
0 commit comments