@Internal public class FunctionCatalog extends Object implements FunctionLookup
FunctionDefinitions in catalogs.FunctionLookup.Result| Constructor and Description |
|---|
FunctionCatalog(TableConfig config,
CatalogManager catalogManager,
ModuleManager moduleManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
dropTempCatalogFunction(org.apache.flink.table.catalog.ObjectIdentifier identifier,
boolean ignoreIfNotExist)
Drop a temporary catalog function.
|
void |
dropTempSystemFunction(String funcName,
boolean ignoreIfNotExist)
Drop a temporary system function.
|
String[] |
getFunctions()
Get names of all functions, including temp system functions, system functions, temp catalog functions and catalog functions
in the current catalog and current database.
|
PlannerTypeInferenceUtil |
getPlannerTypeInferenceUtil()
Temporary utility until the new type inference is fully functional.
|
String[] |
getUserDefinedFunctions()
Get names of all user defined functions, including temp system functions, temp catalog functions and catalog functions
in the current catalog and current database.
|
boolean |
hasTemporaryCatalogFunction(org.apache.flink.table.catalog.ObjectIdentifier functionIdentifier)
Check whether a temporary catalog function is already registered.
|
boolean |
hasTemporarySystemFunction(String functionName)
Check whether a temporary system function is already registered.
|
Optional<FunctionLookup.Result> |
lookupFunction(org.apache.flink.table.catalog.UnresolvedIdentifier identifier)
Lookup a function by function identifier.
|
<T,ACC> void |
registerTempCatalogAggregateFunction(org.apache.flink.table.catalog.ObjectIdentifier oi,
org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> function,
org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType,
org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accType) |
void |
registerTempCatalogScalarFunction(org.apache.flink.table.catalog.ObjectIdentifier oi,
org.apache.flink.table.functions.ScalarFunction function) |
<T> void |
registerTempCatalogTableFunction(org.apache.flink.table.catalog.ObjectIdentifier oi,
org.apache.flink.table.functions.TableFunction<T> function,
org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType) |
<T,ACC> void |
registerTempSystemAggregateFunction(String name,
org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> function,
org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType,
org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accType) |
void |
registerTempSystemScalarFunction(String name,
org.apache.flink.table.functions.ScalarFunction function) |
<T> void |
registerTempSystemTableFunction(String name,
org.apache.flink.table.functions.TableFunction<T> function,
org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType) |
void |
setPlannerTypeInferenceUtil(PlannerTypeInferenceUtil plannerTypeInferenceUtil) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlookupBuiltInFunctionpublic FunctionCatalog(TableConfig config, CatalogManager catalogManager, ModuleManager moduleManager)
public void setPlannerTypeInferenceUtil(PlannerTypeInferenceUtil plannerTypeInferenceUtil)
public void registerTempSystemScalarFunction(String name, org.apache.flink.table.functions.ScalarFunction function)
public <T> void registerTempSystemTableFunction(String name, org.apache.flink.table.functions.TableFunction<T> function, org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType)
public <T,ACC> void registerTempSystemAggregateFunction(String name, org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> function, org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType, org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accType)
public void registerTempCatalogScalarFunction(org.apache.flink.table.catalog.ObjectIdentifier oi,
org.apache.flink.table.functions.ScalarFunction function)
public <T> void registerTempCatalogTableFunction(org.apache.flink.table.catalog.ObjectIdentifier oi,
org.apache.flink.table.functions.TableFunction<T> function,
org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType)
public <T,ACC> void registerTempCatalogAggregateFunction(org.apache.flink.table.catalog.ObjectIdentifier oi,
org.apache.flink.table.functions.UserDefinedAggregateFunction<T,ACC> function,
org.apache.flink.api.common.typeinfo.TypeInformation<T> resultType,
org.apache.flink.api.common.typeinfo.TypeInformation<ACC> accType)
public boolean hasTemporaryCatalogFunction(org.apache.flink.table.catalog.ObjectIdentifier functionIdentifier)
functionIdentifier - the object identifier of functionpublic boolean hasTemporarySystemFunction(String functionName)
functionName - the name of the functionpublic void dropTempSystemFunction(String funcName, boolean ignoreIfNotExist)
funcName - name of the functionignoreIfNotExist - Flag to specify behavior when the function does not exist:
if set to false, throw an exception,
if set to true, do nothing.public void dropTempCatalogFunction(org.apache.flink.table.catalog.ObjectIdentifier identifier,
boolean ignoreIfNotExist)
identifier - identifier of the functionignoreIfNotExist - Flag to specify behavior when the function does not exist:
if set to false, throw an exception,
if set to true, do nothing.public String[] getUserDefinedFunctions()
public String[] getFunctions()
public Optional<FunctionLookup.Result> lookupFunction(org.apache.flink.table.catalog.UnresolvedIdentifier identifier)
FunctionLookuplookupFunction in interface FunctionLookuppublic PlannerTypeInferenceUtil getPlannerTypeInferenceUtil()
FunctionLookupgetPlannerTypeInferenceUtil in interface FunctionLookupCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.