Class RexImpTable.FloorImplementor
- java.lang.Object
-
- org.apache.calcite.adapter.enumerable.RexImpTable.MethodNameImplementor
-
- org.apache.calcite.adapter.enumerable.RexImpTable.FloorImplementor
-
- All Implemented Interfaces:
NotNullImplementor
- Enclosing class:
- RexImpTable
private static class RexImpTable.FloorImplementor extends RexImpTable.MethodNameImplementor
Implementor for theFLOOR
andCEIL
functions.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.reflect.Method
dateMethod
(package private) java.lang.reflect.Method
timestampMethod
-
Fields inherited from class org.apache.calcite.adapter.enumerable.RexImpTable.MethodNameImplementor
methodName
-
-
Constructor Summary
Constructors Constructor Description FloorImplementor(java.lang.String methodName, java.lang.reflect.Method timestampMethod, java.lang.reflect.Method dateMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Expression
call(Expression operand, java.lang.reflect.Type type, org.apache.calcite.avatica.util.TimeUnit timeUnit)
Expression
implement(RexToLixTranslator translator, RexCall call, java.util.List<Expression> translatedOperands)
Implements a call with assumption that all the null-checking is implemented by caller.
-
-
-
Method Detail
-
implement
public Expression implement(RexToLixTranslator translator, RexCall call, java.util.List<Expression> translatedOperands)
Description copied from interface:NotNullImplementor
Implements a call with assumption that all the null-checking is implemented by caller.- Specified by:
implement
in interfaceNotNullImplementor
- Overrides:
implement
in classRexImpTable.MethodNameImplementor
- Parameters:
translator
- translator to implement the codecall
- call to implementtranslatedOperands
- arguments of a call- Returns:
- expression that implements given call
-
call
private Expression call(Expression operand, java.lang.reflect.Type type, org.apache.calcite.avatica.util.TimeUnit timeUnit)
-
-