Package org.apache.calcite.sql2rel
Class SqlToRelConverter.NoOpSubQueryConverter
- java.lang.Object
-
- org.apache.calcite.sql2rel.SqlToRelConverter.NoOpSubQueryConverter
-
- All Implemented Interfaces:
SubQueryConverter
- Enclosing class:
- SqlToRelConverter
private class SqlToRelConverter.NoOpSubQueryConverter extends java.lang.Object implements SubQueryConverter
A default implementation of SubQueryConverter that does no conversion.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOpSubQueryConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvertSubQuery()
RexNode
convertSubQuery(SqlCall subQuery, SqlToRelConverter parentConverter, boolean isExists, boolean isExplain)
Converts the sub-query to an equivalent expression.
-
-
-
Method Detail
-
canConvertSubQuery
public boolean canConvertSubQuery()
- Specified by:
canConvertSubQuery
in interfaceSubQueryConverter
- Returns:
- Whether the sub-query can be converted
-
convertSubQuery
public RexNode convertSubQuery(SqlCall subQuery, SqlToRelConverter parentConverter, boolean isExists, boolean isExplain)
Description copied from interface:SubQueryConverter
Converts the sub-query to an equivalent expression.- Specified by:
convertSubQuery
in interfaceSubQueryConverter
- Parameters:
subQuery
- the SqlNode tree corresponding to a sub-queryparentConverter
- sqlToRelConverter of the parent queryisExists
- whether the sub-query is part of an EXISTS expressionisExplain
- whether the sub-query is part of an EXPLAIN PLAN statement- Returns:
- the equivalent expression or null if the sub-query couldn't be converted
-
-