Package com.arcadedb.query.sql.parser
Class InCondition
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.BooleanExpression
-
- com.arcadedb.query.sql.parser.InCondition
-
- All Implemented Interfaces:
Node
public class InCondition extends BooleanExpression
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
left
protected BinaryCompareOperator
operator
protected Object
right
protected MathExpression
rightMathExpression
protected InputParameter
rightParam
protected SelectStatement
rightStatement
-
Fields inherited from class com.arcadedb.query.sql.parser.BooleanExpression
FALSE, TRUE
-
Fields inherited from class com.arcadedb.query.sql.parser.SimpleNode
children, firstToken, id, lastToken, parent, parser, value
-
-
Constructor Summary
Constructors Constructor Description InCondition(int id)
InCondition(SqlParser p, int id)
-
Method Summary
-
Methods inherited from class com.arcadedb.query.sql.parser.BooleanExpression
deserialize, deserializeFromOResult, encapsulateInAndBlock, flatten, getIndexedFunctionConditions, isEmpty, serialize, transformToUpdateItem
-
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
-
left
protected Expression left
-
operator
protected BinaryCompareOperator operator
-
rightStatement
protected SelectStatement rightStatement
-
rightParam
protected InputParameter rightParam
-
rightMathExpression
protected MathExpression rightMathExpression
-
right
protected Object right
-
-
Constructor Detail
-
InCondition
public InCondition(int id)
-
InCondition
public InCondition(SqlParser p, int id)
-
-
Method Detail
-
evaluate
public boolean evaluate(Identifiable currentRecord, CommandContext ctx)
- Specified by:
evaluate
in classBooleanExpression
-
evaluateRight
public Object evaluateRight(Identifiable currentRecord, CommandContext ctx)
-
evaluateLeft
public Object evaluateLeft(Identifiable currentRecord, CommandContext ctx)
-
evaluate
public boolean evaluate(Result currentRecord, CommandContext ctx)
- Specified by:
evaluate
in classBooleanExpression
-
evaluateRight
public Object evaluateRight(Result currentRecord, CommandContext ctx)
-
evaluateLeft
public Object evaluateLeft(Result currentRecord, CommandContext ctx)
-
executeQuery
protected static Object executeQuery(SelectStatement rightStatement, CommandContext ctx)
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
supportsBasicCalculation
public boolean supportsBasicCalculation()
- Specified by:
supportsBasicCalculation
in classBooleanExpression
- Returns:
- true if this expression can be calculated in plain Java, false otherwise
-
getNumberOfExternalCalculations
protected int getNumberOfExternalCalculations()
- Specified by:
getNumberOfExternalCalculations
in classBooleanExpression
- Returns:
- the number of sub-expressions that have to be calculated using an external engine
-
getExternalCalculationConditions
protected List<Object> getExternalCalculationConditions()
- Specified by:
getExternalCalculationConditions
in classBooleanExpression
- Returns:
- the sub-expressions that have to be calculated using an external engine
-
needsAliases
public boolean needsAliases(Set<String> aliases)
- Specified by:
needsAliases
in classBooleanExpression
-
copy
public InCondition copy()
- Specified by:
copy
in classBooleanExpression
-
extractSubQueries
public void extractSubQueries(SubQueryCollector collector)
- Specified by:
extractSubQueries
in classBooleanExpression
-
refersToParent
public boolean refersToParent()
- Specified by:
refersToParent
in classBooleanExpression
-
getMatchPatternInvolvedAliases
public List<String> getMatchPatternInvolvedAliases()
- Specified by:
getMatchPatternInvolvedAliases
in classBooleanExpression
-
isCacheable
public boolean isCacheable()
- Specified by:
isCacheable
in classBooleanExpression
-
getLeft
public Expression getLeft()
-
setLeft
public void setLeft(Expression left)
-
getRightStatement
public SelectStatement getRightStatement()
-
getRightParam
public InputParameter getRightParam()
-
getRightMathExpression
public MathExpression getRightMathExpression()
-
setRightParam
public void setRightParam(InputParameter rightParam)
-
setRightMathExpression
public void setRightMathExpression(MathExpression rightMathExpression)
-
-