Package com.arcadedb.query.sql.parser
Class IsDefinedCondition
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.BooleanExpression
-
- com.arcadedb.query.sql.parser.IsDefinedCondition
-
- All Implemented Interfaces:
Node
,SimpleBooleanExpression
public class IsDefinedCondition extends BooleanExpression implements SimpleBooleanExpression
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
expression
-
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 IsDefinedCondition(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsDefinedCondition
copy()
Boolean
evaluate(Identifiable currentRecord, CommandContext context)
Boolean
evaluate(Result currentRecord, CommandContext context)
void
extractSubQueries(SubQueryCollector collector)
protected SimpleNode[]
getCacheableElements()
protected Object[]
getIdentityElements()
List<String>
getMatchPatternInvolvedAliases()
if the condition involved the current pattern (MATCH statement, eg.void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.BooleanExpression
createRangeWith, encapsulateInAndBlock, flatten, getIndexedFunctionConditions, isAlwaysTrue, isEmpty, isIndexAware, 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
-
expression
protected Expression expression
-
-
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 IsDefinedCondition 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()
Description copied from interface:SimpleBooleanExpression
if the condition involved the current pattern (MATCH statement, eg. $matched.something = foo), returns the name of involved pattern aliases ("something" in this case)- Specified by:
getMatchPatternInvolvedAliases
in interfaceSimpleBooleanExpression
- Specified by:
getMatchPatternInvolvedAliases
in classBooleanExpression
- Returns:
- a list of pattern aliases involved in this condition. Null it does not involve the pattern
-
getCacheableElements
protected SimpleNode[] getCacheableElements()
- Overrides:
getCacheableElements
in classSimpleNode
-
-