Interface Module
- All Known Implementing Classes:
CoreModule
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<FunctionDefinition>getFunctionDefinition(String name) Get an optional ofFunctionDefinitionby a given name.default Optional<DynamicTableSinkFactory>Returns aDynamicTableSinkFactoryfor creating sink tables.default Optional<DynamicTableSourceFactory>Returns aDynamicTableSourceFactoryfor creating source tables.List names of all functions in this module.listFunctions(boolean includeHiddenFunctions) List names of all functions in this module.
-
Method Details
-
listFunctions
List names of all functions in this module. It excludes internal functions.- Returns:
- a set of function names
-
listFunctions
List names of all functions in this module.A module can decide to hide certain functions. For example, internal functions that can be resolved via
getFunctionDefinition(String)but should not be listed by default.- Parameters:
includeHiddenFunctions- whether to list hidden functions or not- Returns:
- a set of function names
-
getFunctionDefinition
Get an optional ofFunctionDefinitionby a given name.It includes hidden functions even though not listed in
listFunctions().- Parameters:
name- name of theFunctionDefinition.- Returns:
- an optional function definition
-
getTableSourceFactory
Returns aDynamicTableSourceFactoryfor creating source tables.A factory is determined with the following precedence rule:
- 1. Factory provided by the corresponding catalog of a persisted table.
- 2. Factory provided by a module.
- 3. Factory discovered using Java SPI.
This will be called on loaded modules in the order in which they have been loaded. The first factory returned will be used.
This method can be useful to disable Java SPI completely or influence how temporary table sources should be created without a corresponding catalog.
-
getTableSinkFactory
Returns aDynamicTableSinkFactoryfor creating sink tables.A factory is determined with the following precedence rule:
- 1. Factory provided by the corresponding catalog of a persisted table.
- 2. Factory provided by a module.
- 3. Factory discovered using Java SPI.
This will be called on loaded modules in the order in which they have been loaded. The first factory returned will be used.
This method can be useful to disable Java SPI completely or influence how temporary table sinks should be created without a corresponding catalog.
-