use of com.linkedin.pinot.common.request.BrokerRequest 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.BrokerRequest 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.BrokerRequest 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.BrokerRequest in project pinot by linkedin.
the class QueryExecutorTest method getSumQuery.
private BrokerRequest getSumQuery() {
BrokerRequest query = new BrokerRequest();
AggregationInfo aggregationInfo = getSumAggregationInfo();
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.BrokerRequest in project pinot by linkedin.
the class QueryExecutorTest method getMaxQuery.
private BrokerRequest getMaxQuery() {
BrokerRequest query = new BrokerRequest();
AggregationInfo aggregationInfo = getMaxAggregationInfo();
List<AggregationInfo> aggregationsInfo = new ArrayList<AggregationInfo>();
aggregationsInfo.add(aggregationInfo);
query.setAggregationsInfo(aggregationsInfo);
FilterQuery filterQuery = getFilterQuery();
query.setFilterQuery(filterQuery);
return query;
}
Aggregations