Class CoreModule

java.lang.Object
org.apache.flink.table.module.CoreModule
All Implemented Interfaces:
Module

@PublicEvolving public class CoreModule extends Object implements Module
Module of default core metadata in Flink.
  • Field Details

    • INSTANCE

      public static final CoreModule INSTANCE
  • Method Details

    • listFunctions

      public Set<String> listFunctions()
      Description copied from interface: Module
      List names of all functions in this module. It excludes internal functions.
      Specified by:
      listFunctions in interface Module
      Returns:
      a set of function names
    • listFunctions

      public Set<String> listFunctions(boolean includeHiddenFunctions)
      Description copied from interface: Module
      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 Module.getFunctionDefinition(String) but should not be listed by default.

      Specified by:
      listFunctions in interface Module
      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: Module
      Get an optional of FunctionDefinition by a given name.

      It includes hidden functions even though not listed in Module.listFunctions().

      Specified by:
      getFunctionDefinition in interface Module
      Parameters:
      name - name of the FunctionDefinition.
      Returns:
      an optional function definition