net.sf.farrago.ojrex
Class FarragoOJRexImplementorTable

java.lang.Object
  extended by org.eigenbase.oj.rex.OJRexImplementorTableImpl
      extended by net.sf.farrago.ojrex.FarragoOJRexImplementorTable
All Implemented Interfaces:
OJRexImplementorTable
Direct Known Subclasses:
FarragoRngImplementorTable

public class FarragoOJRexImplementorTable
extends OJRexImplementorTableImpl

FarragoOJRexImplementorTable implements OJRexImplementorTable with Farrago-specific translations for standard operators and functions.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/ojrex/FarragoOJRexImplementorTable.java#30 $
Author:
John V. Sichi

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eigenbase.oj.rex.OJRexImplementorTableImpl
OJRexImplementorTableImpl.OJBasicAggImplementor, OJRexImplementorTableImpl.OJCountAggImplementor, OJRexImplementorTableImpl.OJMinMaxAggImplementor, OJRexImplementorTableImpl.OJSumAggImplementor
 
Constructor Summary
FarragoOJRexImplementorTable(SqlStdOperatorTable opTab)
          Creates a table with all supported standard operators registered.
 
Method Summary
protected  void initStandard(SqlStdOperatorTable opTab)
          Registers implementations for the standard set of functions and operators.
protected  void registerBinaryOperator(SqlBinaryOperator op, int ojBinaryExpressionOrdinal)
           
protected  void registerContextOp(SqlFunction op)
           
protected  void registerUnaryOperator(SqlPrefixOperator op, int ojUnaryExpressionOrdinal)
           
 
Methods inherited from class org.eigenbase.oj.rex.OJRexImplementorTableImpl
get, get, instance, registerOperator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FarragoOJRexImplementorTable

public FarragoOJRexImplementorTable(SqlStdOperatorTable opTab)
Creates a table with all supported standard operators registered.

Parameters:
opTab - Operator table
Method Detail

initStandard

protected void initStandard(SqlStdOperatorTable opTab)
Description copied from class: OJRexImplementorTableImpl
Registers implementations for the standard set of functions and operators.

Overrides:
initStandard in class OJRexImplementorTableImpl

registerContextOp

protected void registerContextOp(SqlFunction op)

registerBinaryOperator

protected void registerBinaryOperator(SqlBinaryOperator op,
                                      int ojBinaryExpressionOrdinal)
Overrides:
registerBinaryOperator in class OJRexImplementorTableImpl

registerUnaryOperator

protected void registerUnaryOperator(SqlPrefixOperator op,
                                     int ojUnaryExpressionOrdinal)
Overrides:
registerUnaryOperator in class OJRexImplementorTableImpl