use of com.linkedin.thirdeye.hadoop.config.TopkWhitelistSpec in project pinot by linkedin.
the class ThirdEyeConfig method getTopKWhitelistFromProperties.
private static TopkWhitelistSpec getTopKWhitelistFromProperties(Properties props) {
TopkWhitelistSpec topKWhitelist = null;
Map<String, Double> threshold = getThresholdFromProperties(props);
List<TopKDimensionToMetricsSpec> topKDimensionToMetricsSpec = getTopKDimensionToMetricsSpecFromProperties(props);
Map<String, String> whitelist = getWhitelistFromProperties(props);
if (threshold != null || topKDimensionToMetricsSpec != null || whitelist != null) {
topKWhitelist = new TopkWhitelistSpec();
topKWhitelist.setThreshold(threshold);
topKWhitelist.setTopKDimensionToMetricsSpec(topKDimensionToMetricsSpec);
topKWhitelist.setWhitelist(whitelist);
}
return topKWhitelist;
}
Aggregations