public class ExplicitReturnTypeInference extends Object implements SqlReturnTypeInference
SqlReturnTypeInference which always returns the same SQL type.| Modifier and Type | Field and Description |
|---|---|
protected RelProtoDataType |
protoType |
| Modifier | Constructor and Description |
|---|---|
protected |
ExplicitReturnTypeInference(RelProtoDataType protoType)
Creates an inference rule which always returns the same type object.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of a call to an
SqlOperator. |
protected final RelProtoDataType protoType
protected ExplicitReturnTypeInference(RelProtoDataType protoType)
If the requesting type factory is different, returns a copy of the
type object made using RelDataTypeFactory.copyType(RelDataType)
within the requesting type factory.
A copy of the type is required because each statement is prepared using a different type factory; each type factory maintains its own cache of canonical instances of each type.
protoType - Type objectpublic RelDataType inferReturnType(SqlOperatorBinding opBinding)
SqlReturnTypeInferenceSqlOperator.inferReturnType in interface SqlReturnTypeInferenceopBinding - description of operator bindingCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.