本文整理匯總了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;
}