Class OLuceneTextOperator
java.lang.Object
com.orientechnologies.orient.core.sql.operator.OQueryOperator
com.orientechnologies.orient.core.sql.operator.OQueryTargetOperator
com.orientechnologies.lucene.operator.OLuceneTextOperator
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.core.sql.operator.OQueryOperator
OQueryOperator.ORDER -
Field Summary
FieldsFields 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 TypeMethodDescriptionbooleanevaluateRecord(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.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.protected Collection<String>fields(OSQLFilterCondition iCondition) getBeginRidRange(Object iLeft, Object iRight) protected static ODatabaseDocumentInternalgetEndRidRange(Object iLeft, Object iRight) getIndexReuseType(Object iLeft, Object iRight) Returns hint how index can be used to calculate result of operator execution.getOIndexSearchResult(OClass iSchemaClass, OSQLFilterCondition iCondition, List<OIndexSearchResult> iIndexSearchResults, OCommandContext context) protected OLuceneFullTextIndexinvolvedIndex(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight) Methods inherited from class com.orientechnologies.orient.core.sql.operator.OQueryOperator
canShortCircuit, compare, configure, evaluate, getKeyword, getSyntax, isSupportingBinaryEvaluate, isUnary, toString, updateProfiler
-
Field Details
-
MEMORY_INDEX
- See Also:
-
-
Constructor Details
-
OLuceneTextOperator
public OLuceneTextOperator() -
OLuceneTextOperator
-
-
Method Details
-
getDatabase
-
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.
-
getOIndexSearchResult
public OIndexSearchResult getOIndexSearchResult(OClass iSchemaClass, OSQLFilterCondition iCondition, List<OIndexSearchResult> iIndexSearchResults, OCommandContext context) - Overrides:
getOIndexSearchResultin classOQueryOperator
-
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 classOQueryOperatorindex- 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
-
canBeMerged
public boolean canBeMerged()- Overrides:
canBeMergedin classOQueryOperator
-
evaluateRecord
public Object evaluateRecord(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext, ODocumentSerializer serializer) Description copied from class:OQueryTargetOperatorAt 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. In this case sub-class must extend it.- Overrides:
evaluateRecordin classOQueryTargetOperator
-
involvedIndex
protected OLuceneFullTextIndex involvedIndex(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight) -
fields
-