case class CountDistinctValuesMetric(onColumns: List[String], filter: MetricFilter = MetricFilter.noFilter) extends MetricDescriptor with Filterable with Product with Serializable
A metric that calculates the number of distinct values in a column or across several columns
- onColumns
- the columns for which you are counting distinct values
- filter
- the filter to be applied before the distinct count is calculated
- Alphabetic
- By Inheritance
- CountDistinctValuesMetric
- Serializable
- Serializable
- Product
- Equals
- Filterable
- MetricDescriptor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CountDistinctValuesMetric(onColumns: List[String], filter: MetricFilter = MetricFilter.noFilter)
- onColumns
- the columns for which you are counting distinct values
- filter
- the filter to be applied before the distinct count is calculated
Type Members
-
type
MC = DistinctValuesMetricCalculator
- Definition Classes
- CountDistinctValuesMetric → MetricDescriptor
-
type
MetricType = MetricCalculator.DistinctValuesMetricCalculator.MetricType
- Definition Classes
- MetricDescriptor
Value Members
-
val
filter: MetricFilter
A filter to apply before calculation of the metric
A filter to apply before calculation of the metric
- returns
the MetricFilter
- Definition Classes
- CountDistinctValuesMetric → Filterable
-
def
metricCalculator: DistinctValuesMetricCalculator
The metricCalculator which contains key logic for calculating a MetricValue for this MetricDescriptor
The metricCalculator which contains key logic for calculating a MetricValue for this MetricDescriptor
- returns
the MetricCalculator
- Definition Classes
- CountDistinctValuesMetric → MetricDescriptor
-
def
metricName: String
A name for the metric
A name for the metric
- Definition Classes
- CountDistinctValuesMetric → MetricDescriptor
- val onColumns: List[String]
-
def
toSimpleMetricDescriptor: SimpleMetricDescriptor
A representation of the MetricDescriptor that can be more easily handled for persistence
A representation of the MetricDescriptor that can be more easily handled for persistence
- returns
the SimpleMetricDescriptor
- Definition Classes
- CountDistinctValuesMetric → MetricDescriptor