org.eigenbase.sql.type
Class CursorReturnTypeInference

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

public class CursorReturnTypeInference
extends Object
implements SqlReturnTypeInference

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

Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/type/CursorReturnTypeInference.java#7 $
Author:
Julian Hyde
See Also:
OrdinalReturnTypeInference

Field Summary
private  int ordinal
           
 
Constructor Summary
CursorReturnTypeInference(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

CursorReturnTypeInference

public CursorReturnTypeInference(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