Interface DecisionField
-
public interface DecisionField
Represents the information of a decision field that belongs to a decision tree node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldComparisonAlgorithm
getComparisonAlgorithm()
Gets the algorithm used to compute a score.java.util.Collection<ParameterValue>
getComparisonParameters()
Gets all parameters used to execute a comparison algorithm.java.lang.String
getLabel()
Gets the name of this field.com.orchestranetworks.schema.Path
getPath()
Gets the absolute path of this field in the data model.java.lang.Double
getScore()
Gets the computed score.java.lang.Boolean
isMatchWhenBothValuesAreNull()
java.lang.Boolean
isMatchWhenOneValueIsNull()
-
-
-
Method Detail
-
getLabel
java.lang.String getLabel()
Gets the name of this field.- Returns:
- String The name of this field.
-
getPath
com.orchestranetworks.schema.Path getPath()
Gets the absolute path of this field in the data model.- Returns:
- Path The absolute path of this field in the data model.
-
getComparisonAlgorithm
FieldComparisonAlgorithm getComparisonAlgorithm()
Gets the algorithm used to compute a score.- Returns:
- FieldComparisonAlgorithm The algorithm used to compute a score of two fields in two different records.
-
getComparisonParameters
java.util.Collection<ParameterValue> getComparisonParameters()
Gets all parameters used to execute a comparison algorithm.If the comparison function used in the decision node is
DecisionNodeComparisonType.ALL_FIELD_MATCH
orDecisionNodeComparisonType.AT_LEAST_N_FIELD_MATCH
, all decision fields in this node use a parameter namedminimumScore
and some specific parameters are used for certain field comparison algorithms:-
FieldComparisonAlgorithm.EXACT
uses a parameter namedcaseSensitive
-
FieldComparisonAlgorithm.FUZZY_FULL_TEXT
uses a parameter namedmaxDistance
-
FieldComparisonAlgorithm.RANGE
uses two parameters namedrangeValue
andrangeUnit
-
FieldComparisonAlgorithm.PREDICATE
uses a parameter namedpredicate
If the comparison function used in the decision node is
DecisionNodeComparisonType.AVERAGE
, all decision fields in this node use a parameter namedweight
- Returns:
- Collection
All parameters used to execute a comparison algorithm.
-
-
isMatchWhenBothValuesAreNull
java.lang.Boolean isMatchWhenBothValuesAreNull()
- Returns:
true
if the add-on identifies two matched fields where both field values are null.
-
isMatchWhenOneValueIsNull
java.lang.Boolean isMatchWhenOneValueIsNull()
- Returns:
true
if the add-on identifies two matched fields where only one field value is null.
-
getScore
java.lang.Double getScore()
Gets the computed score.- Returns:
- Double
The score computed when comparing two fields in two different records.
For example:
-
If the
Exact
algorithm is used, the score will be 0.0 or 1.0. -
If the
Levenshtein
algorithm is used, the score will be in the range of 0.0 to 1.0.
-
If the
-
-