- java.lang.Object
-
- com.pervasive.datarush.matching.Comparison
-
public class Comparison extends Object
A configuration of a field comparison for matching.
-
-
Constructor Summary
Constructors Constructor Description Comparison()
Construct an empty comparison object.Comparison(String field, ComparisonType op, String outputField)
Construct aComparison
object used to configure a field comparison operator.Comparison(String field, ComparisonType op, String outputField, Map<String,Object> properties)
Construct aComparison
object used to configure a field comparison operator.Comparison(String leftField, String rightField, ComparisonType op, String outputField)
Construct aComparison
object used to configure a field comparison operator.Comparison(String leftField, String rightField, ComparisonType op, String outputField, Map<String,Object> properties)
Construct aComparison
object used to configure a field comparison operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLeft()
Get the left field name value.ComparisonType
getOp()
Get the comparison operator type.String
getOutput()
Get the output field name value.Map<String,Object>
getProperties()
Get the operator specific properties.String
getRight()
Get the right field name value.void
setField(String fieldName)
Set the input field name to compare.void
setLeft(String leftField)
Set the input left field name value.void
setOp(ComparisonType op)
Set the comparison operator type.void
setOutput(String outputField)
Set the output field name value.void
setProperties(Map<String,Object> properties)
Set the operator specific properties.void
setRight(String rightField)
Set the input right field name value.
-
-
-
Constructor Detail
-
Comparison
public Comparison()
Construct an empty comparison object.
-
Comparison
public Comparison(String leftField, String rightField, ComparisonType op, String outputField)
Construct aComparison
object 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
public Comparison(String field, ComparisonType op, String outputField)
Construct aComparison
object 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 aComparison
object 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 aComparison
object 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 Detail
-
getLeft
public String getLeft()
Get the left field name value.- Returns:
- left field name value
-
setLeft
public void setLeft(String leftField)
Set the input left field name value.- Parameters:
leftField
- left field name value
-
getRight
public String getRight()
Get the right field name value.- Returns:
- right field name value
-
setRight
public void setRight(String rightField)
Set the input right field name value.- Parameters:
rightField
- right field name value
-
setField
public void setField(String fieldName)
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
public ComparisonType getOp()
Get the comparison operator type.- Returns:
- comparison operator type
-
setOp
public void setOp(ComparisonType op)
Set the comparison operator type.- Parameters:
op
- comparison operator type
-
getOutput
public String getOutput()
Get the output field name value.- Returns:
- output field name value
-
setOutput
public void setOutput(String outputField)
Set the output field name value.- Parameters:
outputField
- output field name value
-
getProperties
public Map<String,Object> getProperties()
Get the operator specific properties.- Returns:
- operator specific properties
-
-