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

@Internal public final class CallBindingCallContext extends AbstractSqlCallContext
A CallContext backed by SqlCallBinding. Compared to OperatorBindingCallContext, this class is able to reorder arguments.
  • 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

      public <T> Optional<T> getArgumentValue(int pos, Class<T> clazz)
    • getTableSemantics

      public Optional<org.apache.flink.table.functions.TableSemantics> getTableSemantics(int pos)
    • getArgumentDataTypes

      public List<org.apache.flink.table.types.DataType> getArgumentDataTypes()
    • getOutputDataType

      public Optional<org.apache.flink.table.types.DataType> getOutputDataType()