public class LogicalMetric extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CATEGORY |
Constructor and Description |
---|
LogicalMetric(TemplateDruidQuery templateDruidQuery,
ResultSetMapper calculation,
LogicalMetricInfo logicalMetricInfo)
Constructor.
|
LogicalMetric(TemplateDruidQuery templateDruidQuery,
ResultSetMapper calculation,
String name)
Deprecated.
Properties, such as name, of LogicalMetric is stored in a unified object called
LogicalMetricInfo . Use new constructor
LogicalMetric(TemplateDruidQuery, ResultSetMapper, LogicalMetricInfo) instead. |
LogicalMetric(TemplateDruidQuery templateDruidQuery,
ResultSetMapper calculation,
String name,
String description)
Deprecated.
Properties, such as name, of LogicalMetric is stored in a unified object called
LogicalMetricInfo . Use new constructor
LogicalMetric(TemplateDruidQuery, ResultSetMapper, LogicalMetricInfo) instead. |
LogicalMetric(TemplateDruidQuery templateDruidQuery,
ResultSetMapper calculation,
String name,
String longName,
String category,
String description)
Deprecated.
Properties, such as name, of LogicalMetric is stored in a unified object called
LogicalMetricInfo . Use new constructor
LogicalMetric(TemplateDruidQuery, ResultSetMapper, LogicalMetricInfo) instead. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ResultSetMapper |
getCalculation() |
String |
getCategory() |
String |
getDescription() |
String |
getLongName() |
MetricField |
getMetricField() |
String |
getName() |
TemplateDruidQuery |
getTemplateDruidQuery() |
String |
getType() |
int |
hashCode() |
String |
toString() |
public static final String DEFAULT_CATEGORY
@Deprecated public LogicalMetric(TemplateDruidQuery templateDruidQuery, ResultSetMapper calculation, String name, String longName, String category, String description)
LogicalMetricInfo
. Use new constructor
LogicalMetric(TemplateDruidQuery, ResultSetMapper, LogicalMetricInfo)
instead.templateDruidQuery
- Query the metric needscalculation
- Mapper for the metricname
- Name of the metriclongName
- Long name of the metriccategory
- Category of the metricdescription
- Description of the metric@Deprecated public LogicalMetric(TemplateDruidQuery templateDruidQuery, ResultSetMapper calculation, String name, String description)
LogicalMetricInfo
. Use new constructor
LogicalMetric(TemplateDruidQuery, ResultSetMapper, LogicalMetricInfo)
instead.Note: The description is set to the same as the name.
templateDruidQuery
- Query the metric needscalculation
- Mapper for the metricname
- Name of the metricdescription
- Description of the metric@Deprecated public LogicalMetric(TemplateDruidQuery templateDruidQuery, ResultSetMapper calculation, String name)
LogicalMetricInfo
. Use new constructor
LogicalMetric(TemplateDruidQuery, ResultSetMapper, LogicalMetricInfo)
instead.Note: The description is set to the same as the name.
templateDruidQuery
- Query the metric needscalculation
- Mapper for the metricname
- Name of the metricpublic LogicalMetric(TemplateDruidQuery templateDruidQuery, ResultSetMapper calculation, LogicalMetricInfo logicalMetricInfo)
templateDruidQuery
- Query the metric needscalculation
- Mapper for the metriclogicalMetricInfo
- Logical Metric info providerpublic String getName()
public String getDescription()
public ResultSetMapper getCalculation()
public TemplateDruidQuery getTemplateDruidQuery()
public MetricField getMetricField()
public String getCategory()
public String getLongName()
public String getType()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.