public class OQueryOperatorBetween extends OQueryOperatorEqualityNotNulls
OQueryOperator.ORDER
DEFAULT_OPERATORS_ORDER, expectedRightWords, expectsParameters, keyword, precedence, unary
Constructor and Description |
---|
OQueryOperatorBetween() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluateExpression(OIdentifiable iRecord,
OSQLFilterCondition condition,
Object left,
Object right,
OCommandContext iContext) |
Stream<ORawPair<Object,ORID>> |
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.
|
ORID |
getBeginRidRange(Object iLeft,
Object iRight) |
ORID |
getEndRidRange(Object iLeft,
Object iRight) |
OIndexReuseType |
getIndexReuseType(Object iLeft,
Object iRight)
Returns hint how index can be used to calculate result of operator execution.
|
String |
getSyntax() |
boolean |
isLeftInclusive() |
boolean |
isRightInclusive() |
void |
setLeftInclusive(boolean leftInclusive) |
void |
setRightInclusive(boolean rightInclusive) |
evaluateRecord
evaluate
canBeMerged, canShortCircuit, compare, configure, getOIndexSearchResult, isSupportingBinaryEvaluate, isUnary, toString, updateProfiler
public boolean isLeftInclusive()
public void setLeftInclusive(boolean leftInclusive)
public boolean isRightInclusive()
public void setRightInclusive(boolean rightInclusive)
protected boolean evaluateExpression(OIdentifiable iRecord, OSQLFilterCondition condition, Object left, Object right, OCommandContext iContext)
evaluateExpression
in class OQueryOperatorEquality
public String getSyntax()
getSyntax
in class OQueryOperator
public OIndexReuseType getIndexReuseType(Object iLeft, Object iRight)
OQueryOperator
getIndexReuseType
in class OQueryOperator
iLeft
- Value of left query parameter.iRight
- Value of right query parameter.public Stream<ORawPair<Object,ORID>> executeIndexQuery(OCommandContext iContext, OIndex index, List<Object> keyParams, boolean ascSortOrder)
OQueryOperator
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.
executeIndexQuery
in class OQueryOperator
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.null
otherwise.public ORID getBeginRidRange(Object iLeft, Object iRight)
getBeginRidRange
in class OQueryOperator
public ORID getEndRidRange(Object iLeft, Object iRight)
getEndRidRange
in class OQueryOperator
Copyright © 2009–2020 OrientDB. All rights reserved.