Class OBaseExpression
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OMathExpression
com.orientechnologies.orient.core.sql.parser.OBaseExpression
- All Implemented Interfaces:
Node
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.core.sql.parser.OMathExpression
OMathExpression.Operator -
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.sql.parser.OMathExpression
childExpressions, operatorsFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
ConstructorsConstructorDescriptionOBaseExpression(int id) OBaseExpression(OIdentifier identifier) OBaseExpression(OIdentifier identifier, OModifier modifier) OBaseExpression(ORecordAttribute attr, OModifier modifier) OBaseExpression(OrientSql p, int id) OBaseExpression(String string) -
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) 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) getCollate(OResult currentRecord, OCommandContext ctx) getPath()inthashCode()booleanbooleanbooleanbooleanisCount()booleanisDefinedFor(OElement currentRecord) booleanisDefinedFor(OResult currentRecord) booleanbooleanisExpand()booleanbooleanbooleanisIndexChain(OCommandContext ctx, OClass clazz) booleanbooleanisSelf()booleanneedsAliases(Set<String> aliases) booleanvoidsetIdentifier(OBaseIdentifier identifier) voidsetInputParam(OInputParameter inputParam) splitForAggregation(AggregateProjectionSplit aggregateProj, OCommandContext ctx) protected booleanvoidtoGenericStatement(StringBuilder builder) toString()voidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.OMathExpression
addChildExpression, addOperator, deserializeFromResult, getChildExpressions, getOperators, isParentesis, setChildExpressions, unwrapIfNeededMethods 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
-
Field Details
-
number
-
inputParam
-
string
-
-
Constructor Details
-
OBaseExpression
public OBaseExpression(int id) -
OBaseExpression
-
OBaseExpression
-
OBaseExpression
-
OBaseExpression
-
OBaseExpression
-
-
Method Details
-
toString
- Overrides:
toStringin classSimpleNode
-
toString
- Overrides:
toStringin classOMathExpression
-
toGenericStatement
- Overrides:
toGenericStatementin classOMathExpression
-
execute
- Overrides:
executein classOMathExpression
-
getIndexKey
- Overrides:
getIndexKeyin classOMathExpression
-
supportsBasicCalculation
protected boolean supportsBasicCalculation()- Overrides:
supportsBasicCalculationin classOMathExpression
-
isFunctionAny
public boolean isFunctionAny()- Overrides:
isFunctionAnyin classOMathExpression
-
isFunctionAll
public boolean isFunctionAll()- Overrides:
isFunctionAllin classOMathExpression
-
isIndexedFunctionCall
public boolean isIndexedFunctionCall()- Overrides:
isIndexedFunctionCallin classOMathExpression
-
estimateIndexedFunction
public long estimateIndexedFunction(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) - Overrides:
estimateIndexedFunctionin classOMathExpression
-
executeIndexedFunction
public Iterable<OIdentifiable> executeIndexedFunction(OFromClause target, OCommandContext context, OBinaryCompareOperator operator, Object right) - Overrides:
executeIndexedFunctionin classOMathExpression
-
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- Overrides:
canExecuteIndexedFunctionWithoutIndexin classOMathExpression- 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- Overrides:
allowsIndexedFunctionExecutionOnTargetin classOMathExpression- Parameters:
target- the query targetcontext- the execution contextoperator-right-- Returns:
- true if current expression is 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- Overrides:
executeIndexedFunctionAfterIndexSearchin classOMathExpression- 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.
-
isBaseIdentifier
public boolean isBaseIdentifier()- Overrides:
isBaseIdentifierin classOMathExpression
-
getPath
- Overrides:
getPathin classOMathExpression
-
getCollate
- Overrides:
getCollatein classOMathExpression
-
isEarlyCalculated
- Overrides:
isEarlyCalculatedin classOMathExpression
-
isExpand
public boolean isExpand()- Overrides:
isExpandin classOMathExpression
-
getExpandContent
- Overrides:
getExpandContentin classOMathExpression
-
needsAliases
- Overrides:
needsAliasesin classOMathExpression
-
isAggregate
public boolean isAggregate()- Overrides:
isAggregatein classOMathExpression
-
isCount
public boolean isCount()- Overrides:
isCountin classOMathExpression
-
splitForAggregation
- Overrides:
splitForAggregationin classOMathExpression
-
getAggregationContext
- Overrides:
getAggregationContextin classOMathExpression
-
copy
- Overrides:
copyin classOMathExpression
-
refersToParent
public boolean refersToParent()- Overrides:
refersToParentin classOMathExpression
-
equals
- Overrides:
equalsin classOMathExpression
-
hashCode
public int hashCode()- Overrides:
hashCodein classOMathExpression
-
setIdentifier
-
getIdentifier
-
getModifier
-
getMatchPatternInvolvedAliases
- Overrides:
getMatchPatternInvolvedAliasesin classOMathExpression
-
applyRemove
- Overrides:
applyRemovein classOMathExpression
-
serialize
- Overrides:
serializein classOMathExpression
-
deserialize
- Overrides:
deserializein classOMathExpression
-
isDefinedFor
- Overrides:
isDefinedForin classOMathExpression
-
isDefinedFor
- Overrides:
isDefinedForin classOMathExpression
-
extractSubQueries
- Overrides:
extractSubQueriesin classOMathExpression
-
extractSubQueries
- Overrides:
extractSubQueriesin classOMathExpression
-
isCacheable
public boolean isCacheable()- Overrides:
isCacheablein classOMathExpression
-
setInputParam
-
isIndexChain
- Overrides:
isIndexChainin classOMathExpression
-
isSelf
public boolean isSelf()- Overrides:
isSelfin classOMathExpression
-