public class ReconOperatorCompFilter extends ReconOperator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
classstructureId |
protected boolean |
compareAsDoubles |
protected int |
indexOfAttribute |
protected java.lang.String |
indexOfAttributeName |
protected java.lang.String |
objectName |
protected static int |
OP_EQ_NOTEQ |
protected static int |
OP_EXISTS |
protected static int |
OP_GT_LTOREQ |
protected static int |
OP_LIKE_UNLIKE |
protected static int |
OP_LT_GTOREQ |
protected static int |
OP_NOTEMPTY_NOTNULL |
protected static java.lang.String |
OP_TEXT_EXISTS |
protected int |
operatorCode |
protected boolean |
operatorFlag |
protected double |
valueAsDouble |
protected LikePatternMatcher |
valueAsLikePatternMatcher |
protected java.lang.String |
valueAsString |
protected ReconValueSet |
valueSet |
isRightAssociative, operator, precedence, reconInfo
Constructor and Description |
---|
ReconOperatorCompFilter(ReconInfo reconInfo,
DataSet dataSet,
java.lang.String operator,
int precedence)
Any comparison filter operator
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
compareFilterClassStruct(ReconValue av)
Compare the classtructure defined in dataset Filter with the current object's classtructure
|
protected void |
evaluateComparisonOperator(java.util.List ret) |
java.util.List |
evaluateOperator(java.lang.String objectandAttributeName,
java.lang.String value,
ComparisonQueryHelper qh) |
protected void |
evaluateOperatorEXISTS(java.util.List ret) |
protected void |
evaluateOperatorLIKE(java.util.List ret) |
protected void |
evaluateOperatorNOTEMPTY(java.util.List ret,
boolean checkNotNullOnly) |
ReconOperator |
getInstance()
Factory-like method to allow operator objects that cache
initializations to return a new instance instead of this
|
java.lang.String |
getObjectName() |
protected void |
initialize(java.lang.String fullyQualifiedName,
java.lang.String value,
ComparisonQueryHelper qh) |
void |
setIndexOfAttributeTo(java.lang.String fullyQualifiedName) |
void |
setObjectName(java.lang.String objectName) |
void |
setOperator(java.lang.String operator) |
fillInDataSetSpecificData, getOperator, getPrecedence, isRightAssociative
protected static final int OP_GT_LTOREQ
protected static final int OP_LT_GTOREQ
protected static final int OP_EQ_NOTEQ
protected static final int OP_LIKE_UNLIKE
protected static final int OP_NOTEMPTY_NOTNULL
protected static final int OP_EXISTS
protected static final java.lang.String OP_TEXT_EXISTS
protected ReconValueSet valueSet
protected java.lang.String objectName
protected java.lang.String classstructureId
protected int operatorCode
protected boolean operatorFlag
protected int indexOfAttribute
protected java.lang.String indexOfAttributeName
protected boolean compareAsDoubles
protected double valueAsDouble
protected java.lang.String valueAsString
protected LikePatternMatcher valueAsLikePatternMatcher
public ReconOperator getInstance()
ReconOperator
getInstance
in class ReconOperator
public java.lang.String getObjectName()
protected void initialize(java.lang.String fullyQualifiedName, java.lang.String value, ComparisonQueryHelper qh)
public java.util.List evaluateOperator(java.lang.String objectandAttributeName, java.lang.String value, ComparisonQueryHelper qh)
attribute
- the attribute name to be compared, in form of object.attribute (both lowercase)value
- the value against which the attribute is comparedallStatements
- a HashMap keyed on lower case object names, contains ComparisonStatement objectsprotected void evaluateComparisonOperator(java.util.List ret)
protected void evaluateOperatorLIKE(java.util.List ret)
protected void evaluateOperatorNOTEMPTY(java.util.List ret, boolean checkNotNullOnly)
protected void evaluateOperatorEXISTS(java.util.List ret)
public void setObjectName(java.lang.String objectName)
public void setOperator(java.lang.String operator)
public void setIndexOfAttributeTo(java.lang.String fullyQualifiedName)
protected boolean compareFilterClassStruct(ReconValue av)
current
- object valueNone