Class OAndBlock
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OBooleanExpression
com.orientechnologies.orient.core.sql.parser.OAndBlock
- All Implemented Interfaces:
Node
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.sql.parser.OBooleanExpression
FALSE, TRUEFields inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
children, firstToken, id, lastToken, PARAMETER_PLACEHOLDER, parent, parser, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubBlock(OBooleanExpression block) booleanbooleanintcopy()protected OAndBlockbooleanbooleanevaluate(OResult currentRecord, OCommandContext ctx) voidextractSubQueries(SubQueryCollector collector) findIndex(OIndexFinder info, OCommandContext ctx) flatten()getIndexedFunctionConditions(OClass iSchemaClass, ODatabaseDocumentInternal database) protected intinthashCode()booleanreturns true only if the expression does not need any further evaluation (eg.booleanbooleanisEmpty()booleanneedsAliases(Set<String> aliases) booleanrewriteIndexChainsAsSubqueries(OCommandContext ctx, OClass clazz) voidsetSubBlocks(List<OBooleanExpression> subBlocks) protected booleanvoidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) voidMethods inherited from class com.orientechnologies.orient.core.sql.parser.OBooleanExpression
deserialize, deserializeFromOResult, serialize, transformToUpdateItemMethods inherited from class com.orientechnologies.orient.core.sql.parser.SimpleNode
dump, getValue, jjtAddChild, jjtClose, jjtGetChild, jjtGetFirstToken, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, jjtSetValue, toGenericStatement, toString, toString
-
Constructor Details
-
OAndBlock
public OAndBlock(int id) -
OAndBlock
-
-
Method Details
-
evaluate
- Specified by:
evaluatein classOBooleanExpression
-
getSubBlocks
-
setSubBlocks
-
addSubBlock
-
toString
- Specified by:
toStringin classSimpleNode
-
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
supportsBasicCalculation
protected boolean supportsBasicCalculation()- Specified by:
supportsBasicCalculationin classOBooleanExpression- Returns:
- true if this expression can be calculated in plain Java, false otherwise (eg. LUCENE operator)
-
getNumberOfExternalCalculations
protected int getNumberOfExternalCalculations()- Specified by:
getNumberOfExternalCalculationsin classOBooleanExpression- Returns:
- the number of sub-expressions that have to be calculated using an external engine (eg. LUCENE)
-
getExternalCalculationConditions
- Specified by:
getExternalCalculationConditionsin classOBooleanExpression- Returns:
- the sub-expressions that have to be calculated using an external engine (eg. LUCENE)
-
getIndexedFunctionConditions
public List<OBinaryCondition> getIndexedFunctionConditions(OClass iSchemaClass, ODatabaseDocumentInternal database) - Overrides:
getIndexedFunctionConditionsin classOBooleanExpression
-
flatten
- Overrides:
flattenin classOBooleanExpression
-
encapsulateInAndBlock
- Overrides:
encapsulateInAndBlockin classOBooleanExpression
-
needsAliases
- Specified by:
needsAliasesin classOBooleanExpression
-
copy
- Specified by:
copyin classOBooleanExpression
-
equals
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classOBooleanExpression
-
extractSubQueries
- Specified by:
extractSubQueriesin classOBooleanExpression
-
refersToParent
public boolean refersToParent()- Specified by:
refersToParentin classOBooleanExpression
-
getMatchPatternInvolvedAliases
- Specified by:
getMatchPatternInvolvedAliasesin classOBooleanExpression
-
translateLuceneOperator
public void translateLuceneOperator()- Overrides:
translateLuceneOperatorin classOBooleanExpression
-
isCacheable
public boolean isCacheable()- Specified by:
isCacheablein classOBooleanExpression
-
rewriteIndexChainsAsSubqueries
- Overrides:
rewriteIndexChainsAsSubqueriesin classOBooleanExpression
-
findIndex
- Overrides:
findIndexin classOBooleanExpression
-
allEqualities
public boolean allEqualities() -
allNullCheck
public boolean allNullCheck() -
isAlwaysTrue
public boolean isAlwaysTrue()Description copied from class:OBooleanExpressionreturns true only if the expression does not need any further evaluation (eg. "true") and always evaluates to true. It is supposed to be used as and optimization, and is allowed to return false negatives- Overrides:
isAlwaysTruein classOBooleanExpression- Returns:
-
extractRidRanges
- Overrides:
extractRidRangesin classOBooleanExpression
-
conditionsCount
public int conditionsCount()- Overrides:
conditionsCountin classOBooleanExpression
-
getIndexKeyCondition
- Overrides:
getIndexKeyConditionin classOBooleanExpression
-
getIndexRidCondition
- Overrides:
getIndexRidConditionin classOBooleanExpression
-