@Internal
public abstract class BuiltInTableFunction<T>
extends org.apache.flink.table.functions.TableFunction<T>
TableFunction that is constructed
from SpecializedFunction.specialize(SpecializedContext).
Subclasses must offer a constructor that takes SpecializedFunction.SpecializedContext if they are
constructed from a BuiltInFunctionDefinition. Otherwise the BuiltInTableFunction() constructor might be more appropriate.
By default, all built-in functions work on internal data structures. However, this can be
changed by overriding getArgumentDataTypes() and getOutputDataType(). Or by
overriding getTypeInference(DataTypeFactory) directly.
| Modifier | Constructor and Description |
|---|---|
protected |
BuiltInTableFunction() |
protected |
BuiltInTableFunction(org.apache.flink.table.functions.BuiltInFunctionDefinition definition,
org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.flink.table.types.DataType> |
getArgumentDataTypes() |
org.apache.flink.table.types.DataType |
getOutputDataType() |
Set<org.apache.flink.table.functions.FunctionRequirement> |
getRequirements() |
org.apache.flink.table.types.inference.TypeInference |
getTypeInference(org.apache.flink.table.catalog.DataTypeFactory typeFactory) |
boolean |
isDeterministic() |
collect, finish, getKind, getParameterTypes, getResultType, setCollectorprotected BuiltInTableFunction(org.apache.flink.table.functions.BuiltInFunctionDefinition definition,
org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context)
protected BuiltInTableFunction()
public List<org.apache.flink.table.types.DataType> getArgumentDataTypes()
public org.apache.flink.table.types.DataType getOutputDataType()
public org.apache.flink.table.types.inference.TypeInference getTypeInference(org.apache.flink.table.catalog.DataTypeFactory typeFactory)
getTypeInference in interface org.apache.flink.table.functions.FunctionDefinitiongetTypeInference in class org.apache.flink.table.functions.TableFunction<T>public Set<org.apache.flink.table.functions.FunctionRequirement> getRequirements()
public boolean isDeterministic()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.