Package org.apache.flink.table.api
Class FunctionDescriptor.Builder
- java.lang.Object
-
- org.apache.flink.table.api.FunctionDescriptor.Builder
-
- Enclosing class:
- FunctionDescriptor
@PublicEvolving public static final class FunctionDescriptor.Builder extends Object
Builder forFunctionDescriptor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionDescriptorbuild()FunctionDescriptor.Builderlanguage(org.apache.flink.table.catalog.FunctionLanguage language)Sets the language of the function.FunctionDescriptor.Builderoption(String key, String value)Adds an option to the function descriptor.FunctionDescriptor.Builderoptions(Map<String,String> options)Adds multiple options to the function descriptor.FunctionDescriptor.BuilderresourceUri(org.apache.flink.table.resource.ResourceUri uri)Adds a single resource URI to the function descriptor.FunctionDescriptor.BuilderresourceUris(List<org.apache.flink.table.resource.ResourceUri> uri)Adds a list of resource URIs to the function descriptor.
-
-
-
Method Detail
-
language
public FunctionDescriptor.Builder language(org.apache.flink.table.catalog.FunctionLanguage language)
Sets the language of the function. Equivalent to theLANGUAGEclause in the "CREATE FUNCTION" SQL DDL statement.
-
resourceUris
public FunctionDescriptor.Builder resourceUris(List<org.apache.flink.table.resource.ResourceUri> uri)
Adds a list of resource URIs to the function descriptor. Equivalent to theUSINGclause in the "CREATE FUNCTION" SQL DDL statement.
-
resourceUri
public FunctionDescriptor.Builder resourceUri(org.apache.flink.table.resource.ResourceUri uri)
Adds a single resource URI to the function descriptor. Equivalent to theUSINGclause in the "CREATE FUNCTION" SQL DDL statement.
-
option
public FunctionDescriptor.Builder option(String key, String value)
Adds an option to the function descriptor. Equivalent to theWITHclause in the "CREATE FUNCTION" SQL DDL statement.
-
options
public FunctionDescriptor.Builder options(Map<String,String> options)
Adds multiple options to the function descriptor. Equivalent to theWITHclause in the "CREATE FUNCTION" SQL DDL statement.
-
build
public FunctionDescriptor build()
-
-