org.eigenbase.sql2rel
Interface SubqueryConverter
- All Known Implementing Classes:
- ScalarSubqueryConverter, SqlToRelConverter.NoOpSubqueryConverter
public interface SubqueryConverter
SubqueryConverter provides the interface for classes that convert subqueries
into equivalent expressions.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql2rel/SubqueryConverter.java#4 $
- Author:
- Zelaine Fong
canConvertSubquery
boolean canConvertSubquery()
- Returns:
- true if the subquery can be converted
convertSubquery
RexNode convertSubquery(SqlCall subquery,
SqlToRelConverter parentConverter,
boolean isExists,
boolean isExplain)
- Converts the subquery to an equivalent expression.
- Parameters:
subquery
- the SqlNode tree corresponding to a subqueryparentConverter
- sqlToRelConverter of the parent queryisExists
- whether the subquery is part of an EXISTS expressionisExplain
- whether the subquery is part of an EXPLAIN PLAN
statement
- Returns:
- the equivalent expression or null if the subquery couldn't be
converted