public class Queries extends Object
Constructor and Description |
---|
Queries() |
Modifier and Type | Method and Description |
---|---|
static List<PostAggregator> |
decoratePostAggregators(List<PostAggregator> postAggs,
Map<String,AggregatorFactory> aggFactories) |
static List<PostAggregator> |
prepareAggregations(List<AggregatorFactory> aggFactories,
List<PostAggregator> postAggs)
Deprecated.
|
static List<PostAggregator> |
prepareAggregations(List<String> otherOutputNames,
List<AggregatorFactory> aggFactories,
List<PostAggregator> postAggs)
Returns decorated post-aggregators, based on original un-decorated post-aggregators.
|
public static List<PostAggregator> decoratePostAggregators(List<PostAggregator> postAggs, Map<String,AggregatorFactory> aggFactories)
@Deprecated public static List<PostAggregator> prepareAggregations(List<AggregatorFactory> aggFactories, List<PostAggregator> postAggs)
prepareAggregations(List, List, List)
but with otherOutputNames as an empty list. Deprecated
because it makes it easy to forget to include dimensions, etc. in "otherOutputNames".aggFactories
- aggregator factories for this querypostAggs
- post-aggregators for this queryNullPointerException
- if aggFactories is nullIllegalArgumentException
- if there are any output name collisions or missing post-aggregator inputspublic static List<PostAggregator> prepareAggregations(List<String> otherOutputNames, List<AggregatorFactory> aggFactories, List<PostAggregator> postAggs)
otherOutputNames
- names of fields that will appear in the same output namespace as aggregators and
post-aggregators, and are also assumed to be valid inputs to post-aggregators. For most
built-in query types, this is either empty, or the list of dimension output names.aggFactories
- aggregator factories for this querypostAggs
- post-aggregators for this queryNullPointerException
- if otherOutputNames or aggFactories is nullIllegalArgumentException
- if there are any output name collisions or missing post-aggregator inputsCopyright © 2011–2018. All rights reserved.