public class MatchReturnTypeInference extends java.lang.Object implements SqlReturnTypeInference
SqlTypeName
s. If
no match could be found, null is returned.Modifier and Type | Field and Description |
---|---|
private int |
start |
private java.util.List<SqlTypeName> |
typeNames |
Constructor and Description |
---|
MatchReturnTypeInference(int start,
java.lang.Iterable<SqlTypeName> typeNames)
Returns the first type matching any type in typeNames at or after
position start (zero based).
|
MatchReturnTypeInference(int start,
SqlTypeName... typeNames)
Returns the first type of typeName at or after position start (zero
based).
|
Modifier and Type | Method and Description |
---|---|
RelDataType |
inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of a call to an
SqlOperator . |
private final int start
private final java.util.List<SqlTypeName> typeNames
public MatchReturnTypeInference(int start, SqlTypeName... typeNames)
public MatchReturnTypeInference(int start, java.lang.Iterable<SqlTypeName> typeNames)
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.