org.eigenbase.sql.type
Interface SqlReturnTypeInference

All Known Implementing Classes:
CursorReturnTypeInference, ExplicitReturnTypeInference, MatchReturnTypeInference, OrdinalReturnTypeInference, SqlReturnTypeInferenceChain, SqlTypeTransformCascade, TableFunctionReturnTypeInference

public interface SqlReturnTypeInference

Strategy interface to infer the type of an operator call from the type of the operands.

This interface is an example of the strategy pattern. This makes sense because many operators have similar, straightforward strategies, such as to take the type of the first operand.

Since:
Sept 8, 2004
Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/type/SqlReturnTypeInference.java#6 $
Author:
Wael Chatila

Method Summary
 RelDataType inferReturnType(SqlOperatorBinding opBinding)
          Infers the return type of a call to an SqlOperator.
 

Method Detail

inferReturnType

RelDataType inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of a call to an SqlOperator.

Parameters:
opBinding - description of operator binding
Returns:
inferred type