Interface TuriFunction

All Superinterfaces:
LngCallable, LngCallable.LngCallableClosure, ServiceLoaded

public interface TuriFunction extends LngCallable.LngCallableClosure, ServiceLoaded
Represents a function in the Turi language system that can be loaded as a service. This interface extends both LngCallable.LngCallableClosure for function execution capabilities and ServiceLoaded for service loading functionality.
  • Method Details

    • getInstances

      static List<TuriFunction> getInstances()
      Returns all instances of TuriFunction that are currently loaded in the system. This method utilizes the ServiceLoader mechanism to discover and load all implementations of TuriFunction available in the classpath.
      Returns:
      a List containing all discovered TuriFunction instances
    • name

      String name()
      Returns the identifier name of this function used for registration in the global heap space. This name is used to reference and call the function within the Turi language environment. The name must be unique within the scope where the function is registered.
      Returns:
      the unique name of the function used for registration and reference in the global space