Skip to content

Commit

Permalink
Remove some dead aggs code around delayed aggs (elastic#119620)
Browse files Browse the repository at this point in the history
Looks like the removed classes never went anywhere => we should remove the dead code for the time being.
  • Loading branch information
original-brownbear authored Jan 7, 2025
1 parent 11ece15 commit ff4d900
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 199 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ public BucketsAggregator(
docCountProvider = new DocCountProvider();
}

/**
* Return an upper bound of the maximum bucket ordinal seen so far.
*/
public final long maxBucketOrd() {
return docCounts.size();
}

/**
* Ensure there are at least <code>maxBucketOrd</code> buckets available.
*/
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,6 @@ public InternalAggregation finalizeSampling(SamplingContext samplingContext) {
);
}

private Bucket reduceBucket(List<Bucket> buckets, AggregationReduceContext context) {
assert buckets.isEmpty() == false;
final List<InternalAggregations> aggregations = new BucketAggregationList<>(buckets);
final InternalAggregations aggs = InternalAggregations.reduce(aggregations, context);
return createBucket(aggs, buckets.get(0));
}

@Override
public XContentBuilder doXContentBody(XContentBuilder builder, Params params) throws IOException {
if (keyed) {
Expand Down

0 comments on commit ff4d900

Please sign in to comment.