Class PromqlFunctionRegistry

java.lang.Object
org.elasticsearch.xpack.esql.expression.promql.function.PromqlFunctionRegistry

public class PromqlFunctionRegistry extends Object
A registry for PromQL functions that maps function names to their respective definitions.
  • Field Details

  • Method Details

    • allFunctions

      public Collection<PromqlFunctionDefinition> allFunctions()
    • functionMetadata

      public PromqlFunctionDefinition functionMetadata(String name)
      Retrieves the function definition metadata for the given function name.
    • isNotImplemented

      public boolean isNotImplemented(String name)
      Returns true if the function with the given name exists in the registry but has not yet been implemented.
    • notImplementedFunctions

      public SortedSet<String> notImplementedFunctions()
      Returns the names of PromQL functions that are recognized but not yet implemented, sorted for deterministic output. Used by documentation generation to render the "Not yet supported" list straight from the registry.
    • checkFunction

      public void checkFunction(Source source, String name)
    • buildEsqlFunction

      public Expression buildEsqlFunction(String name, Source source, Expression target, PromqlFunctionRegistry.PromqlContext ctx, List<Expression> extraParams)