com.github.timgent.sparkdataquality.checks.metrics
SingleMetricCheck
Companion class SingleMetricCheck
object SingleMetricCheck extends Serializable
- Alphabetic
- By Inheritance
- SingleMetricCheck
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
complianceCheck(threshold: AbsoluteThreshold[Double], complianceFn: ComplianceFn, filter: MetricFilter = MetricFilter.noFilter): SingleMetricCheck[DoubleMetric]
Checks the fraction of rows that are compliant with the given complianceFn
Checks the fraction of rows that are compliant with the given complianceFn
- threshold
- the threshold for what fraction of rows is acceptable
- complianceFn
- the function rows are tested with to see if they are compliant
- filter
- the filter that is applied before the compliance fraction is calculated
-
def
distinctValuesCheck(threshold: AbsoluteThreshold[Long], onColumns: List[String], filter: MetricFilter = MetricFilter.noFilter): SingleMetricCheck[LongMetric]
Checks the number of distinct values across the given columns
Checks the number of distinct values across the given columns
- threshold
- the threshold for what number of distinct values is acceptable
- onColumns
- the columns to check for distinct values in
- filter
- the filter that is applied before the distinct value count is done
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
sizeCheck(threshold: AbsoluteThreshold[Long], filter: MetricFilter = MetricFilter.noFilter): SingleMetricCheck[LongMetric]
Checks the count of rows in a dataset after the given filter is applied is within the given threshold
Checks the count of rows in a dataset after the given filter is applied is within the given threshold
- filter
- filter to be applied before rows are counted
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
thresholdBasedCheck[MV <: MetricValue](metricDescriptor: MetricDescriptor { type MetricType = MV }, description: String, threshold: AbsoluteThreshold[SingleMetricCheck.thresholdBasedCheck.MV.T]): SingleMetricCheck[MV]
A check based on a single metric that checks if that metric is within the given threshold
A check based on a single metric that checks if that metric is within the given threshold
- MV
- the type of the MetricValue that will be calculated in order to complete this check
- metricDescriptor
- describes the metric the check will be done on
- description
- the user friendly description for this check
- threshold
- the threshold that the metric must be within to pass
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()