(&mut self)
| 159 | |
| 160 | impl Accumulator for AvgAccumulator { |
| 161 | fn state(&mut self) -> Result<Vec<ScalarValue>> { |
| 162 | Ok(vec![ |
| 163 | ScalarValue::Float64(self.sum), |
| 164 | ScalarValue::from(self.count), |
| 165 | ]) |
| 166 | } |
| 167 | |
| 168 | fn update_batch(&mut self, values: &[ArrayRef]) -> Result<()> { |
| 169 | let values = values[0].as_primitive::<Float64Type>(); |
no test coverage detected