public class AggregatorUtil extends Object
| Constructor and Description | 
|---|
| AggregatorUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static com.metamx.common.Pair<List<AggregatorFactory>,List<PostAggregator>> | condensedAggregators(List<AggregatorFactory> aggList,
                    List<PostAggregator> postAggList,
                    String metric) | 
| static List<PostAggregator> | pruneDependentPostAgg(List<PostAggregator> postAggregatorList,
                     String postAggName)returns the list of dependent postAggregators that should be calculated in order to calculate given postAgg | 
public static List<PostAggregator> pruneDependentPostAgg(List<PostAggregator> postAggregatorList, String postAggName)
postAggregatorList - List of postAggregator, there is a restriction that the list should be in an order
                           such that all the dependencies of any given aggregator should occur before that aggregator.
                           See AggregatorUtilTest.testOutOfOrderPruneDependentPostAgg for example.postAggName - name of the postAgg on which dependency is to be calculatedpublic static com.metamx.common.Pair<List<AggregatorFactory>,List<PostAggregator>> condensedAggregators(List<AggregatorFactory> aggList, List<PostAggregator> postAggList, String metric)
Copyright © 2011–2015. All rights reserved.