Esempio n. 1
0
 private static GroupBy getGroupBy() {
   GroupBy groupBy = new GroupBy();
   List<String> columns = new ArrayList<String>();
   columns.add("dim0");
   groupBy.setColumns(columns);
   groupBy.setTopN(15);
   return groupBy;
 }
 public void setupQuery() {
   _aggregationInfos = getAggregationsInfo();
   final List<String> groupbyColumns = new ArrayList<String>();
   groupbyColumns.add("column11");
   _groupBy = new GroupBy();
   _groupBy.setColumns(groupbyColumns);
   _groupBy.setTopN(10);
 }
 private static GroupBy getGroupBy() {
   final GroupBy groupBy = new GroupBy();
   final List<String> columns = new ArrayList<String>();
   columns.add("column11");
   columns.add("column10");
   groupBy.setColumns(columns);
   groupBy.setTopN(15);
   return groupBy;
 }
 public AggregationGroupByOperatorService(
     List<AggregationInfo> aggregationInfos, GroupBy groupByQuery) {
   _aggregationFunctionList = AggregationFunctionFactory.getAggregationFunction(aggregationInfos);
   _groupByColumns = groupByQuery.getColumns();
   _groupByTopN = (int) groupByQuery.getTopN();
 }