Package com.arcadedb.query.sql.parser
Class OrBlock
- java.lang.Object
-
- com.arcadedb.query.sql.parser.SimpleNode
-
- com.arcadedb.query.sql.parser.BooleanExpression
-
- com.arcadedb.query.sql.parser.OrBlock
-
- All Implemented Interfaces:
Node
public class OrBlock extends BooleanExpression
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrBlock
copy()
boolean
equals(Object o)
boolean
evaluate(Identifiable currentRecord, CommandContext ctx)
boolean
evaluate(Result currentRecord, CommandContext ctx)
boolean
evaluate(Object currentRecord, CommandContext ctx)
void
extractSubQueries(SubQueryCollector collector)
List<AndBlock>
flatten()
protected List<Object>
getExternalCalculationConditions()
List<BinaryCondition>
getIndexedFunctionConditions(DocumentType iSchemaClass, Database database)
List<String>
getMatchPatternInvolvedAliases()
protected int
getNumberOfExternalCalculations()
List<BooleanExpression>
getSubBlocks()
int
hashCode()
boolean
isCacheable()
boolean
isEmpty()
boolean
needsAliases(Set<String> aliases)
boolean
refersToParent()
void
setSubBlocks(List<BooleanExpression> subBlocks)
protected boolean
supportsBasicCalculation()
void
toString(Map<String,Object> params, StringBuilder builder)
-
Methods inherited from class com.arcadedb.query.sql.parser.BooleanExpression
deserialize, deserializeFromOResult, encapsulateInAndBlock, 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
-
-
-
-
Constructor Detail
-
OrBlock
public OrBlock(int id)
-
OrBlock
public OrBlock(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
-
evaluate
public boolean evaluate(Object currentRecord, CommandContext ctx)
-
getSubBlocks
public List<BooleanExpression> getSubBlocks()
-
setSubBlocks
public void setSubBlocks(List<BooleanExpression> subBlocks)
-
toString
public void toString(Map<String,Object> params, StringBuilder builder)
- Overrides:
toString
in classSimpleNode
-
supportsBasicCalculation
protected 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
-
getIndexedFunctionConditions
public List<BinaryCondition> getIndexedFunctionConditions(DocumentType iSchemaClass, Database database)
- Overrides:
getIndexedFunctionConditions
in classBooleanExpression
-
flatten
public List<AndBlock> flatten()
- Overrides:
flatten
in classBooleanExpression
-
needsAliases
public boolean needsAliases(Set<String> aliases)
- Specified by:
needsAliases
in classBooleanExpression
-
copy
public OrBlock copy()
- Specified by:
copy
in classBooleanExpression
-
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty
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
-
-