private static void setAggregationsInfo(BrokerRequest brokerRequest) {
   final List<AggregationInfo> aggregationsInfo = new ArrayList<AggregationInfo>();
   aggregationsInfo.add(getCountAggregationInfo());
   aggregationsInfo.add(getSumAggregationInfo());
   aggregationsInfo.add(getMaxAggregationInfo());
   aggregationsInfo.add(getMinAggregationInfo());
   aggregationsInfo.add(getAvgAggregationInfo());
   aggregationsInfo.add(getDistinctCountAggregationInfo("column12"));
   brokerRequest.setAggregationsInfo(aggregationsInfo);
   brokerRequest.setGroupBy(getGroupBy());
 }
 private static BrokerRequest getAggregationGroupByNoFilterBrokerRequest() {
   final BrokerRequest brokerRequest = new BrokerRequest();
   final List<AggregationInfo> aggregationsInfo = new ArrayList<AggregationInfo>();
   aggregationsInfo.add(getCountAggregationInfo());
   aggregationsInfo.add(getSumAggregationInfo());
   aggregationsInfo.add(getMaxAggregationInfo());
   aggregationsInfo.add(getMinAggregationInfo());
   aggregationsInfo.add(getAvgAggregationInfo());
   aggregationsInfo.add(getDistinctCountAggregationInfo("column12"));
   brokerRequest.setAggregationsInfo(aggregationsInfo);
   brokerRequest.setGroupBy(getGroupBy());
   return brokerRequest;
 }
Пример #3
0
 private static BrokerRequest getAggregationGroupByWithFilterBrokerRequest() {
   BrokerRequest brokerRequest = new BrokerRequest();
   List<AggregationInfo> aggregationsInfo = new ArrayList<AggregationInfo>();
   aggregationsInfo.add(getCountAggregationInfo());
   aggregationsInfo.add(getSumAggregationInfo());
   aggregationsInfo.add(getMaxAggregationInfo());
   aggregationsInfo.add(getMinAggregationInfo());
   aggregationsInfo.add(getAvgAggregationInfo());
   aggregationsInfo.add(getDistinctCountDim0AggregationInfo());
   aggregationsInfo.add(getDistinctCountDim1AggregationInfo());
   brokerRequest.setAggregationsInfo(aggregationsInfo);
   brokerRequest.setGroupBy(getGroupBy());
   brokerRequest = setFilterQuery(brokerRequest);
   return brokerRequest;
 }