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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceHelper interface for abstracting accessing literals. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSqlCallContext(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory, org.apache.flink.table.functions.FunctionDefinition definition, String name, boolean isGroupedAggregation) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.table.catalog.DataTypeFactoryorg.apache.flink.table.functions.FunctionDefinitionprotected static <T> TgetLiteralValueAs(AbstractSqlCallContext.LiteralValueAccessor accessor, Class<T> clazz) Bridges toValueLiteralExpression.getValueAs(Class).getName()booleanMethods 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, getArgumentDataTypes, getArgumentValue, getOutputDataType, getTableSemantics, isArgumentLiteral, isArgumentNull, newValidationError
-
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:
getDataTypeFactoryin interfaceorg.apache.flink.table.types.inference.CallContext
-
getFunctionDefinition
public org.apache.flink.table.functions.FunctionDefinition getFunctionDefinition()- Specified by:
getFunctionDefinitionin interfaceorg.apache.flink.table.types.inference.CallContext
-
getName
- Specified by:
getNamein interfaceorg.apache.flink.table.types.inference.CallContext
-
isGroupedAggregation
public boolean isGroupedAggregation()- Specified by:
isGroupedAggregationin interfaceorg.apache.flink.table.types.inference.CallContext
-
getLiteralValueAs
protected static <T> T getLiteralValueAs(AbstractSqlCallContext.LiteralValueAccessor accessor, Class<T> clazz) Bridges toValueLiteralExpression.getValueAs(Class).
-