Class CallBindingCallContext
java.lang.Object
org.apache.flink.table.planner.functions.inference.AbstractSqlCallContext
org.apache.flink.table.planner.functions.inference.CallBindingCallContext
- All Implemented Interfaces:
org.apache.flink.table.types.inference.CallContext
A
CallContext backed by SqlCallBinding. Compared to OperatorBindingCallContext, this class is able to reorder arguments.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.table.planner.functions.inference.AbstractSqlCallContext
AbstractSqlCallContext.LiteralValueAccessor -
Constructor Summary
ConstructorsConstructorDescriptionCallBindingCallContext(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory, org.apache.flink.table.functions.FunctionDefinition definition, org.apache.calcite.sql.SqlCallBinding binding, org.apache.calcite.rel.type.RelDataType outputType, List<org.apache.flink.table.types.inference.StaticArgument> staticArguments) -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.flink.table.types.DataType><T> Optional<T>getArgumentValue(int pos, Class<T> clazz) Optional<org.apache.flink.table.types.DataType>Optional<org.apache.flink.table.functions.TableSemantics>getTableSemantics(int pos) booleanisArgumentLiteral(int pos) booleanisArgumentNull(int pos) Methods inherited from class org.apache.flink.table.planner.functions.inference.AbstractSqlCallContext
getDataTypeFactory, getFunctionDefinition, getLiteralValueAs, getName, isGroupedAggregationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.table.types.inference.CallContext
fail, newValidationError
-
Constructor Details
-
CallBindingCallContext
public CallBindingCallContext(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory, org.apache.flink.table.functions.FunctionDefinition definition, org.apache.calcite.sql.SqlCallBinding binding, @Nullable org.apache.calcite.rel.type.RelDataType outputType, @Nullable List<org.apache.flink.table.types.inference.StaticArgument> staticArguments)
-
-
Method Details
-
isArgumentLiteral
public boolean isArgumentLiteral(int pos) -
isArgumentNull
public boolean isArgumentNull(int pos) -
getArgumentValue
-
getTableSemantics
-
getArgumentDataTypes
-
getOutputDataType
-