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
children, firstToken, id, lastToken, parent, parser, value
-
-
Constructor Summary
Constructors Constructor Description ParenthesisExpression(int id)
ParenthesisExpression(Expression exp)
ParenthesisExpression(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyRemove(ResultInternal result, CommandContext ctx)
ParenthesisExpression
copy()
void
deserialize(Result fromResult)
boolean
equals(Object o)
Object
execute(Identifiable iCurrentRecord, CommandContext ctx)
Object
execute(Result iCurrentRecord, CommandContext ctx)
void
extractSubQueries(Identifier letAlias, SubQueryCollector collector)
void
extractSubQueries(SubQueryCollector collector)
List<String>
getMatchPatternInvolvedAliases()
int
hashCode()
boolean
isAggregate()
boolean
isCacheable()
boolean
isCount()
boolean
isEarlyCalculated()
boolean
isExpand()
boolean
needsAliases(Set<String> aliases)
boolean
refersToParent()
Result
serialize()
void
setStatement(Statement statement)
SimpleNode
splitForAggregation(AggregateProjectionSplit aggregateProj)
protected boolean
supportsBasicCalculation()
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.MathExpression
allowsIndexedFunctionExecutionOnTarget, canExecuteIndexedFunctionWithoutIndex, deserializeFromResult, estimateIndexedFunction, executeIndexedFunction, executeIndexedFunctionAfterIndexSearch, getAggregationContext, getChildExpressions, getExpandContent, getOperators, isBaseIdentifier, isDefinedFor, isDefinedFor, isIndexedFunctionCall, setChildExpressions
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
childrenAccept, dump, getValue, jjtAccept, 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(SqlParser p, int id)
-
ParenthesisExpression
public ParenthesisExpression(Expression exp)
-
-
Method Detail
-
execute
public Object execute(Identifiable iCurrentRecord, CommandContext ctx)
- Overrides:
execute
in classMathExpression
-
execute
public Object execute(Result iCurrentRecord, CommandContext ctx)
- Overrides:
execute
in classMathExpression
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classMathExpression
-
supportsBasicCalculation
protected boolean supportsBasicCalculation()
- Overrides:
supportsBasicCalculation
in classMathExpression
-
isEarlyCalculated
public boolean isEarlyCalculated()
- Overrides:
isEarlyCalculated
in classMathExpression
-
needsAliases
public boolean needsAliases(Set<String> aliases)
- Overrides:
needsAliases
in classMathExpression
-
isExpand
public boolean isExpand()
- Overrides:
isExpand
in classMathExpression
-
isAggregate
public boolean isAggregate()
- Overrides:
isAggregate
in classMathExpression
-
isCount
public boolean isCount()
- Overrides:
isCount
in classMathExpression
-
splitForAggregation
public SimpleNode splitForAggregation(AggregateProjectionSplit aggregateProj)
- 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 classMathExpression
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classMathExpression
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMathExpression
-
getMatchPatternInvolvedAliases
public List<String> getMatchPatternInvolvedAliases()
- Overrides:
getMatchPatternInvolvedAliases
in classMathExpression
-
applyRemove
public void applyRemove(ResultInternal result, CommandContext ctx)
- Overrides:
applyRemove
in classMathExpression
-
serialize
public Result serialize()
- Overrides:
serialize
in classMathExpression
-
deserialize
public void deserialize(Result fromResult)
- Overrides:
deserialize
in classMathExpression
-
isCacheable
public boolean isCacheable()
- Overrides:
isCacheable
in classMathExpression
-
-