public class SqlReturnTypeInferenceChain extends java.lang.Object implements SqlReturnTypeInference
SqlReturnTypeInference
rules in a given order.
If a rule fails to find a return type (by returning NULL), next rule is tried
until there are no more rules in which case NULL will be returned.Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableList<SqlReturnTypeInference> |
rules |
Constructor and Description |
---|
SqlReturnTypeInferenceChain(SqlReturnTypeInference... rules)
Creates a SqlReturnTypeInferenceChain from an array of rules.
|
Modifier and Type | Method and Description |
---|---|
RelDataType |
inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of a call to an
SqlOperator . |
private final com.google.common.collect.ImmutableList<SqlReturnTypeInference> rules
SqlReturnTypeInferenceChain(SqlReturnTypeInference... rules)
Package-protected.
Use ReturnTypes.chain(org.apache.calcite.sql.type.SqlReturnTypeInference...)
.
public RelDataType inferReturnType(SqlOperatorBinding opBinding)
SqlReturnTypeInference
SqlOperator
.inferReturnType
in interface SqlReturnTypeInference
opBinding
- description of operator bindingCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.