|
@ -190,14 +190,14 @@ public class AggregationBuildHandler {
|
|
|
if(rowAggCode.equals(aggName)){
|
|
|
Terms terms = (Terms)aggregation;
|
|
|
String termNmae = terms.getName();
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
String key = "";
|
|
|
List<Terms.Bucket> buckets = terms.getBuckets();
|
|
|
for(Terms.Bucket bucket : buckets){
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
key = bucket.getKey().toString();
|
|
|
resultMap.put(termNmae,key);
|
|
|
for(String cloumnAggCode: cloumnList){
|
|
|
List<Aggregation> aggregationList = getAggregationList(terms.getBuckets().iterator());
|
|
|
List<Aggregation> aggregationList = bucket.getAggregations().asList();
|
|
|
for(Aggregation subAgg : aggregationList){
|
|
|
if(subAgg.getName().equals(cloumnAggCode)){
|
|
|
Map<String, Object> subDataMap = getInternalAggValue(subAgg.getName(),subAgg);
|