public class OLuceneOverlapOperator extends OLuceneSpatialOperator
OQueryOperator.ORDER
factory
DEFAULT_OPERATORS_ORDER, expectedRightWords, expectsParameters, keyword, precedence, unary
Constructor and Description |
---|
OLuceneOverlapOperator() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluateRecord(OIdentifiable iRecord,
ODocument iCurrentResult,
OSQLFilterCondition iCondition,
Object iLeft,
Object iRight,
OCommandContext iContext,
ODocumentSerializer serializer)
At run-time the evaluation per record must return always true since the recordset are filtered
at the beginning unless an operator can work in both modes.
|
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.
|
getBeginRidRange, getEndRidRange, getIndexReuseType, getOIndexSearchResult
canBeMerged, canShortCircuit, compare, configure, getSyntax, isSupportingBinaryEvaluate, isUnary, toString, updateProfiler
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 Object evaluateRecord(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext, ODocumentSerializer serializer)
OQueryTargetOperator
evaluateRecord
in class OLuceneSpatialOperator
Copyright © 2009–2020 OrientDB. All rights reserved.