code: private Object getAggregatedResult(InternalAggregations internalAggs, String identifier, Expression exp)
      {
          switch (identifier)
          {
          case Expression.MIN:
              return (((InternalMin) internalAggs.get(exp.toParsedText())).getValue());
  
          case Expression.MAX:
              return (((InternalMax) internalAggs.get(exp.toParsedText())).getValue());
  
          case Expression.AVG:
              return (((InternalAvg) internalAggs.get(exp.toParsedText())).getValue());
  
          case Expression.SUM:
              return (((InternalSum) internalAggs.get(exp.toParsedText())).getValue());
  
          case Expression.COUNT:
              return (((InternalValueCount) internalAggs.get(exp.toParsedText())).getValue());
          }
  
          throw new KunderaException("No support for " + identifier + " aggregation.");
      }
docs: Gets the aggregated result.
  
  @param internalAggs
  the internal aggs
  @param identifier
  the identifier
  @param exp
  the exp
  @return the aggregated result