/** * Update the postAggregations of the nested inner query. The PostAggregations of the LookbackQuery(outer query) * remain unchanged * * @param postAggregations A Collection of PostAggregations * * @return A LookbackQuery whose datasource is built using the provided postAggregations */ public LookbackQuery withInnerQueryPostAggregations(Collection<PostAggregation> postAggregations) { return new LookbackQuery(new QueryDataSource(getInnerQueryUnchecked().withPostAggregations(postAggregations)), granularity, filter, aggregations, getLookbackPostAggregations(), intervals, context, false, lookbackOffsets, lookbackPrefixes, having, limitSpec); }