Package org.apache.calcite.sql2rel
Class AuxiliaryConverter.Impl
- java.lang.Object
-
- org.apache.calcite.sql2rel.AuxiliaryConverter.Impl
-
- All Implemented Interfaces:
AuxiliaryConverter
- Enclosing interface:
- AuxiliaryConverter
public static class AuxiliaryConverter.Impl extends java.lang.Object implements AuxiliaryConverter
Simple implementation ofAuxiliaryConverter
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.sql2rel.AuxiliaryConverter
AuxiliaryConverter.Impl
-
-
Field Summary
Fields Modifier and Type Field Description private SqlFunction
f
-
Constructor Summary
Constructors Constructor Description Impl(SqlFunction f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RexNode
convert(RexBuilder rexBuilder, RexNode groupCall, RexNode e)
Converts an expression.
-
-
-
Field Detail
-
f
private final SqlFunction f
-
-
Constructor Detail
-
Impl
public Impl(SqlFunction f)
-
-
Method Detail
-
convert
public RexNode convert(RexBuilder rexBuilder, RexNode groupCall, RexNode e)
Description copied from interface:AuxiliaryConverter
Converts an expression.- Specified by:
convert
in interfaceAuxiliaryConverter
- 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
-
-