Skip to content

Commit e701e57

Browse files
committed
Chores: remove unused helper method
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent 0ca81aa commit e701e57

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

opensearch/src/main/java/org/opensearch/sql/opensearch/response/agg/BucketAggregationParser.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,4 @@ public List<Map<String, Object>> parse(SearchHits hits) {
122122
protected Map<String, Object> extract(CompositeAggregation.Bucket bucket) {
123123
return bucket.getKey();
124124
}
125-
126-
/**
127-
* Extracts key-value pairs from a range aggregation bucket without processing its
128-
* sub-aggregations.
129-
*
130-
* @param bucket the range aggregation bucket to extract data from
131-
* @param name the name to use as the key in the returned map
132-
* @return a map containing the bucket's key mapped to the provided name
133-
*/
134-
protected Map<String, Object> extract(Range.Bucket bucket, String name) {
135-
return Map.of(name, bucket.getKey());
136-
}
137125
}

0 commit comments

Comments
 (0)