Search in sources :

Example 6 with DimensionSpec

use of com.linkedin.thirdeye.hadoop.config.DimensionSpec in project pinot by linkedin.

the class ThirdEyeConfig method fromProperties.

/**
   * Creates a ThirdEyeConfig object from the Properties object
   * @param props
   * @return
   */
public static ThirdEyeConfig fromProperties(Properties props) {
    String collection = getCollectionFromProperties(props);
    List<DimensionSpec> dimensions = getDimensionFromProperties(props);
    List<MetricSpec> metrics = getMetricsFromProperties(props);
    TimeSpec inputTime = getInputTimeFromProperties(props);
    TimeSpec time = getTimeFromProperties(props);
    SplitSpec split = getSplitFromProperties(props);
    TopkWhitelistSpec topKWhitelist = getTopKWhitelistFromProperties(props);
    ThirdEyeConfig thirdeyeConfig = new ThirdEyeConfig(collection, dimensions, metrics, inputTime, time, topKWhitelist, split);
    return thirdeyeConfig;
}
Also used : DimensionSpec(com.linkedin.thirdeye.hadoop.config.DimensionSpec) TopkWhitelistSpec(com.linkedin.thirdeye.hadoop.config.TopkWhitelistSpec) MetricSpec(com.linkedin.thirdeye.hadoop.config.MetricSpec) SplitSpec(com.linkedin.thirdeye.hadoop.config.SplitSpec) TimeSpec(com.linkedin.thirdeye.hadoop.config.TimeSpec)

Aggregations

DimensionSpec (com.linkedin.thirdeye.hadoop.config.DimensionSpec)6 MetricSpec (com.linkedin.thirdeye.hadoop.config.MetricSpec)5 ArrayList (java.util.ArrayList)4 MetricType (com.linkedin.thirdeye.hadoop.config.MetricType)3 TopkWhitelistSpec (com.linkedin.thirdeye.hadoop.config.TopkWhitelistSpec)3 TimeSpec (com.linkedin.thirdeye.hadoop.config.TimeSpec)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Set (java.util.Set)2 DimensionFieldSpec (com.linkedin.pinot.common.data.DimensionFieldSpec)1 FieldSpec (com.linkedin.pinot.common.data.FieldSpec)1 MetricFieldSpec (com.linkedin.pinot.common.data.MetricFieldSpec)1 Schema (com.linkedin.pinot.common.data.Schema)1 TimeFieldSpec (com.linkedin.pinot.common.data.TimeFieldSpec)1 TimeGranularitySpec (com.linkedin.pinot.common.data.TimeGranularitySpec)1 SplitSpec (com.linkedin.thirdeye.hadoop.config.SplitSpec)1 TopKDimensionToMetricsSpec (com.linkedin.thirdeye.hadoop.config.TopKDimensionToMetricsSpec)1