public class SqlQueryConverter extends Object implements SqlNodeConverter<org.apache.calcite.sql.SqlNode>
SqlNode
, e.g., SqlSelect
, SqlOrderBy
, SqlTableRef
.SqlNodeConverter.ConvertContext
Constructor and Description |
---|
SqlQueryConverter() |
Modifier and Type | Method and Description |
---|---|
Operation |
convertSqlNode(org.apache.calcite.sql.SqlNode node,
SqlNodeConverter.ConvertContext context)
Convert the given validated
SqlNode into an Operation . |
Optional<EnumSet<org.apache.calcite.sql.SqlKind>> |
supportedSqlKinds()
|
public Optional<EnumSet<org.apache.calcite.sql.SqlKind>> supportedSqlKinds()
SqlNodeConverter
SqlKinds
of SqlNodes
that the SqlNodeConverter
supports to convert.
If a SqlNodeConverter
returns a non-empty SqlKinds, The conversion framework will
find the corresponding converter by matching the SqlKind of SqlNode instead of the class of
SqlNode
supportedSqlKinds
in interface SqlNodeConverter<org.apache.calcite.sql.SqlNode>
SqlQueryConverter
public Operation convertSqlNode(org.apache.calcite.sql.SqlNode node, SqlNodeConverter.ConvertContext context)
SqlNodeConverter
SqlNode
into an Operation
.convertSqlNode
in interface SqlNodeConverter<org.apache.calcite.sql.SqlNode>
node
- a validated SqlNode
.context
- the utilities and context information to convertCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.