net.sf.farrago.fennel.calc
Class CalcRexImplementorTableImpl.DatetimeRoundingImplementor
java.lang.Object
net.sf.farrago.fennel.calc.CalcRexImplementorTableImpl.AbstractCalcRexImplementor
net.sf.farrago.fennel.calc.CalcRexImplementorTableImpl.DatetimeRoundingImplementor
- All Implemented Interfaces:
- CalcRexImplementor
- Enclosing class:
- CalcRexImplementorTableImpl
private static class CalcRexImplementorTableImpl.DatetimeRoundingImplementor
- extends CalcRexImplementorTableImpl.AbstractCalcRexImplementor
Helper to implement CAST to TIMESTAMP or TIME values. The supplied
implementor does the hard part, then this implementor ensures that the
result is rounded to the correct precision.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
implementor
private final CalcRexImplementor implementor
CalcRexImplementorTableImpl.DatetimeRoundingImplementor
CalcRexImplementorTableImpl.DatetimeRoundingImplementor(CalcRexImplementor implementor)
implement
public CalcReg implement(RexCall call,
RexToCalcTranslator translator)
- Description copied from interface:
CalcRexImplementor
- Generates instructions to implement this call, and returns the register
which holds the result.