public TopNQuery withDimension(Dimension dimension) { return new TopNQuery(getDataSource(), granularity, dimension, filter, aggregations, postAggregations, intervals, threshold, metric, context, false); }
@Override public TopNQuery withContext(QueryContext context) { return new TopNQuery(getDataSource(), granularity, getDimension(), filter, aggregations, postAggregations, intervals, threshold, metric, context, false); } // CHECKSTYLE:ON
@Override public TopNQuery withGranularity(Granularity granularity) { return new TopNQuery(getDataSource(), granularity, getDimension(), filter, aggregations, postAggregations, intervals, threshold, metric, context, false); }
@Override public TopNQuery withFilter(Filter filter) { return new TopNQuery(getDataSource(), granularity, getDimension(), filter, aggregations, postAggregations, intervals, threshold, metric, context, false); }
@Override public TopNQuery withAggregations(Collection<Aggregation> aggregations) { return new TopNQuery(getDataSource(), granularity, getDimension(), filter, aggregations, postAggregations, intervals, threshold, metric, context, false); }
@Override public TopNQuery withPostAggregations(Collection<PostAggregation> postAggregations) { return new TopNQuery(getDataSource(), granularity, getDimension(), filter, aggregations, postAggregations, intervals, threshold, metric, context, false); }
@Override public TopNQuery withIntervals(Collection<Interval> intervals) { return new TopNQuery(getDataSource(), granularity, getDimension(), filter, aggregations, postAggregations, intervals, threshold, metric, context, true); }
public TopNQuery withMetric(TopNMetric metric) { return new TopNQuery(getDataSource(), granularity, getDimension(), filter, aggregations, postAggregations, intervals, threshold, metric, context, false); }
TopNQuery topNQuery = (TopNQuery) innerQuery; GroupByQuery transformed = new GroupByQuery( new UnionDataSource(topNQuery.getDataSource().getPhysicalTable()), topNQuery.getGranularity(), topNQuery.getDimensions(),