public class MetricInstance extends Object
Constructor and Description |
---|
MetricInstance(FieldName metricName,
MetricMaker maker,
FieldName... dependencyFields)
Deprecated.
logical metric needs more config-richness to not just configure metric name, but also metric long
name, description, etc. Use
MetricInstance(LogicalMetricInfo, MetricMaker, FieldName...) instead. |
MetricInstance(LogicalMetricInfo logicalMetricInfo,
MetricMaker maker)
Construct a MetricInstance from FieldNames.
|
MetricInstance(LogicalMetricInfo logicalMetricInfo,
MetricMaker maker,
FieldName... dependencyFields)
Construct a MetricInstance from FieldNames with a list of dependencyFields.
|
MetricInstance(LogicalMetricInfo logicalMetricInfo,
MetricMaker maker,
String... dependencyMetricNames)
Construct a MetricInstance from Strings with a list of dependencyMetricNames.
|
MetricInstance(String metricName,
MetricMaker maker,
String... dependencyMetricNames)
Deprecated.
logical metric needs more config-richness to not just configure metric name, but also metric long
name, description, etc. Use
MetricInstance(LogicalMetricInfo, MetricMaker, String...) instead. |
Modifier and Type | Method and Description |
---|---|
List<String> |
getDependencyMetricNames() |
LogicalMetricInfo |
getLogicalMetricInfo()
Returns the LogicalMetricInfo of this MetricInstance.
|
MetricMaker |
getMaker() |
String |
getMetricName() |
LogicalMetric |
make()
Make the Logical Metric from the information in this MetricInstance.
|
MetricInstance |
withDependencyMetricNames(List<String> dependencyMetricNames)
Makes a copy of the metric instance with new dependencyMetricNames.
|
MetricInstance |
withMaker(MetricMaker maker)
Makes a copy of the metric instance with new maker.
|
MetricInstance |
withName(String metricName)
Makes a copy of the metric instance with new metric name.
|
@Deprecated public MetricInstance(String metricName, MetricMaker maker, String... dependencyMetricNames)
MetricInstance(LogicalMetricInfo, MetricMaker, String...)
instead.metricName
- The name of the Logical Metric in the metric dictionarymaker
- The Metric Maker that creates the actual Logical MetricdependencyMetricNames
- The names of metrics either in the dictionary or raw druid metrics that this
Logical Metric depends onpublic MetricInstance(LogicalMetricInfo logicalMetricInfo, MetricMaker maker, String... dependencyMetricNames)
logicalMetricInfo
- Logical metric info providermaker
- The Metric Maker that creates the actual Logical MetricdependencyMetricNames
- The names of metrics either in the dictionary or raw druid metrics that this
Logical Metric depends on@Deprecated public MetricInstance(FieldName metricName, MetricMaker maker, FieldName... dependencyFields)
MetricInstance(LogicalMetricInfo, MetricMaker, FieldName...)
instead.metricName
- The name of the Logical Metric when it's in the metric dictionarymaker
- The Metric Maker that creates the actual Logical MetricdependencyFields
- The field names that this Logical Metric depends onpublic MetricInstance(LogicalMetricInfo logicalMetricInfo, MetricMaker maker, FieldName... dependencyFields)
logicalMetricInfo
- Logical metric info providermaker
- The Metric Maker that creates the actual Logical MetricdependencyFields
- The field names that this Logical Metric depends onpublic MetricInstance(LogicalMetricInfo logicalMetricInfo, MetricMaker maker)
logicalMetricInfo
- Logical metric info providermaker
- The Metric Maker that creates the actual Logical Metricpublic String getMetricName()
public LogicalMetricInfo getLogicalMetricInfo()
public MetricMaker getMaker()
public MetricInstance withName(String metricName)
metricName
- The name of the Logical Metric in the metric dictionarypublic MetricInstance withMaker(MetricMaker maker)
maker
- The Metric Maker that creates the actual Logical Metricpublic MetricInstance withDependencyMetricNames(List<String> dependencyMetricNames)
dependencyMetricNames
- The name of metrics that this Logical Metric depends onpublic LogicalMetric make()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.