Class OLevelZeroIdentifier
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OLevelZeroIdentifier
- All Implemented Interfaces:
Node
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowsIndexedFunctionExecutionOnTarget(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) tests if current expression is an indexed function AND that function can be used on this targetbooleancanExecuteIndexedFunctionWithoutIndex(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) tests if current expression is an indexed function AND that function can also be executed without using the indexcopy()voiddeserialize(OResult fromResult) booleanlongestimateIndexedFunction(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) execute(OResult iCurrentRecord, OCommandContext ctx) executeIndexedFunction(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) booleanexecuteIndexedFunctionAfterIndexSearch(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) tests if current expression is an indexed function AND the function has also to be executed after the index search.voidextractSubQueries(OIdentifier letAlias, SubQueryCollector collector) voidextractSubQueries(SubQueryCollector collector) getSelf()inthashCode()booleanbooleanbooleanisCount()booleanbooleanisExpand()booleanbooleanbooleanbooleanisSelf()booleanneedsAliases(Set<String> aliases) booleanvoidsetCollection(OCollection collection) splitForAggregation(AggregateProjectionSplit aggregateProj, OCommandContext ctx) voidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement, toString, toString
-
Field Details
-
functionCall
-
self
-
collection
-
-
Constructor Details
-
OLevelZeroIdentifier
public OLevelZeroIdentifier(int id) -
OLevelZeroIdentifier
-
-
Method Details
-
toString
- Specified by:
toStringin classSimpleNode
-
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
execute
-
getIndexKey
-
isIndexedFunctionCall
public boolean isIndexedFunctionCall() -
isFunctionAny
public boolean isFunctionAny() -
isFunctionAll
public boolean isFunctionAll() -
estimateIndexedFunction
public long estimateIndexedFunction(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) -
executeIndexedFunction
public Iterable<OIdentifiable> executeIndexedFunction(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) -
canExecuteIndexedFunctionWithoutIndex
public boolean canExecuteIndexedFunctionWithoutIndex(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) tests if current expression is an indexed function AND that function can also be executed without using the index- Parameters:
target- the query targetcontext- the execution contextoperator-right-- Returns:
- true if current expression is an indexed function AND that function can also be executed without using the index, false otherwise
-
allowsIndexedFunctionExecutionOnTarget
public boolean allowsIndexedFunctionExecutionOnTarget(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) tests if current expression is an indexed function AND that function can be used on this target- Parameters:
target- the query targetcontext- the execution contextoperator-right-- Returns:
- true if current expression involves an indexed function AND that function can be used on this target, false otherwise
-
executeIndexedFunctionAfterIndexSearch
public boolean executeIndexedFunctionAfterIndexSearch(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) tests if current expression is an indexed function AND the function has also to be executed after the index search. In some cases, the index search is accurate, so this condition can be excluded from further evaluation. In other cases the result from the index is a superset of the expected result, so the function has to be executed anyway for further filtering- Parameters:
target- the query targetcontext- the execution context- Returns:
- true if current expression is an indexed function AND the function has also to be executed after the index search.
-
isExpand
public boolean isExpand() -
getExpandContent
-
needsAliases
-
isAggregate
public boolean isAggregate() -
isCount
public boolean isCount() -
isEarlyCalculated
-
splitForAggregation
-
getAggregationContext
-
copy
- Overrides:
copyin classSimpleNode
-
equals
-
hashCode
public int hashCode() -
setCollection
-
refersToParent
public boolean refersToParent() -
getFunctionCall
-
getSelf
-
getCollection
-
serialize
-
deserialize
-
extractSubQueries
-
extractSubQueries
-
isSelf
public boolean isSelf() -
isCacheable
public boolean isCacheable()
-