code: func GetAggFunc(consolidator Consolidator) batch.AggFunc {
  	var consFunc batch.AggFunc
  	switch consolidator {
  	case Avg:
  		consFunc = batch.Avg
  	case Cnt:
  		consFunc = batch.Cnt
  	case Lst:
  		consFunc = batch.Lst
  	case Min:
  		consFunc = batch.Min
  	case Max:
  		consFunc = batch.Max
  	case Mult:
  		consFunc = batch.Mult
  	case Med:
  		consFunc = batch.Med
  	case Diff:
  		consFunc = batch.Diff
  	case StdDev:
  		consFunc = batch.StdDev
  	case Range:
  		consFunc = batch.Range
  	case Sum:
  		consFunc = batch.Sum
  	}
  	return consFunc
  }
docs: // map the consolidation to the respective aggregation function, if applicable.