Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit debfca8

Browse files
jdimeoferhatsb
authored andcommitted
Bucket aggregation getBuckets() should be public. (#630)
Otherwise, if you're desigining APIs that work with any BucketAggregation subclass, you don't have a way without using things like reflection to get the buckets, keys, and counts regardless of specific aggregation type. Signed-off-by: John Dimeo <[email protected]>
1 parent b62c507 commit debfca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jest-common/src/main/java/io/searchbox/core/search/aggregation/BucketAggregation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ public BucketAggregation(String name, JsonObject root) {
1313
super(name, root);
1414
}
1515

16-
abstract List<? extends Bucket> getBuckets();
16+
public abstract List<? extends Bucket> getBuckets();
1717
}

0 commit comments

Comments
 (0)