Class OQueryOperatorEquality
java.lang.Object
com.orientechnologies.orient.core.sql.operator.OQueryOperator
com.orientechnologies.orient.core.sql.operator.OQueryOperatorEquality
- Direct Known Subclasses:
OQueryOperatorEqualityNotNulls,OQueryOperatorIs
Base equality operator. It's an abstract class able to compare the equality between two values.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.core.sql.operator.OQueryOperator
OQueryOperator.ORDER -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.sql.operator.OQueryOperator
DEFAULT_OPERATORS_ORDER, expectedRightWords, expectsParameters, keyword, precedence, unary -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOQueryOperatorEquality(String iKeyword, int iPrecedence, boolean iLogical) protectedOQueryOperatorEquality(String iKeyword, int iPrecedence, boolean iLogical, int iExpectedRightWords) protectedOQueryOperatorEquality(String iKeyword, int iPrecedence, boolean iLogical, int iExpectedRightWords, boolean iExpectsParameters) -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(OBinaryField iFirstField, OBinaryField iSecondField, OCommandContext iContext, ODocumentSerializer serializer) protected abstract booleanevaluateExpression(OIdentifiable iRecord, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext) evaluateRecord(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext, ODocumentSerializer serializer) Methods inherited from class com.orientechnologies.orient.core.sql.operator.OQueryOperator
canBeMerged, canShortCircuit, compare, configure, evaluate, executeIndexQuery, getBeginRidRange, getEndRidRange, getIndexReuseType, getKeyword, getOIndexSearchResult, getSyntax, isSupportingBinaryEvaluate, isUnary, toString, updateProfiler
-
Constructor Details
-
OQueryOperatorEquality
-
OQueryOperatorEquality
protected OQueryOperatorEquality(String iKeyword, int iPrecedence, boolean iLogical, int iExpectedRightWords) -
OQueryOperatorEquality
protected OQueryOperatorEquality(String iKeyword, int iPrecedence, boolean iLogical, int iExpectedRightWords, boolean iExpectsParameters)
-
-
Method Details
-
evaluateExpression
protected abstract boolean evaluateExpression(OIdentifiable iRecord, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext) -
evaluate
public boolean evaluate(OBinaryField iFirstField, OBinaryField iSecondField, OCommandContext iContext, ODocumentSerializer serializer) -
evaluateRecord
public Object evaluateRecord(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext, ODocumentSerializer serializer) - Specified by:
evaluateRecordin classOQueryOperator
-