Authored by foxxy

性能优化

... ... @@ -63,7 +63,8 @@ public class BrandAggregation extends AbstractAggregation {
Iterator<? extends Bucket> itSizeAgg = aggregation.getBuckets().iterator();
while (itSizeAgg.hasNext()) {
Bucket ltSize = itSizeAgg.next();
for (String brandId : ltSize.getKeyAsString().split(",")) {
String[] brandIdArray=ltSize.getKeyAsString().split(",");
for (String brandId : brandIdArray) {
brandIds.add(brandId);
}
}
... ...