Class OQueryOperatorEquals
java.lang.Object
com.orientechnologies.orient.core.sql.operator.OQueryOperator
com.orientechnologies.orient.core.sql.operator.OQueryOperatorEquality
com.orientechnologies.orient.core.sql.operator.OQueryOperatorEqualityNotNulls
com.orientechnologies.orient.core.sql.operator.OQueryOperatorEquals
EQUALS operator.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleancomparesValues(Object iValue, ORecord iRecord, boolean iConsiderIn) protected static booleancomparesValues(Object iValue, OResult iRecord, boolean iConsiderIn) static booleanstatic booleanbooleanevaluate(OBinaryField iFirstField, OBinaryField iSecondField, OCommandContext iContext, ODocumentSerializer serializer) protected booleanevaluateExpression(OIdentifiable iRecord, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext) executeIndexQuery(OCommandContext iContext, OIndex index, List<Object> keyParams, boolean ascSortOrder) Performs index query and returns index stream which presents subset of index data which corresponds to result of execution of given operator.getBeginRidRange(Object iLeft, Object iRight) getEndRidRange(Object iLeft, Object iRight) getIndexReuseType(Object iLeft, Object iRight) Returns hint how index can be used to calculate result of operator execution.booleanMethods inherited from class com.orientechnologies.orient.core.sql.operator.OQueryOperatorEqualityNotNulls
evaluateRecordMethods inherited from class com.orientechnologies.orient.core.sql.operator.OQueryOperator
canBeMerged, canShortCircuit, compare, configure, evaluate, getKeyword, getOIndexSearchResult, getSyntax, isUnary, toString, updateProfiler
-
Constructor Details
-
OQueryOperatorEquals
public OQueryOperatorEquals()
-
-
Method Details
-
equals
-
equals
-
comparesValues
-
comparesValues
-
getIndexReuseType
Description copied from class:OQueryOperatorReturns hint how index can be used to calculate result of operator execution.- Specified by:
getIndexReuseTypein classOQueryOperator- Parameters:
iLeft- Value of left query parameter.iRight- Value of right query parameter.- Returns:
- Hint how index can be used to calculate result of operator execution.
-
executeIndexQuery
public Stream<ORawPair<Object,ORID>> executeIndexQuery(OCommandContext iContext, OIndex index, List<Object> keyParams, boolean ascSortOrder) Description copied from class:OQueryOperatorPerforms index query and returns index stream which presents subset of index data which corresponds to result of execution of given operator.Query that should be executed can be presented like: [[property0 = keyParam0] and [property1 = keyParam1] and] propertyN operator keyParamN.
It is supped that index which passed in as parameter is used to index properties listed above and responsibility of given method execute query using given parameters.
Multiple parameters are passed in to implement composite indexes support.
- Overrides:
executeIndexQueryin classOQueryOperator- Parameters:
iContext-index- Instance of index that will be used to calculate result of operator execution.keyParams- Parameters of query is used to calculate query result.ascSortOrder- Data returned by cursors should be sorted in ascending or descending order.- Returns:
- Cursor instance if index can be used to evaluate result of execution of given operator
and
nullotherwise.
-
getBeginRidRange
- Specified by:
getBeginRidRangein classOQueryOperator
-
getEndRidRange
- Specified by:
getEndRidRangein classOQueryOperator
-
evaluateExpression
protected boolean evaluateExpression(OIdentifiable iRecord, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext) - Specified by:
evaluateExpressionin classOQueryOperatorEquality
-
evaluate
public boolean evaluate(OBinaryField iFirstField, OBinaryField iSecondField, OCommandContext iContext, ODocumentSerializer serializer) - Overrides:
evaluatein classOQueryOperatorEquality
-
isSupportingBinaryEvaluate
public boolean isSupportingBinaryEvaluate()- Overrides:
isSupportingBinaryEvaluatein classOQueryOperator
-