Login  Register

回复:Questions about AggType

Posted by on Nov 14, 2016; 2:38am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/Questions-about-AggType-tp2886p2888.html

Hi, Sea
    carbon use this aggType to distinguish the measure type, for double "n", decimal 'b', bigint 'l', and maybe ByteArrayValue 'c'.
  here, the name aggType maybe a little bit confused, while, this consideration is about supporting aggregation table type in the future,
 so, it is a name to compatible.


Reagrds
Jay




------------------ 原始邮件 ------------------
发件人: "Sea";<[hidden email]>;
发送时间: 2016年11月13日(星期天) 晚上11:47
收件人: "dev"<[hidden email]>;

主题: Questions about AggType



Hi,all:
   I feel a little confused abount AggType, Anyone can explain ?




public static char getAggType(DataType dataType) {
  switch (dataType) {
    case DECIMAL:
      return CarbonCommonConstants.BIG_DECIMAL_MEASURE;
    case INT:
    case LONG:
      return CarbonCommonConstants.BIG_INT_MEASURE;
    default:
      return CarbonCommonConstants.SUM_COUNT_VALUE_MEASURE;
  }
}