Class AbstractSqlCallContext

java.lang.Object
org.apache.flink.table.planner.functions.inference.AbstractSqlCallContext
All Implemented Interfaces:
org.apache.flink.table.types.inference.CallContext
Direct Known Subclasses:
CallBindingCallContext, LookupCallContext, OperatorBindingCallContext

@Internal public abstract class AbstractSqlCallContext extends Object implements org.apache.flink.table.types.inference.CallContext
A CallContext backed by Calcite abstractions.
  • Constructor Details

    • AbstractSqlCallContext

      protected AbstractSqlCallContext(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory, org.apache.flink.table.functions.FunctionDefinition definition, String name, boolean isGroupedAggregation)
  • Method Details

    • getDataTypeFactory

      public org.apache.flink.table.catalog.DataTypeFactory getDataTypeFactory()
      Specified by:
      getDataTypeFactory in interface org.apache.flink.table.types.inference.CallContext
    • getFunctionDefinition

      public org.apache.flink.table.functions.FunctionDefinition getFunctionDefinition()
      Specified by:
      getFunctionDefinition in interface org.apache.flink.table.types.inference.CallContext
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.flink.table.types.inference.CallContext
    • isGroupedAggregation

      public boolean isGroupedAggregation()
      Specified by:
      isGroupedAggregation in interface org.apache.flink.table.types.inference.CallContext
    • getLiteralValueAs

      protected static <T> T getLiteralValueAs(AbstractSqlCallContext.LiteralValueAccessor accessor, Class<T> clazz)
      Bridges to ValueLiteralExpression.getValueAs(Class).