Class ComplexMetric


  • public class ComplexMetric
    extends java.lang.Object
    Used to store information about available complex metrics in the Druid Adapter
    • 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 this ComplexMetric can be used in the given AggregateCall.