Package org.apache.calcite.adapter.druid
Class ComplexMetric
- java.lang.Object
-
- org.apache.calcite.adapter.druid.ComplexMetric
-
public class ComplexMetric extends java.lang.Object
Used to store information about available complex metrics in the Druid Adapter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
metricName
The underlying metric column this complex metric representsprivate DruidType
type
The type of this metric
-
Constructor Summary
Constructors Constructor Description ComplexMetric(java.lang.String metricName, DruidType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeUsed(AggregateCall call)
Returns true if and only if thisComplexMetric
can be used in the givenAggregateCall
.DruidType
getDruidType()
java.lang.String
getMetricName()
java.lang.String
getMetricType()
private void
validate(DruidType type)
-
-
-
Field Detail
-
metricName
private final java.lang.String metricName
The underlying metric column this complex metric represents
-
type
private final DruidType type
The type of this metric
-
-
Constructor Detail
-
ComplexMetric
public ComplexMetric(java.lang.String metricName, DruidType type)
-
-
Method Detail
-
validate
private void validate(DruidType type)
-
getMetricName
public java.lang.String getMetricName()
-
getDruidType
public DruidType getDruidType()
-
getMetricType
public java.lang.String getMetricType()
-
canBeUsed
public boolean canBeUsed(AggregateCall call)
Returns true if and only if thisComplexMetric
can be used in the givenAggregateCall
.
-
-