Packages

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

Linear Supertypes
Serializable, Serializable, Product, Equals, Filterable, MetricDescriptor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CountDistinctValuesMetric
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Filterable
  7. MetricDescriptor
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. type MC = DistinctValuesMetricCalculator
    Definition Classes
    CountDistinctValuesMetric → MetricDescriptor
  2. type MetricType = MetricCalculator.DistinctValuesMetricCalculator.MetricType
    Definition Classes
    MetricDescriptor

Value Members

  1. 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
    CountDistinctValuesMetricFilterable
  2. 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
  3. def metricName: String

    A name for the metric

    A name for the metric

    Definition Classes
    CountDistinctValuesMetric → MetricDescriptor
  4. val onColumns: List[String]
  5. 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