Exemple #1
0
//按count计算指标
func (this *DataRow) Count(row []interface{}) {
	for _, i := range this.RowMap.Count {
		this.Row[i] = compute.Add(this.Row[i], 1)
	}
}
Exemple #2
0
//按min计算指标
func (this *DataRow) Min(row []interface{}) {
	for _, i := range this.RowMap.Min {
		this.Row[i] = compute.Add(this.Row[i], row[i])
	}
}