Package org.apache.flink.table.module
Class CoreModule
- java.lang.Object
-
- org.apache.flink.table.module.CoreModule
-
-
Field Summary
Fields Modifier and Type Field Description static CoreModuleINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<FunctionDefinition>getFunctionDefinition(String name)Get an optional ofFunctionDefinitionby a given name.Set<String>listFunctions()List names of all functions in this module.Set<String>listFunctions(boolean includeHiddenFunctions)List names of all functions in this module.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.module.Module
getTableSinkFactory, getTableSourceFactory
-
-
-
-
Field Detail
-
INSTANCE
public static final CoreModule INSTANCE
-
-
Method Detail
-
listFunctions
public Set<String> listFunctions()
Description copied from interface:ModuleList names of all functions in this module. It excludes internal functions.- Specified by:
listFunctionsin interfaceModule- Returns:
- a set of function names
-
listFunctions
public Set<String> listFunctions(boolean includeHiddenFunctions)
Description copied from interface:ModuleList names of all functions in this module.A module can decide to hide certain functions. For example, internal functions that can be resolved via
Module.getFunctionDefinition(String)but should not be listed by default.- Specified by:
listFunctionsin interfaceModule- Parameters:
includeHiddenFunctions- whether to list hidden functions or not- Returns:
- a set of function names
-
getFunctionDefinition
public Optional<FunctionDefinition> getFunctionDefinition(String name)
Description copied from interface:ModuleGet an optional ofFunctionDefinitionby a given name.It includes hidden functions even though not listed in
Module.listFunctions().- Specified by:
getFunctionDefinitionin interfaceModule- Parameters:
name- name of theFunctionDefinition.- Returns:
- an optional function definition
-
-