use of com.linkedin.pinot.common.request.AggregationInfo in project pinot by linkedin.
the class BrokerReduceServiceTest method getSumAggregationInfo.
private AggregationInfo getSumAggregationInfo() {
String type = "sum";
Map<String, String> params = new HashMap<String, String>();
params.put("column", "met");
AggregationInfo aggregationInfo = new AggregationInfo();
aggregationInfo.setAggregationType(type);
aggregationInfo.setAggregationParams(params);
return aggregationInfo;
}
use of com.linkedin.pinot.common.request.AggregationInfo in project pinot by linkedin.
the class BrokerReduceServiceTest method getMultiAggregationQuery.
private BrokerRequest getMultiAggregationQuery() {
BrokerRequest query = 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(getDistinctCountAggregationInfo("dim0"));
aggregationsInfo.add(getDistinctCountAggregationInfo("dim1"));
query.setAggregationsInfo(aggregationsInfo);
query.setFilterQuery(null);
return query;
}
use of com.linkedin.pinot.common.request.AggregationInfo in project pinot by linkedin.
the class BrokerReduceServiceTest method getSumQuery.
private BrokerRequest getSumQuery() {
BrokerRequest query = new BrokerRequest();
AggregationInfo aggregationInfo = getSumAggregationInfo();
List<AggregationInfo> aggregationsInfo = new ArrayList<AggregationInfo>();
aggregationsInfo.add(aggregationInfo);
query.setAggregationsInfo(aggregationsInfo);
query.setFilterQuery(null);
return query;
}
use of com.linkedin.pinot.common.request.AggregationInfo in project pinot by linkedin.
the class QueryExecutorTest method getCountQuery.
private BrokerRequest getCountQuery() {
BrokerRequest query = new BrokerRequest();
AggregationInfo aggregationInfo = getCountAggregationInfo();
List<AggregationInfo> aggregationsInfo = new ArrayList<AggregationInfo>();
aggregationsInfo.add(aggregationInfo);
query.setAggregationsInfo(aggregationsInfo);
FilterQuery filterQuery = getFilterQuery();
query.setFilterQuery(filterQuery);
return query;
}
use of com.linkedin.pinot.common.request.AggregationInfo in project pinot by linkedin.
the class QueryExecutorTest method getSumAggregationInfo.
private AggregationInfo getSumAggregationInfo() {
String type = "sum";
Map<String, String> params = new HashMap<String, String>();
params.put("column", "met");
AggregationInfo aggregationInfo = new AggregationInfo();
aggregationInfo.setAggregationType(type);
aggregationInfo.setAggregationParams(params);
return aggregationInfo;
}
Aggregations