Package com.arcadedb.query.sql.parser
Class ContainsCondition
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.BooleanExpression
-
- com.arcadedb.query.sql.parser.ContainsCondition
-
- All Implemented Interfaces:
Node
public class ContainsCondition extends BooleanExpression
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanExpression
condition
protected Expression
left
protected Expression
right
-
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 ContainsCondition(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainsCondition
copy()
Boolean
evaluate(Identifiable currentRecord, CommandContext context)
Boolean
evaluate(Result currentRecord, CommandContext context)
boolean
execute(Object left, Object right)
void
extractSubQueries(SubQueryCollector collector)
protected SimpleNode[]
getCacheableElements()
protected Object[]
getIdentityElements()
List<String>
getMatchPatternInvolvedAliases()
boolean
isIndexAware(IndexSearchInfo info)
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.BooleanExpression
createRangeWith, encapsulateInAndBlock, flatten, getIndexedFunctionConditions, isAlwaysTrue, isEmpty, resolveKeyFrom, resolveKeyTo, 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
-
right
protected Expression right
-
condition
protected BooleanExpression condition
-
-
Method Detail
-
evaluate
public Boolean evaluate(Identifiable currentRecord, CommandContext context)
- Specified by:
evaluate
in classBooleanExpression
-
evaluate
public Boolean evaluate(Result currentRecord, CommandContext context)
- Specified by:
evaluate
in classBooleanExpression
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
copy
public ContainsCondition 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
-
isIndexAware
public boolean isIndexAware(IndexSearchInfo info)
- Overrides:
isIndexAware
in classBooleanExpression
-
-