org.eigenbase.sql.type
Class OrdinalReturnTypeInference

java.lang.Object
  extended by org.eigenbase.sql.type.OrdinalReturnTypeInference
All Implemented Interfaces:
SqlReturnTypeInference

public class OrdinalReturnTypeInference
extends Object
implements SqlReturnTypeInference

Returns the type of the operand at a particular 0-based ordinal position.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/type/OrdinalReturnTypeInference.java#6 $
Author:
Wael Chatila

Field Summary
private  int ordinal
           
 
Constructor Summary
OrdinalReturnTypeInference(int ordinal)
           
 
Method Summary
 RelDataType inferReturnType(SqlOperatorBinding opBinding)
          Infers the return type of a call to an SqlOperator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ordinal

private final int ordinal
Constructor Detail

OrdinalReturnTypeInference

public OrdinalReturnTypeInference(int ordinal)
Method Detail

inferReturnType

public RelDataType inferReturnType(SqlOperatorBinding opBinding)
Description copied from interface: SqlReturnTypeInference
Infers the return type of a call to an SqlOperator.

Specified by:
inferReturnType in interface SqlReturnTypeInference
Parameters:
opBinding - description of operator binding
Returns:
inferred type