Class OQueryOperator
java.lang.Object
com.orientechnologies.orient.core.sql.operator.OQueryOperator
- Direct Known Subclasses:
OQueryTargetOperator
Query Operators. Remember to handle the operator in OQueryItemCondition.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOQueryOperator(String iKeyword, int iPrecedence, boolean iUnary) protectedOQueryOperator(String iKeyword, int iPrecedence, boolean iUnary, int iExpectedRightWords) protectedOQueryOperator(String iKeyword, int iPrecedence, boolean iUnary, int iExpectedRightWords, boolean iExpectsParameters) -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(OQueryOperator other) Check priority of this operator compare to given operator.Default State-less implementation: does not save parameters and just return itselfbooleanevaluate(Object iLeft, Object iRight, OCommandContext ctx) booleanbooleanisUnary()toString()
-
Field Details
-
DEFAULT_OPERATORS_ORDER
Default operator order. can be used by additional operator to locate themself relatively to default ones.WARNING: ORDER IS IMPORTANT TO AVOID SUB-STRING LIKE "IS" and AND "INSTANCEOF": INSTANCEOF MUST BE PLACED BEFORE! AND ALSO FOR PERFORMANCE (MOST USED BEFORE)
-
keyword
-
precedence
public final int precedence -
expectedRightWords
public final int expectedRightWords -
unary
public final boolean unary -
expectsParameters
public final boolean expectsParameters
-
-
Constructor Details
-
OQueryOperator
-
OQueryOperator
-
OQueryOperator
protected OQueryOperator(String iKeyword, int iPrecedence, boolean iUnary, int iExpectedRightWords, boolean iExpectsParameters)
-
-
Method Details
-
toString
-
configure
Default State-less implementation: does not save parameters and just return itself- Parameters:
iParams-- Returns:
-
getSyntax
-
isUnary
public boolean isUnary() -
compare
Check priority of this operator compare to given operator.- Parameters:
other-- Returns:
- ORDER place of this operator compared to given operator
-
canShortCircuit
-
isSupportingBinaryEvaluate
public boolean isSupportingBinaryEvaluate() -
getKeyword
-
evaluate
-