@FunctionalInterface public interface SqlReturnTypeInference
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.
ReturnTypes| Modifier and Type | Method and Description |
|---|---|
default SqlReturnTypeInference |
andThen(SqlTypeTransform transform)
Returns a return-type inference that applies this rule then a
transform.
|
@Nullable RelDataType |
inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of a call to an
SqlOperator. |
default SqlReturnTypeInference |
orElse(SqlReturnTypeInference transform)
Returns a return-type inference that applies this rule then another
rule, until one of them returns a not-null result.
|
@Nullable RelDataType inferReturnType(SqlOperatorBinding opBinding)
SqlOperator.opBinding - description of operator bindingdefault SqlReturnTypeInference andThen(SqlTypeTransform transform)
default SqlReturnTypeInference orElse(SqlReturnTypeInference transform)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.