@Internal public static final class BuiltInFunctionDefinition.Builder extends Object
Constructor and Description |
---|
Builder() |
public BuiltInFunctionDefinition.Builder name(String name)
Please adhere to the following naming convention:
IFNULL
or TYPEOF
but not for TO_TIMESTAMP_LTZ
.
$NAME$VERSION
such as $REPLICATE_ROWS$1
.
public BuiltInFunctionDefinition.Builder version(int version)
Note: Internal functions don't need to specify a version as we enforce a unique name
that includes a version (see name(String)
).
public BuiltInFunctionDefinition.Builder kind(FunctionKind kind)
public BuiltInFunctionDefinition.Builder namedArguments(String... argumentNames)
public BuiltInFunctionDefinition.Builder typedArguments(DataType... argumentTypes)
public BuiltInFunctionDefinition.Builder inputTypeStrategy(InputTypeStrategy inputTypeStrategy)
public BuiltInFunctionDefinition.Builder outputTypeStrategy(TypeStrategy outputTypeStrategy)
public BuiltInFunctionDefinition.Builder notDeterministic()
public BuiltInFunctionDefinition.Builder runtimeProvided()
BuiltInFunctionDefinition
is implemented during code
generation.public BuiltInFunctionDefinition.Builder runtimeClass(String runtimeClass)
BuiltInFunctionDefinition
.public BuiltInFunctionDefinition.Builder runtimeDeferred()
BuiltInFunctionDefinition
will be mapped to a Calcite
function.public BuiltInFunctionDefinition.Builder internal()
BuiltInFunctionDefinition
is meant for internal purposes only
and should not be exposed when listing functions.public BuiltInFunctionDefinition.Builder callSyntax(SqlCallSyntax syntax)
SqlCallSyntax.FUNCTION
is used.public BuiltInFunctionDefinition.Builder callSyntax(String name, SqlCallSyntax syntax)
SqlCallSyntax.FUNCTION
is used. This method overwrites the name as well. If the
name is not provided name(String)
is passed to the SqlCallSyntax
.public BuiltInFunctionDefinition.Builder sqlName(String name)
name(String)
is used.public BuiltInFunctionDefinition build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.