Package org.apache.calcite.sql2rel
Interface AuxiliaryConverter
-
- All Known Implementing Classes:
AuxiliaryConverter.Impl
public interface AuxiliaryConverter
Converts an expression for a group window function (e.g. TUMBLE) into an expression for an auxiliary group function (e.g. TUMBLE_START).- See Also:
SqlStdOperatorTable.TUMBLE
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AuxiliaryConverter.Impl
Simple implementation ofAuxiliaryConverter
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.calcite.rex.RexNode
convert(org.apache.calcite.rex.RexBuilder rexBuilder, org.apache.calcite.rex.RexNode groupCall, org.apache.calcite.rex.RexNode e)
Converts an expression.
-
-
-
Method Detail
-
convert
org.apache.calcite.rex.RexNode convert(org.apache.calcite.rex.RexBuilder rexBuilder, org.apache.calcite.rex.RexNode groupCall, org.apache.calcite.rex.RexNode e)
Converts an expression.- Parameters:
rexBuilder
- Rex buildergroupCall
- Call to the group function, e.g. "TUMBLE($2, 36000)"e
- Expression holding result of the group function, e.g. "$0"- Returns:
- Expression for auxiliary function, e.g. "$0 + 36000" converts the result of TUMBLE to the result of TUMBLE_END
-
-