@Internal
public abstract class BuiltInScalarFunction
extends org.apache.flink.table.functions.ScalarFunction
ScalarFunction 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 BuiltInScalarFunction() 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 |
BuiltInScalarFunction() |
protected |
BuiltInScalarFunction(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() |
getKind, getParameterTypes, getResultTypeprotected BuiltInScalarFunction(org.apache.flink.table.functions.BuiltInFunctionDefinition definition,
org.apache.flink.table.functions.SpecializedFunction.SpecializedContext context)
protected BuiltInScalarFunction()
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.ScalarFunctionpublic Set<org.apache.flink.table.functions.FunctionRequirement> getRequirements()
public boolean isDeterministic()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.