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
cachedStringForm, children, value
-
-
Constructor Summary
Constructors Constructor Description InCondition(int id)
-
Method Summary
-
Methods inherited from class com.arcadedb.query.sql.parser.BooleanExpression
createRangeWith, encapsulateInAndBlock, flatten, getIndexedFunctionConditions, isAlwaysTrue, isEmpty, transformToUpdateItem
-
Methods inherited from class com.arcadedb.query.sql.parser.SimpleNode
equals, getValue, hashCode, isCacheable, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, refersToParent, 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
-
-
Method Detail
-
evaluate
public Boolean evaluate(Identifiable currentRecord, CommandContext context)
- Specified by:
evaluate
in classBooleanExpression
-
evaluateRight
public Object evaluateRight(Identifiable currentRecord, CommandContext context)
-
evaluateLeft
public Object evaluateLeft(Identifiable currentRecord, CommandContext context)
-
evaluate
public Boolean evaluate(Result currentRecord, CommandContext context)
- Specified by:
evaluate
in classBooleanExpression
-
evaluateRight
public Object evaluateRight(Result currentRecord, CommandContext context)
-
evaluateLeft
public Object evaluateLeft(Result currentRecord, CommandContext context)
-
executeQuery
protected static Object executeQuery(SelectStatement rightStatement, CommandContext context)
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
copy
public InCondition copy()
- Specified by:
copy
in classBooleanExpression
-
extractSubQueries
public void extractSubQueries(SubQueryCollector collector)
- Specified by:
extractSubQueries
in classBooleanExpression
-
getIdentityElements
protected Object[] getIdentityElements()
- Overrides:
getIdentityElements
in classSimpleNode
-
getMatchPatternInvolvedAliases
public List<String> getMatchPatternInvolvedAliases()
- Specified by:
getMatchPatternInvolvedAliases
in classBooleanExpression
-
getCacheableElements
protected SimpleNode[] getCacheableElements()
- Overrides:
getCacheableElements
in classSimpleNode
-
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)
-
isIndexAware
public boolean isIndexAware(IndexSearchInfo info)
- Overrides:
isIndexAware
in classBooleanExpression
-
resolveKeyFrom
public Expression resolveKeyFrom(BinaryCondition additional)
- Overrides:
resolveKeyFrom
in classBooleanExpression
-
resolveKeyTo
public Expression resolveKeyTo(BinaryCondition additional)
- Overrides:
resolveKeyTo
in classBooleanExpression
-
-