
public class OLuceneTextOperator extends OQueryTargetOperator
OQueryOperator.ORDER| Modifier and Type | Field and Description |
|---|---|
static String |
MEMORY_INDEX |
DEFAULT_OPERATORS_ORDER, expectedRightWords, expectsParameters, keyword, precedence, unary| Constructor and Description |
|---|
OLuceneTextOperator() |
OLuceneTextOperator(String iKeyword,
int iPrecedence,
boolean iLogical) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeMerged() |
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.
|
OIndexCursor |
executeIndexQuery(OCommandContext iContext,
OIndex<?> index,
List<Object> keyParams,
boolean ascSortOrder)
Performs index query and returns index cursor which presents subset of index data which corresponds to result of execution of
given operator.
|
protected Collection<String> |
fields(OSQLFilterCondition iCondition) |
ORID |
getBeginRidRange(Object iLeft,
Object iRight) |
protected static ODatabaseDocumentInternal |
getDatabase() |
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.
|
OIndexSearchResult |
getOIndexSearchResult(OClass iSchemaClass,
OSQLFilterCondition iCondition,
List<OIndexSearchResult> iIndexSearchResults,
OCommandContext context) |
protected OLuceneFullTextIndex |
involvedIndex(OIdentifiable iRecord,
ODocument iCurrentResult,
OSQLFilterCondition iCondition,
Object iLeft,
Object iRight) |
canShortCircuit, compare, configure, getSyntax, isSupportingBinaryEvaluate, isUnary, toString, updateProfilerpublic static final String MEMORY_INDEX
public OLuceneTextOperator()
public OLuceneTextOperator(String iKeyword, int iPrecedence, boolean iLogical)
protected static ODatabaseDocumentInternal getDatabase()
public OIndexReuseType getIndexReuseType(Object iLeft, Object iRight)
OQueryOperatorgetIndexReuseType in class OQueryOperatoriLeft - Value of left query parameter.iRight - Value of right query parameter.public OIndexSearchResult getOIndexSearchResult(OClass iSchemaClass, OSQLFilterCondition iCondition, List<OIndexSearchResult> iIndexSearchResults, OCommandContext context)
getOIndexSearchResult in class OQueryOperatorpublic OIndexCursor executeIndexQuery(OCommandContext iContext, OIndex<?> index, List<Object> keyParams, boolean ascSortOrder)
OQueryOperatorexecuteIndexQuery in class OQueryOperatorindex - 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 OQueryOperatorpublic ORID getEndRidRange(Object iLeft, Object iRight)
getEndRidRange in class OQueryOperatorpublic boolean canBeMerged()
canBeMerged in class OQueryOperatorpublic Object evaluateRecord(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext, ODocumentSerializer serializer)
OQueryTargetOperatorevaluateRecord in class OQueryTargetOperatorprotected OLuceneFullTextIndex involvedIndex(OIdentifiable iRecord, ODocument iCurrentResult, OSQLFilterCondition iCondition, Object iLeft, Object iRight)
protected Collection<String> fields(OSQLFilterCondition iCondition)
Copyright © 2009–2025 OrientDB. All rights reserved.