(result interface{}, err error)
| 294 | } |
| 295 | |
| 296 | func (a *AggMinAggregator) Add(result interface{}, err error) error { |
| 297 | if err != nil { |
| 298 | a.err.CompareAndSwap(nil, err) |
| 299 | return nil |
| 300 | } |
| 301 | |
| 302 | floatVal, e := toFloat64(result) |
| 303 | if e != nil { |
| 304 | a.err.CompareAndSwap(nil, err) |
| 305 | return nil |
| 306 | } |
| 307 | |
| 308 | a.res.Value(floatVal) |
| 309 | |
| 310 | return nil |
| 311 | } |
| 312 | |
| 313 | func (a *AggMinAggregator) BatchAdd(results map[string]AggregatorResErr) error { |
| 314 | min := int64(math.MaxInt64) |
no test coverage detected