Package org.apache.calcite.piglet
Class PigRelToSqlConverter
java.lang.Object
org.apache.calcite.rel.rel2sql.SqlImplementor
org.apache.calcite.rel.rel2sql.RelToSqlConverter
org.apache.calcite.piglet.PigRelToSqlConverter
- All Implemented Interfaces:
ReflectiveVisitor
An extension of
RelToSqlConverter
to convert a relation algebra tree,
translated from a Pig script, into a SQL statement.
The input relational algebra tree can be optimized by the planner for Pig
to RelNode
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.rel.rel2sql.SqlImplementor
SqlImplementor.AliasContext, SqlImplementor.BaseContext, SqlImplementor.Builder, SqlImplementor.Clause, SqlImplementor.Context, SqlImplementor.MatchRecognizeContext, SqlImplementor.Result, SqlImplementor.SimpleContext
-
Field Summary
Fields inherited from class org.apache.calcite.rel.rel2sql.SqlImplementor
aliasSet, correlTableMap, dialect, POS
-
Method Summary
Modifier and TypeMethodDescriptionVisits an Aggregate; called byRelToSqlConverter.dispatch(org.apache.calcite.rel.RelNode)
via reflection.Visits a Window; called byRelToSqlConverter.dispatch(org.apache.calcite.rel.RelNode)
via reflection.Methods inherited from class org.apache.calcite.rel.rel2sql.RelToSqlConverter
addSelect, buildAggGroupList, buildAggregate, createAsFullOperands, dispatch, hasTrickyRollup, isAnon, result, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitAntiOrSemiJoin, visitInput
Methods inherited from class org.apache.calcite.rel.rel2sql.SqlImplementor
aliasContext, as, convertConditionToSqlNode, isStar, isStar, joinContext, joinType, matchRecognizeContext, result, result, setOpToSql, tableFunctionScanContext, toSql, toSql, visitChild, visitInput, visitInput, visitInput, visitRoot
-
Method Details
-
visit
Description copied from class:RelToSqlConverter
Visits an Aggregate; called byRelToSqlConverter.dispatch(org.apache.calcite.rel.RelNode)
via reflection.- Overrides:
visit
in classRelToSqlConverter
-
visit
Description copied from class:RelToSqlConverter
Visits a Window; called byRelToSqlConverter.dispatch(org.apache.calcite.rel.RelNode)
via reflection.- Overrides:
visit
in classRelToSqlConverter
- See Also:
-