Class OInCondition
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OBooleanExpression
com.orientechnologies.orient.core.sql.parser.OInCondition
- All Implemented Interfaces:
Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OExpressionprotected OBinaryCompareOperatorprotected Objectprotected OMathExpressionprotected OInputParameterprotected OSelectStatementFields 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 TypeMethodDescriptioncopy()booleanbooleanevaluate(OResult currentRecord, OCommandContext ctx) protected static booleanevaluateExpression(Object iLeft, Object iRight) evaluateLeft(OResult currentRecord, OCommandContext ctx) evaluateRight(OResult currentRecord, OCommandContext ctx) protected static ObjectexecuteQuery(OSelectStatement rightStatement, OCommandContext ctx) voidextractSubQueries(SubQueryCollector collector) findIndex(OIndexFinder info, OCommandContext ctx) getLeft()protected intinthashCode()static OSelectStatementindexChainToStatement(OModifier modifier, OClass clazz, OMathExpression right, OCommandContext ctx) booleanbooleanneedsAliases(Set<String> aliases) booleanrewriteIndexChainsAsSubqueries(OCommandContext ctx, OClass clazz) voidsetLeft(OExpression left) voidsetRightMathExpression(OMathExpression rightMathExpression) voidsetRightParam(OInputParameter rightParam) protected Collection<Object>sortValues(Object val, boolean asc) booleanvoidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) Methods inherited from class com.orientechnologies.orient.core.sql.parser.OBooleanExpression
conditionsCount, deserialize, deserializeFromOResult, encapsulateInAndBlock, extractRidRanges, flatten, getIndexedFunctionConditions, getIndexKeyCondition, getIndexRidCondition, isAlwaysTrue, isEmpty, serialize, transformToUpdateItem, translateLuceneOperatorMethods 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
-
Field Details
-
left
-
operator
-
rightStatement
-
rightParam
-
rightMathExpression
-
right
-
-
Constructor Details
-
OInCondition
public OInCondition(int id) -
OInCondition
-
-
Method Details
-
evaluate
- Specified by:
evaluatein classOBooleanExpression
-
evaluateRight
-
evaluateLeft
-
executeQuery
-
evaluateExpression
-
toString
- Specified by:
toStringin classSimpleNode
-
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
supportsBasicCalculation
public 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)
-
needsAliases
- Specified by:
needsAliasesin classOBooleanExpression
-
copy
- Specified by:
copyin classOBooleanExpression
-
extractSubQueries
- Specified by:
extractSubQueriesin classOBooleanExpression
-
refersToParent
public boolean refersToParent()- Specified by:
refersToParentin classOBooleanExpression
-
equals
-
hashCode
public int hashCode() -
getMatchPatternInvolvedAliases
- Specified by:
getMatchPatternInvolvedAliasesin classOBooleanExpression
-
isCacheable
public boolean isCacheable()- Specified by:
isCacheablein classOBooleanExpression
-
getLeft
-
setLeft
-
getRightStatement
-
getRightParam
-
getRightMathExpression
-
setRightParam
-
setRightMathExpression
-
findIndex
- Overrides:
findIndexin classOBooleanExpression
-
sortValues
-
rewriteIndexChainsAsSubqueries
- Overrides:
rewriteIndexChainsAsSubqueriesin classOBooleanExpression
-
indexChainToStatement
public static OSelectStatement indexChainToStatement(OModifier modifier, OClass clazz, OMathExpression right, OCommandContext ctx)
-