Module datarush.analytics
Class DataQualityAnalyzer.QualityTest
- java.lang.Object
-
- com.pervasive.datarush.analytics.stats.DataQualityAnalyzer.QualityTest
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DataQualityAnalyzer
public static class DataQualityAnalyzer.QualityTest extends Object implements Serializable
A quality test consists of a test name (used to reference the test in the statistics) plus a boolean predicate.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QualityTest(String testName, ScalarValuedFunction predicate)
Create a quality test
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarValuedFunction
getPredicate()
Returns a boolean predicate.String
getTestName()
Returns the test name.
-
-
-
Constructor Detail
-
QualityTest
public QualityTest(String testName, ScalarValuedFunction predicate)
Create a quality test- Parameters:
testName
- the test name that is used to reference the test in the output statistics modelpredicate
- a boolean predicate that is evaluated on each row of the input
-
-
Method Detail
-
getTestName
public String getTestName()
Returns the test name. This is used to reference the test in the output statistics model- Returns:
- the test name
-
getPredicate
public ScalarValuedFunction getPredicate()
Returns a boolean predicate. All predicates are evaluated on each row. If any tests return "false" the row is considered dirty.- Returns:
- a boolean predicate
-
-