public class ComplexMetric extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
metricName
The underlying metric column this complex metric represents
|
private DruidType |
type
The type of this metric
|
| Constructor and Description |
|---|
ComplexMetric(String metricName,
DruidType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeUsed(AggregateCall call)
Returns true if and only if this
ComplexMetric
can be used in the given AggregateCall. |
DruidType |
getDruidType() |
String |
getMetricName() |
String |
getMetricType() |
private void |
validate(DruidType type) |
private final String metricName
private final DruidType type
private void validate(DruidType type)
public String getMetricName()
public DruidType getDruidType()
public String getMetricType()
public boolean canBeUsed(AggregateCall call)
ComplexMetric
can be used in the given AggregateCall.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.