Package org.apache.calcite.rel.rel2sql
Class SqlImplementor.SimpleContext
- java.lang.Object
-
- org.apache.calcite.rel.rel2sql.SqlImplementor.Context
-
- org.apache.calcite.rel.rel2sql.SqlImplementor.SimpleContext
-
- Enclosing class:
- SqlImplementor
public static class SqlImplementor.SimpleContext extends SqlImplementor.Context
Simple implementation ofSqlImplementor.Context
that cannot handle sub-queries or correlations. Because it is so simple, you do not need to create aSqlImplementor
orRelBuilder
to use it. It is a good way to convert aRexNode
to SQL text.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.IntFunction<SqlNode>
field
-
Fields inherited from class org.apache.calcite.rel.rel2sql.SqlImplementor.Context
dialect, fieldCount
-
-
Constructor Summary
Constructors Constructor Description SimpleContext(SqlDialect dialect, java.util.function.IntFunction<SqlNode> field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlNode
field(int ordinal)
-
Methods inherited from class org.apache.calcite.rel.rel2sql.SqlImplementor.Context
addOrderItem, fieldList, getAliasContext, implementor, toSql, toSql, toSql
-
-
-
-
Field Detail
-
field
@Nonnull private final java.util.function.IntFunction<SqlNode> field
-
-
Constructor Detail
-
SimpleContext
public SimpleContext(SqlDialect dialect, java.util.function.IntFunction<SqlNode> field)
-
-
Method Detail
-
field
public SqlNode field(int ordinal)
- Specified by:
field
in classSqlImplementor.Context
-
-