Class OValueExpression
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OExpression
com.orientechnologies.orient.core.sql.parser.OValueExpression
- All Implemented Interfaces:
Node
this class is only used by the query executor to store pre-calculated values and store them in a
temporary AST. It's not produced by parsing
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.sql.parser.OExpression
arrayConcatExpression, booleanValue, doubleQuotes, isNull, json, mathExpression, rid, singleQuotesFields 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 targetvoidapplyRemove(OResultInternal result, OCommandContext ctx) booleancanExecuteIndexedFunctionWithoutIndex(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) booleanexecute(OResult iCurrentRecord, OCommandContext ctx) 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) getCollate(OResult currentRecord, OCommandContext ctx) inthashCode()booleanbooleanbooleanbooleanisCount()booleanisDefinedFor(OElement currentRecord) booleanisDefinedFor(OResult currentRecord) booleanbooleanisExpand()booleanbooleanneedsAliases(Set<String> aliases) booleansplitForAggregation(AggregateProjectionSplit aggregateSplit) booleanvoidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.OExpression
encode, encodeSingle, estimateIndexedFunction, executeIndexedFunction, getArrayConcatExpression, getIndexKey, getMathExpression, getPath, getRid, isEarlyCalculated, isFunctionAll, isFunctionAny, isIndexChain, isSelf, setArrayConcatExpression, setMathExpression, setNull, setRid, splitForAggregation, toGenericStatementMethods 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
-
Constructor Details
-
OValueExpression
-
-
Method Details
-
execute
- Overrides:
executein classOExpression
-
isBaseIdentifier
public boolean isBaseIdentifier()- Overrides:
isBaseIdentifierin classOExpression
-
isEarlyCalculated
public boolean isEarlyCalculated() -
getDefaultAlias
- Overrides:
getDefaultAliasin classOExpression
-
toString
- Overrides:
toStringin classOExpression
-
supportsBasicCalculation
public boolean supportsBasicCalculation()- Overrides:
supportsBasicCalculationin classOExpression
-
isIndexedFunctionCal
public boolean isIndexedFunctionCal()- Overrides:
isIndexedFunctionCalin classOExpression
-
canExecuteIndexedFunctionWithoutIndex
public boolean canExecuteIndexedFunctionWithoutIndex(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) Description copied from class:OExpressiontests if current expression is an indexed function AND that function can also be executed without using the index- Overrides:
canExecuteIndexedFunctionWithoutIndexin classOExpression- Parameters:
target- the query targetcontext- the execution context- 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) Description copied from class:OExpressiontests if current expression is an indexed function AND that function can be used on this target- Overrides:
allowsIndexedFunctionExecutionOnTargetin classOExpression- Parameters:
target- the query targetcontext- the execution context- 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) Description copied from class:OExpressiontests 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- Overrides:
executeIndexedFunctionAfterIndexSearchin classOExpression- Parameters:
target- the query targetcontext- the execution context- Returns:
- true if current expression involves an indexed function AND the function has also to be executed after the index search.
-
isExpand
public boolean isExpand()- Overrides:
isExpandin classOExpression
-
getExpandContent
- Overrides:
getExpandContentin classOExpression
-
needsAliases
- Overrides:
needsAliasesin classOExpression
-
isAggregate
public boolean isAggregate()- Overrides:
isAggregatein classOExpression
-
splitForAggregation
-
getAggregationContext
- Overrides:
getAggregationContextin classOExpression
-
copy
- Overrides:
copyin classOExpression
-
equals
- Overrides:
equalsin classOExpression
-
hashCode
public int hashCode()- Overrides:
hashCodein classOExpression
-
extractSubQueries
- Overrides:
extractSubQueriesin classOExpression
-
extractSubQueries
- Overrides:
extractSubQueriesin classOExpression
-
refersToParent
public boolean refersToParent()- Overrides:
refersToParentin classOExpression
-
applyRemove
- Overrides:
applyRemovein classOExpression
-
isCount
public boolean isCount()- Overrides:
isCountin classOExpression
-
serialize
- Overrides:
serializein classOExpression
-
deserialize
- Overrides:
deserializein classOExpression
-
isDefinedFor
- Overrides:
isDefinedForin classOExpression
-
isDefinedFor
- Overrides:
isDefinedForin classOExpression
-
getCollate
- Overrides:
getCollatein classOExpression
-
isCacheable
public boolean isCacheable()- Overrides:
isCacheablein classOExpression
-