/** * The column name to round. * * @param columnName The column name */ public SketchRoundUpMapper(FieldName columnName) { this(columnName.asName()); }
@Override public String toString() { return asName(); } };
/** * Construct a MetricInstance from Strings with a list of dependencyMetricNames. * * @param metricName The name of the Logical Metric in the metric dictionary * @param maker The Metric Maker that creates the actual Logical Metric * @param dependencyMetricNames The names of metrics either in the dictionary or raw druid metrics that this * Logical Metric depends on */ public MetricInstance(ApiMetricName metricName, MetricMaker maker, FieldName... dependencyMetricNames) { this(metricName.asLogicalMetricInfo(), maker, dependencyMetricNames); }
@Override public boolean equals(Object o) { if (o != null && o instanceof TableName) { return name.equals(((TableName) o).asName()); } return false; }
@Override public String getApiName() { return apiName.asName(); }
@Override public String asName() { return getApiName(); }
@Override public String asName() { return toString(); }
@Override public String asName() { return name().toLowerCase(Locale.ENGLISH); } }
@Override public String toString() { return asName(); } };
@Override public String getApiName() { return apiName.asName(); }
/** * Determine if this API Metric Name is valid for the given time grain. * This capability is provided as a convenience for configurers to filter metrics from a TableGroup onto a set of * LogicalTable instances at configuration time. This version allows the logical metric itself to be used for * filtering. * <p> * An example of this is a DailyAverage metric that doesn't make sense to query by the HOUR grain, but does at WEEK. * * @param granularity TimeGrain to determine validity for * @param logicalMetric The metric whose validity is being tested. * * @return True if the ApiMetricName is valid for the time grain */ default boolean isValidFor(Granularity granularity, LogicalMetric logicalMetric) { return isValidFor(granularity); }
@Override public boolean equals(Object o) { if (o != null && o instanceof DataSourceName) { return name.equals(((DataSourceName) o).asName()); } return false; }
/** * Provide a logical metric info view on this object. * * @return A Logical Metric Info based for this metric name. */ default LogicalMetricInfo asLogicalMetricInfo() { return new LogicalMetricInfo(asName()); } }
@Override public String getApiName() { return apiName.asName(); }
/** * Construct a MetricInstance from Strings with a list of dependencyMetricNames. * * @param metricName The name of the Logical Metric in the metric dictionary * @param maker The Metric Maker that creates the actual Logical Metric * @param dependencyMetricNames The names of metrics either in the dictionary or raw druid metrics that this * Logical Metric depends on */ public MetricInstance(ApiMetricName metricName, MetricMaker maker, String... dependencyMetricNames) { this(metricName.asLogicalMetricInfo(), maker, dependencyMetricNames); }
@Override public String asName() { return getApiName(); }
@Override public String asName() { return toString(); }
@Override public String asName() { return name().toLowerCase(Locale.ENGLISH); } }
@Override public String getLongName() { return apiName.asName(); }
@Override public String getLongName() { return apiName.asName(); }