@PublicEvolving public interface Module
Modifier and Type | Method and Description |
---|---|
default Optional<FunctionDefinition> |
getFunctionDefinition(String name)
Get an optional of
FunctionDefinition by a given name. |
default Optional<DynamicTableSinkFactory> |
getTableSinkFactory()
Returns a
DynamicTableSinkFactory for creating sink tables. |
default Optional<DynamicTableSourceFactory> |
getTableSourceFactory()
Returns a
DynamicTableSourceFactory for creating source tables. |
default Set<String> |
listFunctions()
List names of all functions in this module.
|
default Set<String> |
listFunctions(boolean includeHiddenFunctions)
List names of all functions in this module.
|
default Set<String> listFunctions()
default Set<String> listFunctions(boolean includeHiddenFunctions)
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.
includeHiddenFunctions
- whether to list hidden functions or notdefault Optional<FunctionDefinition> getFunctionDefinition(String name)
FunctionDefinition
by a given name.
It includes hidden functions even though not listed in listFunctions()
.
name
- name of the FunctionDefinition
.default Optional<DynamicTableSourceFactory> getTableSourceFactory()
DynamicTableSourceFactory
for creating source tables.
A factory is determined with the following precedence rule:
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.
default Optional<DynamicTableSinkFactory> getTableSinkFactory()
DynamicTableSinkFactory
for creating sink tables.
A factory is determined with the following precedence rule:
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.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.