本文整理汇总了Java中org.voltdb.types.ExpressionType.AGGREGATE_COUNT_STAR属性的典型用法代码示例。如果您正苦于以下问题:Java ExpressionType.AGGREGATE_COUNT_STAR属性的具体用法?Java ExpressionType.AGGREGATE_COUNT_STAR怎么用?Java ExpressionType.AGGREGATE_COUNT_STAR使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.voltdb.types.ExpressionType
的用法示例。
在下文中一共展示了ExpressionType.AGGREGATE_COUNT_STAR属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeAggregation
ParsedSelectStmt.ParsedColInfo
removeAggregation(ParsedSelectStmt.ParsedColInfo column)
{
ParsedSelectStmt.ParsedColInfo retval =
new ParsedSelectStmt.ParsedColInfo();
retval.alias = column.alias;
retval.columnName = column.columnName;
retval.tableName = column.tableName;
retval.finalOutput = column.finalOutput;
retval.ascending = column.ascending;
retval.index = column.index;
retval.orderBy = column.orderBy;
retval.ascending = column.ascending;
retval.groupBy = column.groupBy;
if ((column.expression.getExpressionType() ==
ExpressionType.AGGREGATE_AVG) ||
(column.expression.getExpressionType() ==
ExpressionType.AGGREGATE_COUNT) ||
(column.expression.getExpressionType() ==
ExpressionType.AGGREGATE_COUNT_STAR) ||
(column.expression.getExpressionType() ==
ExpressionType.AGGREGATE_MAX) ||
(column.expression.getExpressionType() ==
ExpressionType.AGGREGATE_MIN) ||
(column.expression.getExpressionType() ==
ExpressionType.AGGREGATE_SUM))
{
retval.expression = column.expression.getLeft();
}
else
{
retval.expression = column.expression;
}
return retval;
}