Class SubQueryCollector
java.lang.Object
com.orientechnologies.orient.core.sql.parser.SubQueryCollector
This class is used by the query planner to extract subqueries and move them to LET clause
An example:
will become
An example:
select from foo where name in (select name from bar)
will become
select from foo
let $$$SUBQUERY$$_0 = (select name from bar)
where name in $$$SUBQUERY$$_0
- Author:
- Luigi Dell'Aquila (l.dellaquila-(at)-orientdb.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected intprotected Map<OIdentifier, OStatement> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStatement(OIdentifier alias, OStatement stm) addStatement(OStatement stm) protected OIdentifiervoidreset()clean the content, but NOT the counter!
-
Field Details
-
GENERATED_ALIAS_PREFIX
- See Also:
-
nextAliasId
protected int nextAliasId -
subQueries
-
-
Constructor Details
-
SubQueryCollector
public SubQueryCollector()
-
-
Method Details
-
getNextAlias
-
reset
public void reset()clean the content, but NOT the counter! -
addStatement
-
addStatement
-
getSubQueries
-