public class QualityAssessorImpl extends Object implements QualityAssessor, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
QualityAssessorImpl.GraphScoreWithTraceImpl |
QualityAssessor.GraphScoreWithTrace
Constructor and Description |
---|
QualityAssessorImpl(Integer... groupIds) |
QualityAssessorImpl(String... groupLabels) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCoefficient(Double coefficient) |
protected void |
applyRule(QualityAssessmentRule rule,
Collection<QualityAssessmentRule> appliedRules)
Applies all the selected rules on the input graph.
|
protected void |
applyRules(Collection<QualityAssessmentRule> appliedRules)
Find out what rules are violated and change the score and trace accordingly.
|
List<QualityAssessor.GraphScoreWithTrace> |
debugRules(HashMap<String,String> graphs,
TransformationContext context,
TableVersion tableVersion) |
QualityAssessor.GraphScoreWithTrace |
getGraphScoreWithTrace(String graphName,
JDBCConnectionCredentials clean) |
QualityAssessor.GraphScoreWithTrace |
getGraphScoreWithTrace(String graphName,
JDBCConnectionCredentials clean,
JDBCConnectionCredentials source,
TableVersion tableVersion) |
protected void |
loadRules() |
protected void |
loadRules(TableVersion tableVersion)
Analyze what rules should be applied (find out what rule group is demanded).
|
protected void |
logComment(String comment) |
void |
shutdown()
Called when the instance of the transformer is no longer needed.
|
protected void |
storeResults() |
void |
transformGraph(TransformedGraph inputGraph,
TransformationContext context)
Transforms a graph.
|
public QualityAssessorImpl(Integer... groupIds)
public QualityAssessorImpl(String... groupLabels)
public List<QualityAssessor.GraphScoreWithTrace> debugRules(HashMap<String,String> graphs, TransformationContext context, TableVersion tableVersion) throws TransformerException
debugRules
in interface QualityAssessor
TransformerException
public void transformGraph(TransformedGraph inputGraph, TransformationContext context) throws TransformerException
Transformer
transformGraph
in interface Transformer
inputGraph
- holder for the transformed graph.context
- context of the transformationTransformerException
- exceptionpublic QualityAssessor.GraphScoreWithTrace getGraphScoreWithTrace(String graphName, JDBCConnectionCredentials clean) throws TransformerException
TransformerException
public QualityAssessor.GraphScoreWithTrace getGraphScoreWithTrace(String graphName, JDBCConnectionCredentials clean, JDBCConnectionCredentials source, TableVersion tableVersion) throws TransformerException
TransformerException
protected void loadRules() throws QualityAssessmentException
QualityAssessmentException
protected void loadRules(TableVersion tableVersion) throws QualityAssessmentException
QualityAssessmentException
protected void applyRules(Collection<QualityAssessmentRule> appliedRules) throws QualityAssessmentException
QualityAssessmentException
protected void applyRule(QualityAssessmentRule rule, Collection<QualityAssessmentRule> appliedRules) throws QualityAssessmentException
QualityAssessmentException
protected void logComment(String comment)
protected void addCoefficient(Double coefficient)
protected void storeResults() throws QualityAssessmentException
QualityAssessmentException
public void shutdown()
Transformer
shutdown
in interface Transformer
Copyright © 2013. All Rights Reserved.