java.lang.Object
com.pervasive.datarush.matching.Comparison
A configuration of a field comparison for matching.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an empty comparison object.Comparison(String field, ComparisonType op, String outputField) Construct aComparisonobject used to configure a field comparison operator.Comparison(String field, ComparisonType op, String outputField, Map<String, Object> properties) Construct aComparisonobject used to configure a field comparison operator.Comparison(String leftField, String rightField, ComparisonType op, String outputField) Construct aComparisonobject used to configure a field comparison operator.Comparison(String leftField, String rightField, ComparisonType op, String outputField, Map<String, Object> properties) Construct aComparisonobject used to configure a field comparison operator. -
Method Summary
Modifier and TypeMethodDescriptiongetLeft()Get the left field name value.getOp()Get the comparison operator type.Get the output field name value.Get the operator specific properties.getRight()Get the right field name value.voidSet the input field name to compare.voidSet the input left field name value.voidsetOp(ComparisonType op) Set the comparison operator type.voidSet the output field name value.voidsetProperties(Map<String, Object> properties) Set the operator specific properties.voidSet the input right field name value.
-
Constructor Details
-
Comparison
public Comparison()Construct an empty comparison object. -
Comparison
Construct aComparisonobject used to configure a field comparison operator.- Parameters:
leftField- the name of the left hand side field to comparerightField- the name of the right hand side field to compareop- the comparison operation to performoutputField- the name of the field resulting from the comparison
-
Comparison
Construct aComparisonobject used to configure a field comparison operator. The field is assumed to have the same name on both sides.- Parameters:
field- the name of the field to compare on the left and right hand sidesop- the comparison operation to performoutputField- the name of the field resulting from the comparison
-
Comparison
public Comparison(String leftField, String rightField, ComparisonType op, String outputField, Map<String, Object> properties) Construct aComparisonobject used to configure a field comparison operator.- Parameters:
leftField- the name of the left hand side field to comparerightField- the name of the right hand side field to compareop- the comparison operation to performoutputField- the name of the field resulting from the comparisonproperties- properties specific to the configured comparison operator
-
Comparison
public Comparison(String field, ComparisonType op, String outputField, Map<String, Object> properties) Construct aComparisonobject used to configure a field comparison operator. The field is assumed to have the same name on both sides.- Parameters:
field- the name of the field to compare on the left and right hand sidesop- the comparison operation to performoutputField- the name of the field resulting from the comparisonproperties- properties specific to the configured comparison operator
-
-
Method Details
-
getLeft
Get the left field name value.- Returns:
- left field name value
-
setLeft
Set the input left field name value.- Parameters:
leftField- left field name value
-
getRight
Get the right field name value.- Returns:
- right field name value
-
setRight
Set the input right field name value.- Parameters:
rightField- right field name value
-
setField
Set the input field name to compare. A pattern is applied to generate the left field and right field names.- Parameters:
fieldName- input field name
-
getOp
Get the comparison operator type.- Returns:
- comparison operator type
-
setOp
Set the comparison operator type.- Parameters:
op- comparison operator type
-
getOutput
Get the output field name value.- Returns:
- output field name value
-
setOutput
Set the output field name value.- Parameters:
outputField- output field name value
-
getProperties
Get the operator specific properties.- Returns:
- operator specific properties
-
setProperties
Set the operator specific properties.- Parameters:
properties- operator specific properties
-