Package com.arcadedb.query.sql.parser
Class ParenthesisExpression
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.MathExpression
-
- com.arcadedb.query.sql.parser.ParenthesisExpression
-
- All Implemented Interfaces:
Node
public class ParenthesisExpression extends MathExpression
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.arcadedb.query.sql.parser.MathExpression
MathExpression.Operator
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
expression
protected Statement
statement
-
Fields inherited from class com.arcadedb.query.sql.parser.MathExpression
childExpressions, operators
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
cachedStringForm, children, value
-
-
Constructor Summary
Constructors Constructor Description ParenthesisExpression(int id)
ParenthesisExpression(Expression exp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyRemove(ResultInternal result, CommandContext context)
ParenthesisExpression
copy()
boolean
equals(Object o)
Object
execute(Identifiable iCurrentRecord, CommandContext context)
Object
execute(Result iCurrentRecord, CommandContext context)
void
extractSubQueries(Identifier letAlias, SubQueryCollector collector)
void
extractSubQueries(SubQueryCollector collector)
protected SimpleNode[]
getCacheableElements()
InternalExecutionPlan
getExecutionPlan()
List<String>
getMatchPatternInvolvedAliases()
int
hashCode()
boolean
isAggregate(CommandContext context)
boolean
isCount()
boolean
isEarlyCalculated(CommandContext context)
boolean
isExpand()
boolean
refersToParent()
void
setStatement(Statement statement)
SimpleNode
splitForAggregation(AggregateProjectionSplit aggregateProj, CommandContext context)
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.MathExpression
allowsIndexedFunctionExecutionOnTarget, canExecuteIndexedFunctionWithoutIndex, estimateIndexedFunction, executeIndexedFunction, executeIndexedFunctionAfterIndexSearch, getAggregationContext, getChildExpressions, getExpandContent, getIdentityElements, getOperators, isBaseIdentifier, isDefinedFor, isDefinedFor, isIndexedFunctionCall, setChildExpressions
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
getValue, isCacheable, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toString, toString
-
-
-
-
Field Detail
-
expression
protected Expression expression
-
statement
protected Statement statement
-
-
Constructor Detail
-
ParenthesisExpression
public ParenthesisExpression(int id)
-
ParenthesisExpression
public ParenthesisExpression(Expression exp)
-
-
Method Detail
-
execute
public Object execute(Identifiable iCurrentRecord, CommandContext context)
- Overrides:
execute
in classMathExpression
-
execute
public Object execute(Result iCurrentRecord, CommandContext context)
- Overrides:
execute
in classMathExpression
-
getExecutionPlan
public InternalExecutionPlan getExecutionPlan()
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classMathExpression
-
isExpand
public boolean isExpand()
- Overrides:
isExpand
in classMathExpression
-
isAggregate
public boolean isAggregate(CommandContext context)
- Overrides:
isAggregate
in classMathExpression
-
isCount
public boolean isCount()
- Overrides:
isCount
in classMathExpression
-
isEarlyCalculated
public boolean isEarlyCalculated(CommandContext context)
- Overrides:
isEarlyCalculated
in classMathExpression
-
splitForAggregation
public SimpleNode splitForAggregation(AggregateProjectionSplit aggregateProj, CommandContext context)
- Overrides:
splitForAggregation
in classMathExpression
-
copy
public ParenthesisExpression copy()
- Overrides:
copy
in classMathExpression
-
setStatement
public void setStatement(Statement statement)
-
extractSubQueries
public void extractSubQueries(SubQueryCollector collector)
- Overrides:
extractSubQueries
in classMathExpression
-
extractSubQueries
public void extractSubQueries(Identifier letAlias, SubQueryCollector collector)
- Overrides:
extractSubQueries
in classMathExpression
-
refersToParent
public boolean refersToParent()
- Overrides:
refersToParent
in classSimpleNode
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSimpleNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSimpleNode
-
getMatchPatternInvolvedAliases
public List<String> getMatchPatternInvolvedAliases()
- Overrides:
getMatchPatternInvolvedAliases
in classMathExpression
-
applyRemove
public void applyRemove(ResultInternal result, CommandContext context)
- Overrides:
applyRemove
in classMathExpression
-
getCacheableElements
protected SimpleNode[] getCacheableElements()
- Overrides:
getCacheableElements
in classMathExpression
-
-