net.sf.farrago.fennel.calc
Class CalcRexImplementorTableImpl.TimeFunctionImplementor

java.lang.Object
  extended by net.sf.farrago.fennel.calc.CalcRexImplementorTableImpl.AbstractCalcRexImplementor
      extended by net.sf.farrago.fennel.calc.CalcRexImplementorTableImpl.TimeFunctionImplementor
All Implemented Interfaces:
CalcRexImplementor
Enclosing class:
CalcRexImplementorTableImpl

private static class CalcRexImplementorTableImpl.TimeFunctionImplementor
extends CalcRexImplementorTableImpl.AbstractCalcRexImplementor


Field Summary
private static Map<SqlOperator,CalcProgramBuilder.ExtInstrDef> timeFuncs
           
 
Constructor Summary
private CalcRexImplementorTableImpl.TimeFunctionImplementor()
           
 
Method Summary
 CalcReg implement(RexCall call, RexToCalcTranslator translator)
          Generates instructions to implement this call, and returns the register which holds the result.
private static CalcReg implementTimeFunc(CalcProgramBuilder.ExtInstrDef instruction, RexNode operand, RexToCalcTranslator translator)
           
 
Methods inherited from class net.sf.farrago.fennel.calc.CalcRexImplementorTableImpl.AbstractCalcRexImplementor
canImplement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeFuncs

private static final Map<SqlOperator,CalcProgramBuilder.ExtInstrDef> timeFuncs
Constructor Detail

CalcRexImplementorTableImpl.TimeFunctionImplementor

private CalcRexImplementorTableImpl.TimeFunctionImplementor()
Method Detail

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.


implementTimeFunc

private static CalcReg implementTimeFunc(CalcProgramBuilder.ExtInstrDef instruction,
                                         RexNode operand,
                                         RexToCalcTranslator translator)