Skip to content

SimpleFunctionRegistryBase

SimpleFunctionRegistryBase[T] is an extension of the FunctionRegistryBase abstraction for function registries (of type T).

Implementations

functionBuilders

functionBuilders: HashMap[FunctionIdentifier, (ExpressionInfo, FunctionBuilder)]

SimpleFunctionRegistryBase defines functionBuilders registry of named user-defined functions.

A new user-defined function is registered in internalRegisterFunction.

functionBuilders is used when:

lookupFunction

lookupFunction(
  name: FunctionIdentifier): Option[ExpressionInfo]

lookupFunction is part of the FunctionRegistryBase abstraction.


lookupFunction finds the given name in the functionBuilders registry.

Registering Named User-Defined Function

registerFunction(
  name: FunctionIdentifier,
  info: ExpressionInfo,
  builder: FunctionBuilder): Unit

registerFunction is part of the FunctionRegistryBase abstraction.


registerFunction internalRegisterFunction with a normalized (lower-case) name.

internalRegisterFunction

internalRegisterFunction(
  name: FunctionIdentifier,
  info: ExpressionInfo,
  builder: FunctionBuilder): Unit

internalRegisterFunction adds a new function to the functionBuilders registry.


internalRegisterFunction is used when;