Package com.arcadedb.query.sql.parser
Class ContainsAllCondition
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.BooleanExpression
-
- com.arcadedb.query.sql.parser.ContainsAllCondition
-
- All Implemented Interfaces:
Node
public class ContainsAllCondition extends BooleanExpression
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
left
protected Expression
right
protected OrBlock
rightBlock
-
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 ContainsAllCondition(int id)
ContainsAllCondition(SqlParser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainsAllCondition
copy()
boolean
equals(Object o)
boolean
evaluate(Identifiable currentRecord, CommandContext ctx)
boolean
evaluate(Result currentRecord, CommandContext ctx)
boolean
execute(Object left, Object right)
void
extractSubQueries(SubQueryCollector collector)
protected List<Object>
getExternalCalculationConditions()
Expression
getLeft()
List<String>
getMatchPatternInvolvedAliases()
protected int
getNumberOfExternalCalculations()
Expression
getRight()
int
hashCode()
boolean
isCacheable()
boolean
needsAliases(Set<String> aliases)
boolean
refersToParent()
void
setLeft(Expression left)
void
setRight(Expression right)
boolean
supportsBasicCalculation()
void
toString(Map<String,Object> params, StringBuilder builder)
-
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
-
right
protected Expression right
-
rightBlock
protected OrBlock rightBlock
-
-
Constructor Detail
-
ContainsAllCondition
public ContainsAllCondition(int id)
-
ContainsAllCondition
public ContainsAllCondition(SqlParser p, int id)
-
-
Method Detail
-
evaluate
public boolean evaluate(Identifiable currentRecord, CommandContext ctx)
- Specified by:
evaluate
in classBooleanExpression
-
evaluate
public boolean evaluate(Result currentRecord, CommandContext ctx)
- Specified by:
evaluate
in classBooleanExpression
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
getLeft
public Expression getLeft()
-
setLeft
public void setLeft(Expression left)
-
getRight
public Expression getRight()
-
setRight
public void setRight(Expression right)
-
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 ContainsAllCondition 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
-
-