docs: public static AggregationUnit create(final AggregationType type) {
          switch (type) {
              case MAX:
                  return new ComparableAggregationUnit(false);
              case MIN:
                  return new ComparableAggregationUnit(true);
              case SUM:
              case COUNT:
                  return new AccumulationAggregationUnit();
              case AVG:
                  return new AverageAggregationUnit();
              default:
                  throw new UnsupportedOperationException(type.name());
          }
      }