Class OWhereClause
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.OWhereClause
- All Implemented Interfaces:
Node
-
Field Summary
FieldsFields 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 TypeMethodDescriptionintcopy()voiddeserialize(OResult fromResult) booleanlongestimate(OClass oClass, long threshold, OCommandContext ctx) estimates how many items of this class will be returned applying this filtervoidextractSubQueries(SubQueryCollector collector) findIndex(OIndexFinder info, OCommandContext ctx) flatten()getIndexedFunctionConditions(OClass iSchemaClass, ODatabaseDocumentInternal database) inthashCode()booleanbooleanisEmpty()booleanmatchesFilters(OIdentifiable currentRecord, OCommandContext ctx) booleanmatchesFilters(OResult currentRecord, OCommandContext ctx) booleanneedsAliases(Set<String> aliases) booleanvoidsetBaseExpression(OBooleanExpression baseExpression) voidtoGenericStatement(StringBuilder builder) voidtoString(Map<Object, Object> params, StringBuilder builder) Methods 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
-
baseExpression
-
-
Constructor Details
-
OWhereClause
public OWhereClause(int id) -
OWhereClause
-
-
Method Details
-
matchesFilters
-
matchesFilters
-
toString
- Specified by:
toStringin classSimpleNode
-
toGenericStatement
- Specified by:
toGenericStatementin classSimpleNode
-
estimate
estimates how many items of this class will be returned applying this filter- Returns:
- an estimation of the number of records of this class returned applying this filter, 0 if and only if sure that no records are returned
-
flatten
-
getIndexedFunctionConditions
public List<OBinaryCondition> getIndexedFunctionConditions(OClass iSchemaClass, ODatabaseDocumentInternal database) -
needsAliases
-
setBaseExpression
-
copy
- Overrides:
copyin classSimpleNode
-
equals
-
hashCode
public int hashCode() -
extractSubQueries
-
refersToParent
public boolean refersToParent() -
getBaseExpression
-
serialize
-
deserialize
-
isCacheable
public boolean isCacheable() -
findIndex
-
extractRidRanges
-
isEmpty
public boolean isEmpty() -
conditionsCount
public int conditionsCount() -
getIndexKeyCondition
-
getIndexRidCondition
-